圍紀實驗室

Standalone XBMC and WiFi[]

Since the Standalone XBMC replaces Gnome for the desktop manager, the Gnome Network Manager wouldn't get started. So, we have to use command lines to set up the WLAN configurations. (Refer to this worklog of week 120604.)

To connect my XBMC platform to a known wireless access point at startup, I did the following
1. In /etc/init.d/ directory, create a new script file -- which I named as ytt-wlan -- with the content below:

 #! /bin/sh
 ###  Validated on Ubuntu 11.04  ###
 # stop Gnome’s network manager and
 # use Linux wireless tools commands instead.
 sudo service network-manager stop
 sudo ifconfig wlan0 down
 sudo iwconfig wlan0 essid "WLANSSID" enc s:"happywarmgunn"
 sudo ifconfig wlan0 up
 sudo dhclient3 wlan0

2. In /etc/rc2.d/ (see note below) directory, make a symbolic link -- which I named as S99ytt-wlan -- to point to /etc/init.d/ytt-wlan script file;
3. Reboot.
And the WLAN connection should have been established when the XBMC GUI shows up.


Note:
Refer to this web article for why the symbolic link is created in /etc/rc2.d/:

More Things Learned[]

I. Fending Off annoying Ubuntu Keyring dialogs[]

For Ubuntu 11.04 (Natty):
1. Click System/Preferences/Passwords and Encryption Keys
2. Right-click on the "Passwords: xyz" item (where xyz may be "login" or "default" or something else) and choose Change Password
3. Enter the current password for "Old Password" and don't enter anything for the (new password) entries below;
4. Choose "Use Unsafe Storage" button in the subsequent "Store passwords unencrypted?" dialog box.
5. Reboot Ubuntu 11.04.

II. Customizing the Grub boot menu[]

- Use grub-customizer introduced by this web article
(For non-Ubuntu Linux distro's, Daniel Richter, the author of Grub Customizer, has given a pointer on accessing the source code.)
- For Ubuntu 11.04, Grub Customizer shows up in System/Adminstration program menu -- rather than the Applications/System Tools menu said in the web article above -- after the PPA is installed.
- I had inadvertently unchecked all the OS items in the boot menu, which resulted in a miserable situation that I could only get booted to the Grub2 screen. At this point Super Grub2 Disk came to rescue, as introduced in the "Grub2 recovery" section of this Grub2 tutorial