Setting up raspberry pi from the command line
Open a terminal on the pi or use ssh to connect to your pi (showing ssh here use hour own pi ip and de default user pi)
$ ssh 192.168.1.19 -l pi
and your password (default one is ‘raspberry’) and your good to go
/etc/network/interfaces looks just like this (open with the nano editor):
sudo nano /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
wpa-ssid “???TPLINK!!!”
wpa-psk “verysecret-wpa-psk”
and that worked (there are more entries in this file just add these below)
The Wifi dongle I got from thepihut
Original source post can be founf here
Subnote (if using sitecom CN-061 USB Hub):
Sitecom USB Hub CN-061 7 Port USB 2.0 Hub powered with AC Adapter. There is a voltage problem on the left half of the hub (4 ports) that do not deliver enough current to feed a wifi dongle (tested with an RTL8191S); you should not use these ports for anything important (keyboard keys will stick, self-powered USB hard disk will reset continuously). The remaining 3 ports on the right half are instead working as expected.
Source here
But the 3 ports that should work did not work with this wifi dongle so i ended up connecting it directly to the pi