Raspberry Pi – WiFi Setup on Raspberry Thin Client OS

Since part of my goal with this project was to eliminate as many wires as possible, It made sense to get wifi working on my Raspberry Pi. By eliminating the Ethernet cable – that meant the only cable I would have would be the power cable! Since the RPiTC image is still very new, and there isn’t very much documentation surrounding it quite yet – It took me awhile to figure out how to go about setting this up… That and I was working with a DOA wifi card to begin with! In any case, There are a number of different ways to configure wifi on the raspberry Pi – Below is simply what has worked best for me 🙂 Please let me know if you run into any problems!

 

Setting up wifi on the Raspberry Pi

 

Before we get started with configuring our wifi connection on our RPITC image, It is a good idea to run the following commands to update our Debian repos and upgrade our installed applications.

 

1.) First we want to go into the terminal Window and set the default kernel to the standard kernel, by running the following command in Terminal:


At the End of the Config.txt File Change:

ctrl+X  to save then exit ( will ask to save changes – enter ” Y ” ). Then Reboot.

 

 

2.) Next we need to identify what type of wifi device we have plugged into our Pi.

Then take note of your wireless adapter info…

Raspi_lsusb_command_results
Next we need to do a search based on our results:

Our above search Returned x1 result for the required driver, So next we are going to install the required firmware via:

 

 

3.) Finally we will need to configure our wlan interface…

 

Click to Expand
[learn_more caption=”Unsecured Network”]

 

[/learn_more][learn_more caption=”WEP Config”]  

Note:
You may need to format your wireless key entry as such:
wireless-key s:<your wep password>

For Example:

 

[/learn_more][learn_more caption=”WPA2 Config”]  

[/learn_more][learn_more caption=”WPA2 Enterprise”]

First we want to change network/interfaces to use wpa_supplicant like so…

 

For this one, I also had to leverage wpa_supplicant…

Then setup my WPA2 Enterprise wireless connection like so…

 

It took me a long time to figure out how to get this one working…. My understanding is that this is because WPA2 wifi networks / 802.1x networks can vary in their configuration, so there is not a one size fits all solution like the other standards.

In any case, I hope this is able to help!

[/learn_more][learn_more caption=”WPA2 Enterprise – Part 2″]

I’ve since been asked to setup wireless on another wpa2 enterprise wireless environment and found that the above configuration wasn’t working for me. So hopefully somebody else finds this helpful!

Configure static networking in /etc/network/interfaces and WPA wireless settings in /etc/wpa_supplicant/wpa_supplicant.conf. These settings work, but the addresses will need to change.

Then Setup your Wireless network as shown:

 

Next we will need to edit our interfaces file:

Go ahead and make the following changes for wlan0

 

[/learn_more][learn_more caption=”Troubleshooting Your WiFi Connection…”]
  • Lookup your wifi card model @ http://elinux.org/RPi_USB_Wi-Fi_Adapters to make sure that there are no known issues/bugs with your specific device.
  • Make sure your device works!! This may sound stupid, but I spent half a day trying to get a wifi card working on my Raspberry Pi… only to found out that the device didn’t work in the first place! It would scan the networks in range but never connect. I only figured this out after it did the same thing in Windows XP and Windows 7… Do yourself a favor and confirm that you have a working card!
  • You can run the following commands to see where issues may lie…
  • For advanced configuration of /etc/network/interfaces – You can check out this Post by Pencoys.
[/learn_more]

 

 

Finally, Reboot one last time. When your Pi comes back up, you should now see an IP address populated for your wifi device!If you do not get an IP address after the reboot, Make sure to Look at my Wifi Troubleshooting section above!

Raspi_IPAddress

I’ve decided to break this project post up into 3 different sections, Check out the other steps involved in this project in my other Posts!

 

  • Mukund Moley

    I found using “lsusb” that my wifi dongle (Realtek RTL8187B) was there so I simply added the following in WPA config:

    auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid “NETWORK SSID”
    wpa-psk “NETWORK PASSWORD”

    Rebooted the system and wifi worked.
    Before that I have tried everything as suggested from step 1 by Ryan and it did not work out. But I thought since my wifi dongle is already detected, there is no need for any updates/upgrade/additional firmware. I also changed the kernel mode to standard by changing config.txt. Thanks to Ryan for the blog.

    • douwe

      Thanks, did the trick for me as well. Btw the config file is: /etc/network/interfaces

Pin It on Pinterest