Raspberry Pi – Initial Setup Tasks

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.

  1. 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.

  2. Add the following lines:
    id_str="home_static"
    priority=1

    Press 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.

  3. 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

  4. Now reboot your Pi. At the terminal window type the following command:
    sudo shutdown -r now

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s