Subject: Things to read before installing install.html, errata.html intro(*), namespace(4), auth(8), boot(8), booting(8), fs(8), fsconfig(8) Subject: Things to customize /lib/ndb/local add ip & ether entries for local systems /adm/timezone/local copy one of the other files in the dir to it /lib/namespace add /local/bin/rc to /bin, if you like /rc/bin/termrc to control booting of your terminals small diffs between pc-demo & cdrom /rc/bin/cpurc to control booting of your cpu servers /rc/lib/rcmain same on pc-demo & cdrom /lib/sky/here your location /lib/vgadb pc-demo version is newer Subject: Configuring IP ndb/cs # sets sysname ip/ipconfig -b -m ipmask ipaddr ip/arpd -b bcast-addr echo -n 'add 0.0.0.0 0.0.0.0 128.100.8.224' > '#P/iproute' bind -a '#Q' /dev # icmp device aux/icmp # icmp listener echo -n 'add tcp il udp icmp' > /net/cs and I added this to /lib/namespace: bind -a #Q /net Subject: disk/prep usage: % disk/prep -r /dev/hd0 # read-only mode on IDE disk 0 % disk/prep -a /dev/sd0 # autopilot mode on SCSI disk 0 prep numbers are in 512 byte sectors want partitions: boot (2048 sectors, 1Meg), swap (9Meg), fs (300Meg) also get: disk (whole disk), partition (1 sector at end), dos % disk/kfs -rf /dev/sd0fs % cp /386/9pcdisk /dev/sd0boot Subject: To backup /n/kfs (diskette version) onto u9fs file system % disk/kfscmd allow % mkdir /n/kfs/n/cannon % 9fs cannon % mkdir /n/cannon/pc/3 % /n/cannon/386/bin/disk/mkfs -a -s /n/kfs /n/cannon/lib/proto/allproto | disk/mkext -uv -d/n/cannon/pc/3 Subject: To backup /n/kfs (diskette version) onto itself % disk/kfscmd allow % mkdir /n/kfs/n/cannon % 9fs cannon % mkdir /n/kfs/backup % /n/cannon/386/bin/disk/mkfs -a -s /n/kfs /n/cannon/lib/proto/allproto | disk/mkext -uv -d/n/kfs/backup Subject: CDROM useful dirs: acme cron lib mail mnt n notice rc sys usr empty dirs: bin dev env fd net netlib proc spool srv tmp Subject: To copy most of CDROM onto /n/kfs partition: Parts of this are from a message by forsyth@plan9.cs.york.ac.uk to 9fans@cse.psu.edu, on Wed, 6 Sep 1995 06:12:59 -0400 Subject: re: How to get access scsi CDROM? see cdrom(3) and dossrv(4) for details. 9660srv can serve several CDROM devices. you select a particular one using a parameter to the mount command; see bind(1). [this assumes scsi cdrom at device 4, and /tmp/386allproto] % 9660srv % bind -a '#R4' /dev # note the '...' protecting the # in #R % ls -l /dev/cd4 # should show something useful % disk/kfscmd allow % mkdir /n/cd % mount /srv/9660 /n/cd /dev/cd4 # now the contents of /dev/cd4 are visible under /n/cd, # in the current name space. % /n/cd/386/bin/disk/mkfs -a -s /n/cd /tmp/386allproto | disk/mkext -uv -d /n/kfs you can also name the #R device directly in the mount command, without the bind: % mount /srv/9660 /n/cd '#R6/cd6' note that if you mount the Plan 9 CDROM this way using the 4 diskette system, you can try: bind -b /n/cd/386/bin /bin bind -b /n/cd/rc/bin /bin and make something nearer the full command set available. (you might then need to do something similar for /sys and /lib for commands that need special data files.) old install.ms used: % mount -c /srv/il!* /n/kremvax % mount /srv/boot /n/boot % disk/mkfs -a -s /n/boot /lib/proto/allproto | time disk/mkext -u -d /n/kremvax; chmod 770 /n/kremvax/sys/src Subject: todo list screen saver write 'df' program for kfs - where disk space is finite Subject: /sys/lib/pcdist mkfile builds disk1 disk2.vd disk3.vd disk4.vd files/ aux files, used by protos pc/ filesystem heirarchy on disk1 src/inst.c: copies disk1 onto c:/plan9 boot from floppy disk1, where disk1.cpurc runs /bin/inst char n1[] = " System Installation & Configuration"; src/build.c: performs 3-disk and CDROM installations to kfs or fs servers boot from dos c:\plan9\b, where disk1.doscpurc runs /bin/build char n1[] = " File System Installation"; CDSIZE = 500*1024*1024, FLSIZE = 14*1024*1024, Subject: Compiling kernels cd /sys/src/9/pc mk 'CONF=pcdisk' cd /sys/src/9/magnum mk # to build terminal kernel mk 'CONF=magnumcpu' # to build cpuserver kernel Subject: scsi on Magnums scuzz probe finds 0 & 1, both Maxtor LXT-200S open 0 capacity 392055 512 (#blocks, block size) = 191Meg bind -a '#w0' /dev disk/prep /dev/sd0disk setup swap=68,800 sectors (34Meg) setup fs=321,206 sectors (157Meg) bind -a '#w1' /dev disk/prep /dev/sd1disk setup swap=131,072 sectors (64Meg) setup fs=260,982 sectors (127Meg) swap /dev/sd0swap cat /dev/swap Subject: booting PC b.com(8) searches fd,hd,sd (in that order) for plan9.ini Subject: setting up authentication manuals: auth(8), keyfs(4), auth(6) also: /lib/ndb/auth in /lib/ndb/local: 9P=auth sam /adm/users to add users to system auth/wrkey to change passwd in nvram on auth server auth/keyfs serves /mnt/keys, from /adm/keys & #r/nvram auth/changeuser bootes to add bootes machine login auth/changeuser steve to add steve to /adm/keys and /adm/keys.who auth/changeuser cks auth/changeuser norman