Difference between revisions of "Using an OLPC XO-1 laptop as a remote display"

From Sudo Room
Jump to navigation Jump to search
(Replaced content with " This was moved to [https://sudoroom.org/omni-olpc-events a github repo].")
Line 1: Line 1:
The sadly failed OLPC project created a bunch of interesting hardware and many still have old models like the XO-1 laptop lying around their homes. Too interesting to throw away but too slow and tiny to be of much use today. They have one feature that is still rare: In direct sunlight the display becomes a reflective black and white display. Very useful in the California sun.

I decided to use these old laptops as little informational displays mounted on the outside of our hackerspace. They idea being that they'd list upcoming events for the day.
This was moved to [https://sudoroom.org/omni-olpc-events a github repo].
This guide will show you how to set up remote X access for the OLPC and display a modern web browser in kiosk mode. You won't have to jailbreak the laptop nor update the operating system. You will need a USB ethernet adapter, or figure out how to set up the wifi on your own.
These instructions are based on OLPC XO-1 operating system build 802, meaning that it was one of the early XO-1 laptops that has never been updated. Newer versions may be different but they're all fedora based so you should be able to find the documentation without too much difficulty.
To get a root shell press ctrl-alt-f2 (f2 is the button at the top with the round symbol with three dots).
Plug in usb ethernet adapter which should come up as eth2.
Create file /etc/sysconfig/network-scripts/ifcfg-eth2
Plug in an ethernet cable with Internet and enable networking:
/etc/init.d/network start
Install lxde and unclutter:
yum install lxde-common unclutter
Set a password for the olpc user:
passwd olpc
create /home/olpc/.xsession
xhost +
unclutter -idle 5 & # This hides the mouse cursor
xset s off # disable screen saver
xset -dpms # disable DPMS
xset s noblank # disable screen blanking
xrandr -o left # optional 90 degree rotation
exec ck-xinit-session startlxde
Change to the IP of the server you want to allow remote X access for. This does not seem to work for hostnames, only IPs.
Change hostname in /etc/avahi-daemon.conf to e.g. olpc so you can access the laptop remotely using olpc.local
Disable network manager and enable normal network services:
chkconfig --level 2345 NetworkManager off
chkconfig --level 2345 network on
From the remote machine (space.local) run:
DISPLAY=olpc.local:0 chromium-browser --kiosk "https://omnicommons.org/calendar"
You should make this run on startup.
Make a nice web-page that shows what you want to show and which has javascript to auto-reload every so often.
Put the computer in a nice box with some thick plexiglass and mount it on the outside of your building :)

Latest revision as of 00:56, 6 July 2015

This was moved to a github repo.