How to setup a headless raspberry pi via wifi

The steps to setup a headless raspberry pi involve installing the usb wifi, in this case I used the Edimax EW-7811Un.

The site is very clear and it explains how to setup:

1. To start with, I have a headless rpi connected via Ethernet cable: https://florespino.wordpress.com/2012/12/23/how-to-setup-a-headless-rpi/

2. install the wifi usb using the $10 usb device.  I mind you, there are two pitfalls in running the otherwise excellent script http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=6256

Hence, first backup /etc/network/interfaces file.  I copied it to interfaces.bkup

The first problem is, don’t copy and paste it to a windows text editor.  That process introduces strange characters.  Just download the file to your pc and then copy it to the rpi via:  scp script.sl pi@x.y.z.a://home/pi/script.sl .

The second problem is, if you enter the password for your router incorrectly then the usb wifi is partially installed and it doesn’t work properly. You will need to remove the /etc/network/interfaces file and restore the original interfaces.

3.  Once you run the script and enter the proper user id and password for your wifi network, you can find out the ip address with: ifconfig. That’ll give you the inet addr of your wifi connection to the rpi !

Note:  For additional details about installation, check out the instructions given in: http://contractorwolf.wordpress.com/raspberry-pi-radio/

Advertisements

One Response to “How to setup a headless raspberry pi via wifi”

  1. rick Says:

    This is cool! Thanks for the helpful info!

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s


%d bloggers like this: