download the iso and uncompress it.
hget http://plan9.bell-labs.com/sources/extra/X11.iso.bz2 | bunzip2 > /tmp/X11.iso
start the iso9660 filesystem server
9660srv
disable the 9fs command by binding echo over it
bind /386/bin/echo /rc/bin/9fs
mount a psudo /n/kfs pointing to the root of your fossil filesystem
mount /srv/boot /n/kfs
mount the iso
mount /srv/9660 /n/dist /tmp/X11.iso
initialise the replica logs
/n/dist/X11.setup
do the pull
replica/pull /n/dist/X11
Next, you need to actually build X11. Close this rio window and open a new one. This will remove the bind on /rc/bin/9fs.
There is a problem with one file that prevents X11 from building with current systems. Type
9fs sources
cp /n/sources/contrib/pietro/shape.c /sys/src/X11/programs/Xserver/Xext/shape.c
to
fix
the
bug.
Finally, to build and install, type
cd /sys/src/X11
ape/psh
makew
make install
make clean
It is a good idea to turn on scrolling for both rio windows so you could do something else while building (makew is a lengthy process).