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

From Sudo Room
Jump to navigation Jump to search
Line 13: Line 13:
Create file /etc/sysconfig/network-scripts/ifcfg-eth2
Create file /etc/sysconfig/network-scripts/ifcfg-eth2


<code>
<pre>
DEVICE=eth2
DEVICE=eth2
BOOTPROTO=dhcp
BOOTPROTO=dhcp
ONBOOT=yes
ONBOOT=yes
</code>
</pre>


Plug in an ethernet cable with Internet and enable networking:
Plug in an ethernet cable with Internet and enable networking:


<code>
<pre>
/etc/init.d/network start
/etc/init.d/network start
</code>
</pre>


Install lxde and unclutter:
Install lxde and unclutter:


<code>
<pre>
yum install lxde-common unclutter
yum install lxde-common unclutter
</code>
</pre>


Set a password for the olpc user:
Set a password for the olpc user:


<code>
<pre>
passwd olpc
passwd olpc
</code>
</pre>


create /home/olpc/.xsession
create /home/olpc/.xsession


<code>
<pre>
xhost +192.168.1.1
xhost +192.168.1.1
unclutter -idle 5 & # This hides the mouse cursor
unclutter -idle 5 & # This hides the mouse cursor
exec ck-xinit-session startlxde
exec ck-xinit-session startlxde
</code>
</pre>


Change 192.168.1.1 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 192.168.1.1 to the IP of the server you want to allow remote X access for. This does not seem to work for hostnames, only IPs.
Line 51: Line 51:
Disable network manager and enable normal network services:
Disable network manager and enable normal network services:


<code>
<pre>
chkconfig --level 2345 NetworkManager off
chkconfig --level 2345 NetworkManager off
chkconfig --level 2345 network on
chkconfig --level 2345 network on
</code>
</pre>


From the remote machine (space.local) run:
From the remote machine (space.local) run:


<code>
<pre>
DISPLAY=olpc.local:0 chromium-browser --kiosk "https://omnicommons.org/calendar"
DISPLAY=olpc.local:0 chromium-browser --kiosk "https://omnicommons.org/calendar"
</code>
</pre>


You should make this run on startup.
You should make this run on startup.

Revision as of 21:40, 5 July 2015

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 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

DEVICE=eth2
BOOTPROTO=dhcp
ONBOOT=yes

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 +192.168.1.1
unclutter -idle 5 & # This hides the mouse cursor
exec ck-xinit-session startlxde

Change 192.168.1.1 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 :)