Clementson's Blog

Bits and pieces (mostly Lisp-related) that I collect from the ether.

January 2008
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Dec  Feb

Hacking the OLPC XO Laptop - Part 2: Xfce

Wednesday, January 30, 2008

In my last post, I wrote about some of the customizations that I had done to my OLPC XO software to make it more usable for me. At the end of the post, I mentioned that I was planning to install Xubuntu on a USB stick or SD card in order to try that out on the XO as well. Actually, if you don't like the XO's Sugar UI (or, if you want to use a more "traditional" Linux desktop on the XO), there is an easier option: just install an alternative Linux desktop environment on the XO. A good alternative is Xfce, which is known for being fast/lightweight and probably a good fit for a small Linux box like the XO:

Xfce

Actually, installing and setting up Xfce on the XO is rediculously simple. A full explanation is here; however, the "Readers Digest" version is:

  1. Download and install all the Xfce components:
    yum install xfdesktop xfce-utils xfce-mcs-plugins xfce4-session
  2. Download and install a utility to help you manage your wifi connections:
    yum install wifi-radar
  3. In "/home/olpc/" create a copy of .xsession-example called .xsession:
    cp /home/olpc/.xsession-example /home/olpc/.xsession
    Edit the .xsession file to launch Xfce on startup by finding the commented line that reads "#exec xterm" - below that line, add the following code:
    exec startxfce4
    After saving the .xsession file, press CTRL+ALT+BACKSPACE to restart X, starting Xfce.

  4. Once Xfce starts up, run "wifi-radar" (it's on the Xfce menu under "Networking"). After running it once, a file will be created at "/etc/wifi-radar/wifi-radar.conf". Open this file in a text editor, and change the line which reads:
    interface = eth1
    to read:
    interface = eth0
    After saving the file, run "wifi-radar" again and connect to your wifi network.
That's pretty much all there is to it! There are some additional customizations that you might want to do (see here for details); however, at this stage, Xfce will be the default UI on the XO when you start up. If you want to revert to Sugar, it's simply a matter of deleting or renaming the ".xsession" file that you created.

emacs Copyright © 2008 by Bill Clementson