OLPC XO Sugar release 8.2.0 (r767) left me with a useless machine so I decided to go back to a more reliable operating system version and capture the full setup here for record.
OS and Firmware
- Imaged the XO with operating system release 703. I would have preferred to use 656 as that was extensively “field tested” while I was in Vietnam, but, that build is not able to “see” my new D-Link wifi router.
- Left the firmware alone at Q2E18. I didn’t see a need to mess with this.
- Be sure to include the G1G1 activity pack as you need Terminal. Here are the directions on how to install the activity pack. Basically you need to extract it to the root of the flash drive you are using. The directions for installing the OS used to indicate that the pack would be installed after you reimage your XO, but you can install the pack at any time. I have tested this since I did not install the pack when I imaged the XO.
Setup VIM to make this easier
- In a newly created .vimrc add
- set background=dark
- set tabstop=4
- set number
Enable SSH for olpc but not root
- In order to configure SSH you need to set a password for root.
- 703 comes without the default activies; so you need to go to the console to set the password. You can use terminal for this; or go directly to the console via the approach described below.
- Become root and set a password both for root and for olpc
- In the sshd config (/etc/ssh/sshd_config); uncomment and set to no both PermitRootLogin and PermitEmptyPasswords.
- Restart sshd with: service sshd restart
- From another machine SSH into it as root; verify that this fails.
- SSH into it as olpc, su to root; verify that this works.
XO F Keys
- Ctrl+Alt+F1 will take you to one console.
- Ctrl+Alt+F2 will take you to the other console.
- Ctrl+Alt+F3 will take you back to X/Sugar.
- The F1 key is the same as the Neighborhood view key: 8 dots arranged in a circle
- The F2 key is the same as the Group view key: 3 dots arranged in a triangle
- The F3 key is the same as the Home view key: 1 dot in the center
Disallow su(do) to work without a password
- By default olpc can sudo into root without specifying a password.
- Open /etc/pam.d/su
- Comment out the line “auth sufficient pam_wheel.so trust use_uid” which allows anyone in the wheel group to become root without a password
- Logout as root, try su’ing again, you should be prompted for root’s password
Tweak the bash prompt
- Add export PS1=”\u@\h:\w>”
- To olpc’s .bashrc which you need to create
- To root’s .bashrc which you need to create
- Comment out lines 56-57 in /usr/share/sugar/shell/view/frame/eventarea.py
- Here are the lines:
#invisible.connect('enter-notify-event', self._enter_notify_cb) #invisible.connect('leave-notify-event', self._leave_notify_cb)
- Restart Sugar: Ctrl+Alt+Backspace (Erase)
- Use the Home key to activate and deactivate the border menu (the Home key is the key with a rectangle on it)
- yum: xpdf
- yum: gcc (for building bzr)
- Pyrex (for bzr)
- yum: python-devel.i386 (Python header files)
- yum: Python 2.5 (python.i386) (comes already installed)
- bzr 1.14.1 (from source). I wasn’t sure how to add an up to date yum repo so I just used the source. Here was the command to specify pure Python build:
python setup.py install build_ext --allow-python-fallback
. This was necessary for the build to succeed.
- yum: vim-X11.i386
- yum: traceroute
- yum: nmap.i386
- yum: nmap-frontend.i386
Disable the Journal while alt-tabbing
- Open /usr/share/sugar/shell/model/homemodel.py::_get_activities_with_window
- Here is the change on line 76:
root@xo-0D-1A-82:/usr/share/sugar/shell/model>diff homemodel.py homemodel.py.org 76c76 < if i.get_window() is not None and i.get_type() != 'org.laptop.JournalActivity': --- > if i.get_window() is not None:
- Via this great post
- Quake Term doesn’t seem to work.
- You can not disable the Journal completely in 703.