Remote display

From OLPC
Revision as of 17:52, 22 February 2007 by Wad (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If you are trying to project the XO's user interface, this page describes how to do it using another computer running X11.

There may be additional refinements, these are just quick notes detailing one way of doing this.

Changes to the XO

First, as only one version of Sugar may run at a time, you need to change the runlevel of the XO.

su
vi /etc/inittab

Change the line that currently reads:

id:5:initdefault:

to read

id:3:initdefault:

You will also need to assign a password to the olpc user on the XO. As root, run:

passwd olpc

Now change to the /home/olpc directory, and:

cd /home/olpc
cp .xinitrc remotedisplay
chmod a+x remotedisplay
vi remotedisplay

You need to add the following to the beginning of the remotedisplay file:

#!/bin/sh

Reboot (to downgrade the init level). At this point, the XO will reboot to the login prompt, but won't have networking running properly. You need to manually bring up the network using:

iwconfig eth0 essid "some local wifi SSID"
dhclient eth0

You can get a list of the local WiFi networks using iwlist. Remember the network address assigned to the XO by DHCP, you will need it for the next steps.

Bringing up the display remotely

At this point, you will need a version of X which is running bare (no display manager). Your .xinitrc (or equivalent) should end in something like:

exec xterm

Run X11, and from that xterm, you should be able to bring up the display remotely using:

ssh xo-ip-address -C -X /home/olpc/remotedisplay