lab 80 - drawterm plugin

NAME

lab 80 - drawterm plugin

NOTES

This post is to show it is possible to use the inferno IE plugin to drawterm to plan9. All the programs involved are part of standard Inferno.

drawterm-plugin

These are the steps I did to get this running locally. It does need factotum etc, so you need to export a file system with all the pieces you need.

 % listen -vA 'tcp!*!7070' {export '#U/'}

For the net you'd probably do this using an unauth'd readonly kfs, for example. Then you need a drawterm script

  % cat /drawterm
#!/dis/sh

bind -b /n/remote/dis /dis
bind -a /n/remote /
bind /n/remote/lib /lib
mkdir /n/remote/n/9win
bind -a /n/remote/n /n
auth/factotum
load std
autoload=std
getlines < /n/remote/factotum  {echo $line} > /mnt/factotum/ctl
bind /n/remote/ndb.local /lib/ndb/local
ndb/cs
9cpu -h tcp!fir -r -c 'bind -b /mnt/term/n/9win /dev; bind -a
/mnt/term/dev /dev; exec rio'

And then you need the HTML


<OBJECT
classid="clsid:3A274C9A-1E70-435a-8A63-B91A93F3BDDD"
codebase="http://www.vitanuova.com/plugin/ieplugin4.cab"
width="800" height="600">
<PARAM name="init" value="/dis/sh.dis -c 'mount -A
tcp!192.168.1.100!7070 /n/remote;  /n/remote/drawterm ' ">
</OBJECT>

The next steps would be to use secstore to load factotum instead of using he unencrypted file containing the keys. And you'd also need something to prompt for the name and password.

Popular posts from this blog

lab 110 - inferno archive edition

lab 111 - wavloop

lab 107 - midiplay