Using SSH Config

- [1 min read]
If you use SSH on Linux a lot, you will know that having to specify the key each time you want to access a server is a pain. You really don’t want to have a single key for all servers as you would need to revoke it globally in the event that it was compromised. The ssh config file allows you to specify multiple values to use for specific hosts:
If you need to set Chrome as the default browser in Xubuntu, run the following from your terminal: gconftool-2 --type string -s /desktop/gnome/url-handlers/http/command "google-chrome %s"

Install Java JDK using terminal

- [1 min read]
To install the Java JDK using only the terminal, follow the following steps: Download the JDK from: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html Then run the following commands (change the filename as required): tar -xvf jdk-7-linux-i586.tar.gz sudo mv ./jdk1.7.0 /usr/lib/jvm/jdk1.7.0 sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/java 1 sudo update-alternatives --config java sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac 1 sudo update-alternatives --config javac To test that everything is working: java -version Should output: java version "1.7.0" Java(TM) SE Runtime Environment (build 1.

Migrating repo from SVN to Git RPC error

- [2 mins read]
While I was working on Dementium II HD, I wanted to migrate the repository from SVN to Git. It was being hosted on a machine in the one studio and served the external developers over a 10mbit ADSL connection. The upstream rate is ~400kbit, so imagine trying to checkout a 26GB repository. I ran into the following error when I tried to import the SVN repo into a Git one:

Ubuntu on Hyper-V

- [2 mins read]
Getting Ubuntu to run on Hyper-V was a bit of an issue for Windows Server 2008, here are some things to look for. In the boot menu, add vga16fb.modeset=0 to the boot options by hitting F6 to disable framebuffer mode that is really slow under Hyper-V. Do normal install, don’t worry about the red “can’t find network issue”. Enable the Hyper-V modules: echo "hv_vmbus" >> /etc/initramfs-tools/modules echo "hv_storvsc" >> /etc/initramfs-tools/modules echo "hv_blkvsc" >> /etc/initramfs-tools/modules echo "hv_netvsc" >> /etc/initramfs-tools/modules update-initramfs –u Disable Framebuffer (otherwise the text screen scrolls by like a 9600 modem)