This tutorial presupposes that you’re using Raspbian Wheezy.
- Install Raspbian Wheezy on your SD card by following these instructions.
- Open the SD card’s root partition, the one not named
boot
. - Open
/etc/networking/interfaces
in a text editor.Find this line:iface eth0 inet dhcp
Replace it with this:
iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0
This sets your static IP address to 192.168.1.100. Change that if you want. Don’t mess with the netmask.
- Open
/etc/resolv.conf
.Find this line:nameserver 192.168.1.1
Replace it with this:
nameserver 8.8.8.8
This sets your DNS nameserver to Google Public DNS. There are other nameservers out there, but Google is robust.
- Eject your card and put it in your Raspberry Pi. Connect it to the same network as the computer you want to ssh into it from and power it on.
ssh pi@192.168.1.100
or the appropriate IP address. Success!- Do whatever else you want to do to your Pi.