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

Jump to navigation Jump to search
no edit summary
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.

Navigation menu