Raspberry Pi Setup - Part 2

Continue with my journey of setting this machine up. Since I misplaced my Edimax EW-7811UN wifi adapter, which will work seamlessly without any compilation, I had to buy another one. However, I can't find the exact brand and model and I ended up with TP-LINK TL-WN725N, which according to wiki [2], will work out of the box using the build-in USB port. However, you will need to upgrade the kernel from 3.2.x to 3.6.x.

1. First let's find out the current kernel version.
$ uname -a
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

2. Yesterday, I made a mistake by not expanding the rootfs. Hence, firmware upgrade failed due to lack of disk space. To fix that, run the initial configuration tool when we first boot up the image.
$ sudo raspi-config

Select expand_rootfs option to expand root partition (/) to use up all the remaining space in the SD card (mine is 16GB). Save the settings and reboot. New filesystem layout as follows:
$ df -h
Filesystem           Size   Used Avail   Use% Mounted on
rootfs               15G    1.8G   13G    13% /
/dev/root            15G    1.8G   13G    13% /
devtmpfs             93M       0   93M     0% /dev
tmpfs                19M    232K   19M     2% /run
tmpfs                5.0M      0  5.0M     0% /run/lock
tmpfs                37M       0   37M     0% /run/shm
/dev/mmcblk0p1       56M     17M   40M    30% /boot
tmpfs                7M       0    37M     0% /tmp

3. Update the Raspberry Pi's firmware using Hexxeh's rpi-updater tool.
$ sudo apt-get install git-core ca-certificates
$ sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update
$ cd /usr/bin
$ sudo chmod +x /usr/bin/rpi-update
$ sudo ./rpi-update

Let's check the kernel version again. And yes, we have upgraded to kernel 3.6.X.
$ uname -a
Linux raspberrypi 3.6.11+ #362 PREEMPT Tue Jan 22 14:52:21 GMT 2013 armv6l GNU/Linux

4. Type these commands to verify that the Wifi adapter is working.
$ lsusb | grep 8188
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

$ lsmod | grep 8192
8192cu   489381  0

$ iwconfig wlan0

5. I am lazy to configure Wifi in the console, let's try using GUI way. You can read console config method here. However, I lost my mouse and have to resort to remote GUI using VNC. Following the instruction in the wiki.

In the Raspberry machine, to setup a VNC server.
$ sudo apt-get install tightvncserver
$ tightvncserver # set password
$ vncserver :0 -geometry 1920x1080 -depth 24

6. In my Ubuntu machine, install the VNC client viewer and connect to the server. See sceenshot.
$ sudo apt-get install xtightvncviewer
$ xtightvncviewer 192.168.1.123:1

7. In the VNC viewer, double-click the WiFi Config -> Scan -> Select Connection -> Right Click to add -> Type password.

8. Reboot the machine
$ sudo reboot

No comments:

Post a Comment