In this little section, I describe how I turned my PI wireless and ditched the ethernet cable.
First thing I did was get a very basic USB WiFi dongle. The one I chose was a Tenda W311U. No drivers where required I just plugged it in an it was ready on the PI. (Same thing happens under Windows 7).
Now the only thing I need then was a way to connect it to my router. I have no idea how to do this from the bash command line and the tutorials on Google I found didn’t make much sense.
Anyway as it happens I learned that I need to configure the WiFi to connect to my router and to do this the first thing you have to do is create a config file for your connection.
From bash, I entered ‘sudo nano /etc/wpa.config’, which created a new file for me to save my WiFi details. Then inside I entered the following..
I then saved the file by pressing CTRL + X and answering yes to saving and the path.
The config now saved all we had to do was setup the wlan. For this we need to use nano again and open the interfaces file. I typed ‘sudo nano /etc/network/interfaces’ and added the following to the file.
iface wlan0 inet dhcp
Then another CTRL+X to save the file and we where set. After restarting the PI, My WiFi was up and running, so I unplugged the monitor, keyboard and Ethernet and started using Putty on my Windows box (Windows 8).