Record of some of the computer tech I deal with so that it's documented at least somewhere.

Wednesday, 12 August 2009

Net booting Plan9

This *should* be easy, eventually it was!

NVidia Bootagent doesn't like it but IBM Boot Agent v.1.2.2 is a worker

/cfg/pxf/ is being picked up
it needed a ether= ip= in /lib/ndb/local

after working out the pxe file I ended up with :

ether0=igbe
monitor=vesa
vgasize=800x600x8
mouseport=ps2intellimouse
user=maht
bootfile=ether0!/386/9pc
bootargs=tcp!t23
nobootprompt=tcp!t23
*nomp=1 # vesa graphics boo hoo


I added secstore to the server and added myself as a user

I fiddled around with lib/profile and added factotum
now you get prompted for your secstore password twice, profile then imports your home directory using your auth and you can write to it. Means you have to shuffle your profile round a little bit, mine's now

fn bins {
bind -a $home/bin/rc /bin
bind -a $home/bin/$cputype /bin
bind -c $home/tmp /tmp
bind -a /usr/inferno/Plan9/386/bin/ /bin
}

font = /lib/font/bit/lucidasans/unicode.8.font
prompt=($sysname^'% ' ' ')
fn $sysname%{ $* }
fn acme { /bin/acme -f /lib/font/bit/lucidasans/unicode.7.font $* }
timezone=`{cat /adm/timezone/local}
switch($service){
case terminal
auth/factotum
import t23 / /n/t23
bind -c /n/t23/usr/$user /usr/$user
bind -c /n/t23/usr/$user/tmp /tmp
bind -c /n/t23/usr/inferno /usr/inferno
bins
plumber
upas/fs
echo -n accelerated > '#m/mousectl'
echo -n 'res 3' > '#m/mousectl'
exec rio
case cpu
bins
if (test -e /mnt/term/mnt/wsys) {
# rio already running
wsys = /mnt/term^`{cat /mnt/term/env/wsys}
bind -a /mnt/term/mnt/wsys /dev
echo -n $sysname > /dev/label
}
bind /mnt/term/dev/cons /dev/cons
bind /mnt/term/dev/consctl /dev/consctl
bind -a /mnt/term/dev /dev
upas/fs
news
if (! test -e /mnt/term/mnt/wsys) {
# cpu call from drawterm
plumber
auth/factotum
exec rio
}
case con
bins
news
}

No comments: