Setting up Wi-Fi with the Command lineSIMON MONKThis tutorial works best if your router is broadcasting the SSID. Make sure the "broadcast SSID" set up on your router! This could not work with "private" SSID setups
Setting up WiFi in occidentalis, is also pretty straight forward. You just need to add the name of your wireless network (its SSID) and your password to a configuration file.
Step 1.
Boot the Raspberry Pi without the WiFi adapter plugged in.
Step 2.
Open a Terminal session by clicking on the Lxterminal icon, and enter the following command into it:
Copy Code
- sudo nano /etc/network/interfaces
Copy Code
- auto lo
-  
- iface lo inet loopback
- iface eth0 inet DHCP
-  
- allow-hotplug wlan0
- auto wlan0
-  
-  
-
- Wpa-ssid span class= "str" > "SSID"
- Wpa- PSK "password"
If you are using a ' hidden ' SSID, try the following (Hat-tip tohttp://www.dafinga.net/2013/01/how-to-setup-raspberry-pi-w ith-hidden.html)
Copy Code
- Auto Lo
- Iface Lo inet Loopback
- Iface eth0 inet DHCP
- Auto wlan0
- Allow-hotplug wlan0
- Iface Wlan0 inet DHCP
- WPA-Scan-SSID 1
- WPA-AP-Scan 1
- WPA-Key-Mgmt WPA-PSK
- WPA-Proto RSN WPA
- WPA-pairwise CCMP TKIP
- WPA-Group CCMP TKIP
- WPA-SSID "My Secret SSID"
- WPA-PSK "My SSID PSK"
- Iface default inet DHCP
Step 3.
This opens a editor screen of the WiFi configuration file, need to change.
The places where you need to make a change is on the last of the lines. The change of the file so it looks like this:
Of course, you should put in your network and password! Note that you need to keep the double-quote characters around your wireless network name and password.
This kind of editor does not let you use the mouse. Instead, use the cursor keys to move around the file.
Step 4.
When you have finished press [Ctrl]x. This would ask if you want to save the modified files.
Press ' Y ' and then Return to save the file with the same name.
Step 5.
Shut down your Raspberry Pi, plug the Wi-Fi adapter in and start it up again. You should find, the Raspberry Pi connects using the WiFi adapter as it boots up.