1. Insert the SDcard into your pc and find out where it is mounted by typing : sudo fdisk -l or df -h (/dev/sdb in my case)
2. Copy the raspbian image to the SDcard : dd bs=4M if=~/2014-01-07-wheezy-raspbian.img of=/dev/sdb
3. Sudo sync (this will ensure the write cache is flushed and that it is safe to unmount your SD card) - Remove the card
4. Flash Raspbian on the SDcard and alter the outfome for use with a static IP - Insert the card
a. Mount SDcard
b. sudo fdisk -l or df -h will show the mounted partitions of the card. There are two. A'boot' partition and a 'file system' partition.
c. type 'mount' to find the location of the mounted 'file system' partition
d. Go to the location of the mounted 'file system' partition and look for the network directory. In my case :
cd /media/fc254b57-8fff-4f96-9609-ea202d871acf/etc/network
e. In the network directory backup the interfaces file
sudo cp interfaces interfaces.bak
f. Edit the interfaces file (sudo nano interfaces) and make it look like below
auto lo
iface lo inet loopback
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.125
netmask 255.255.255.0
gateway 192.168.0.1
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
g. Unmount the SDcard and plug it in the pi. Boot and ssh to the static address 192.168.0.125