Filebot on Debian Wheezy

In Debian Wheezy AMD64, the default version of Java is OpenJDK 6. In order to switch Oracle’s v8 Java, do the following:

# su -
# echo "deb trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
# echo "deb-src trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
# apt-key adv --keyserver hkp:// --recv-keys EEA14886
# apt-get update
# apt-get install oracle-java8-installer

And confirm that you’re using the correct Java implementation:

$ java -version
$ javac -version

java version “1.8.0_25”
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Next, download the Filebot deb, and install:

sudo dpkg --force-depends -i filebot-*.deb

CIFS on Debian Wheezy

I’ve reproduced this reported bug - - on my Waldorf machine, and have arrived at the following solution:

As root, open the existing /etc/fstab file and comment-out your existing CIFS mount(s)

Unmount all existing cifs mounts:

# sudo umount -a -t cifs

Install autofs:

# sudo aptitude install autofs

Open (as root) new file /etc/auto.master:

# sudo vi /etc/auto.master

If you want the mounted directories under /data, add the following line:

/data /etc/auto.misc --timeout 60 --ghost

The “ghost” option ensures that even unmounted directories are always visible. Remove this if you prefer to only see the directory when you enter the path to the mounted directory.

Open (as root) new file /etc/auto.misc:

# sudo vi /etc/auto.misc

Add line(s) at the end for your mount directories in a similar format to your /etc/fstab file:

downloads1 -fstype=cifs,rw,username=ootput,password=<cifs_pass>,uid=1000,gid=1000 ://

  • where ‘downloads1’ refers to a local mountpoint under /data, and ‘downloads2’ to the remote cifs share, respectively.

Start the autofs service:

# sudo service autofs restart

Additionally, I enabled all SysRq functions to address stalled shutdown procedures by adding to /etc/sysctl.conf:


ootput Burst on Github via Hexo

Thanks to Hexo, I am slowly migrating my site towards Github. Github Pages reminds me of Nanoblogger in many ways - sans the excruciating pace of deployment. I love Github’s free-of-ads hosting, and the fact that I can tinker with the content framework in the comfort of my beloved Emacs editor. I also don’t mind the fact that I work with a local repository of text-based version-controlled blog entries.

Check out my work-in-progress at

Changes to vanilla Hexo are courtesy of fine Hexo documentation at

QOS on VPN Client Tunnel in Tomato

From this page, I was able to have QOS functioning on an OpenVPN tunnel in Tomato.

Essentially, I had to add the following snippet to the ADMIN->SCRIPTS->FIREWALL field (note the different device names used):

cp /etc/qos /tmp/qos-tun11
sed -i 's/vlan2/tun11/g' /tmp/qos-tun11
sed -i 's/imq0/imq1/g' /tmp/qos-tun11
chmod +x /tmp/qos-tun11
iptables -t mangle -A FORWARD -o tun11 -j QOSO
iptables -t mangle -A OUTPUT -o tun11 -j QOSO
iptables -t mangle -A PREROUTING -i tun11 -j CONNMARK --restore-mark --mask 0xff
iptables -t mangle -A PREROUTING -i tun11 -j IMQ --todev 1
ifconfig imq1 up

Reset Audio on OSX

To reset CoreAudio on Mac OS X without rebooting the machine, use the following command:

# sudo kill -9 $(ps ax|grep 'coreaudio[a-z]' |awk '{print $1}'}

Alternatively, open up activity monitor, and manually search for CoreAudio

Update to Latest FreeBSD Release (9.2)

For my records, here is an outline of the steps I took to upgrade FreeBSD from 9.1 to 9.2.

# freebsd-update fetch

# freebsd-update install

(and reboot if any changes were made)

Now, fetch the upgrades that are included in the 9.2-RELEASE. The differences in configuration files will need to be merged manually.

# freebsd-update upgrade -r 9.2-RELEASE

# freebsd-update install

Reboot with the new kernel before the non-kernel components receive updates:

# shutdown -r now

After rebooting, install the new user-land components, and upgrade 3rd party packages:

# freebsd-update install

# pkg upgrade

To delete the old (no longer used) system libraries:

# freebsd-update install

Finally, reboot into 9.2-RELEASE

# shutdown -r now

Root and Flash Samsung Galaxy S2 From Within OSX

This post outlines the steps I’d taken to root and flash my Galaxy S2 (GT-i9100T) with a custom rom.

I was running the latest SGS2 firmware from Vodafone,AU - DVLS3. I decided to obtain a backup of the modem’s firmware found here. I extracted modem.bin to ~/Desktop

Rooting my GT-i9100T phone was a piece of cake thanks to Framaroot. Essentially, it is a one-click application to install Superuser and su binary on phone.

You can manually download the .apk file to your phone’s storage for installation from within any file manager. It is compatible with many phones, and in particular, Exynos devices (eg Samsung Galaxy S2 GT-i9100T) work with the Aragorn exploit. At the time of this writing, I used version 1.6.0 of Framaroot successfully. Read the FAQ on the linked page for further information.

Optional: Next, I installed BusyBox and DroidWall from within the PlayStore.

Next, I downloaded codeworkx’s ClockworkMod Recovery found here. I extracted its contents (zImage) to my Desktop.

Next, I downloaded my preferred custom rom (Omega Jelly Bean) to the phone’s storage at /sdcard.

Next, I visited this page and downloaded heimdall-suite-1.3.2-mac.dmg — **Heimdall Suite 1.3.2** - OS X binaries (universal). At the time of this writing, version 1.4.0 only works with OSX 10.8+ (Mountain Lion) in 64bit mode - 1.3.2 works fine with other OSX versions, though. After installation of the package, I had to reboot the machine.

Finally, I followed the instructions found here to install CWM-recovery. Essentially I had to do the following:

  • Boot the Galaxy S II into download mode by holding down Volume Down, Home & Power.
  • Insert the USB cable into the device.
  • Run heimdall flash --kernel ~/Desktop/zImage --no-reboot from
  • Also, run heimdall flash --modem ~/modem.bin --no-reboot
  • Turn off the phone.
  • Boot the phone into ClockworkMod Recovery mode by holding Volume Up, Home, & Power.

I then proceeded with the rest of the guide to flash the custom rom.

The end result is shown below:

Copy and Paste in Tmux with Mouse

I have my iTerm2 emulate xterm-256colors, and found that it was possible to use the mouse to copy a selection in tmux.

You’d need to hold down the option key whilst left-clicking and dragging across the target text selection. If you want to now paste the selected text back in to the terminal (in say, another window), you must also hold down the option key and middle-click to paste.