Plan 9 4th Edition Configuration Notes After installation: NETWORK CONFIGURATION Plan 9, 4th Edition does not automatically start the network after installation; you will have to set up the network and edit the startup file to get it going. o Edit /lib/ndb/local to describe your network. Add to it: ipnet=domainname ip=network_ip ipmask=net_mask ipgw=gateway_ip dns=dns_server_ip dns=additional_dns_ip . . . # Use the following for the local host on LAN. # Including the MAC addr seems to allow the box to # resolve its host name. ip=host_addr sys=host_name ether=mac_address # Use the following for remote hosts on LAN ip=host_addr sys=host_name . . . o Manually start the network: ip/ipconfig -g gateway_ip ether /net/ether0 host_addr net_mask o Check network: ip/ping host_name [Note: hit 'Delete' key to stop ping.] If the network is working, move on to the next step. o Edit startup file to start network at boot time: DHCP - edit /rc/bin/termrc by uncommenting commands for dynamic IP. Static IP - edit /rc/bin/termrc by uncommenting commands to start the network and modify the "ip/ipconfig . . ." parameters to those of your network. UPDATE THE SYSTEM o Once the network is configured, update the system to the latest and greatest: First, you will need to go to http://plan9.bell-labs.com/plan9dist/newaccount.html and setup a new account. term% disk/kfscmd allow term% replica/pull -v /dist/replica/network term% disk/kfscmd o Note: the boot loader, 9load, that comes with the installation distribution doesn't work when trying to boot from the HD. Now that the system is updated there is a new version that can be used to boot from the HD. To use it, copy /386/9load to /n/9fat/ directory: term% disk/kfscmd allow term% 9fat: [9fat: is a script to mount the FAT dir on /n/9fat] term% cp /386/9load /n/9fat/ term% disk/kfscmd halt Reboot the system from HD. [I HAVEN'T CHECKED THE FOLLOWING ON THE LATEST UPGRADE. 11.22.03] PRINTING o Edit /sys/lib/lp/devices to include your printer and its location; i.e., it may be a remote printer on UN*X using lpr. o Remove underscore from /rc/bin/service/_tcp515. o Check $filesystem - [TODO: figure out why this needs to be to be done. I forgot.] o lp [ options ... ] [ file ... ] -d dest Select destination printer. -d'?' Display all the available printer devices -q Print the queue for given destination -H Suppress header page. x Printing problem - Sending job to remote printer seems to work only 50% of the time. HTTPD o Create the directory /usr/web and place some html stuff in it. o ip/httpd/httpd will run the web server. o /lib/namespace.httpd seems to control the web servers name space. MULTIPLE CONFIGURATIONS If you plan to work on your system--making an auth server, testing new video or ethernet card, etc.--configure plan9.ini to give you a choice from several setups. o 9fat: will mount the partition containing plan9.ini on /n/9fat o edit /n/9fat/plan9.ini per instructions in the man pages for plan9.ini SSH o aux/ssh_genkey will create /sys/lib/ssh/hostkey.public /sys/lib/ssh/hostkey.secret /sys/lib/ssh/hostkey.secret.factotum AUTHENTICATION and CPU SERVER o Compile kernel - cd /sys/src/9/pc/ - cp pcauth pcglenda - Edit pcglenda Add vga support--if you want it. Extra packages - Packages are now supplied in iso9660 format. mount /srv/9660 /n/dist /path/to/cvs.iso /n/dist/cvs.setup replica/pull /n/dist/cvs mount /srv/9660 /n/dist /path/to/mosml.iso /n/dist/mosml.setup replica/pull /n/dist/mosml mount /srv/9660 /n/dist /path/to/perl.iso /n/dist/perl.setup replica/pull /n/dist/perl mount /srv/9660 /n/dist /path/to/python.iso /n/dist/python.setup replica/pull /n/dist/python mount /srv/9660 /n/dist /path/to/tex.iso /n/dist/tex.setup replica/pull /n/dist/tex