So you have your Raspberry Pi up and running an OS, but you’re not done yet. Here are some initial tasks to get you started:
**For each of these steps, I am assuming you are using Wheezy and a wireless NIC. I’ll be updating this post as I configure the Pi.
Setting a static IP address
You’re going to be running some neat server-type service on your Pi aren’t you? Well you better get a static IP in place. The IPs I use below will need to be changed to whatever subnet you are using at your home.
- Open a terminal window and type the following:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
This command will open up the configuration file as root in the nano text editor. The file contains information about the wireless network you joined when you first setup the
operating system. -
Add the following lines:
id_str="home_static"
priority=1Press CTRL O to write the file and exit nano. These two lines will add an identification to the NIC when it is connected to the wireless network specified in the file. We will use this
identifier later on so remember it. - The next step is to configure the interface configuration file. At the terminal window, type the following:
sudo nano /etc/networking/interfaces
Add the following lines to the file:
iface home_static inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.1
- Now reboot your Pi. At the terminal window type the following command:
sudo shutdown -r now