wctl ---- The wctl rc script can be run from a Plan 9 system to serve a wctl service using an existing wsys service, see wsys(4). Eg: wsys='#Z/tmp/ns.username.:0/wsys' wctl=`{wctl $wsys} window games/catclock devdraw.9p ---------- 9p-srv.c is a p9p's devdraw(1) version which uses wsys(4) through 9pclient(2). To install it: cp 9p-srv.c $PLAN9/src/cmd/devdraw cd $PLAN9/src/cmd/devdraw 9c 9p-srv.c && 9l -o devdraw.9p 9p-srv.o cp devdraw.9p $PLAN9/bin It will connect to the window system with address $WSYS. Some files (snarf and the draw directory) are not served by rio, although they are served by wsys(4). These files are expected to be found on the file server with address $DEV. Eg: # From rio (for just one window, created from rio): ; mount $wsys /n/w new ; bind -a '#i' /n/w ; bind /dev/snarf /n/w # if needed ; aux/listen1 -t 'tcp!*!12345' /bin/exportfs -r /n/w # From rio (create new windows with new commands): ; aux/listen1 -t 'tcp!*!12345' /bin/exportfs -S $wsys ; aux/listen1 -t 'tcp!*!12346' /bin/exportfs -r /dev # From unix: $ DEVDRAW=devdraw.9p export DEVDRAW $ WSYS='tcp!127.0.0.1!12345' export WSYS $ DEV='tcp!127.0.0.1!12346' export DEV # if needed $ 9term # Alternatively, if using wsys instead of rio: $ WSYS='unix!'/tmp/ns.$USER.$DISPLAY/wsys export WSYS