General Notes on Plan 9 Usage: o System shutdown can be achieve with: disk/kfscmd halt o IDE devices: sdC0 - Primary master IDE device sdC1 - Primary slave IDE device sdD0 - Secondary master IDE device sdD1 - Secondary slave IDE device o Equivalent or similar commands in UN*X. Plan9 Linux FreeBSD Windoze ----- ----- ------- ------- listen(8) inetd inetd Sorry, you ls (lc) ls ls can't really du du du do anything cat cat cat interesting ns (name space) N/A N/A with Windoze. dd dd dd xd od od df (rc script avail.) df df lp lpr lpr mv mv mv cp cp cp pwd pwd pwd cat /dev/sysname hostname cat /dev/[various] - lots of information about the system BASIC COMMANDS, Etc. o Mounting floppy disks, CDROMs, etc. - Mount floppy: term% a: (this toggles mount/unmount of floppy on /n/a:) - Mount FAT partition--where the loader and plan9.ini lives: term% 9fat: (mounts on /n/9fat) - Mount CDROM drive: term% 9660srv term% mount /srv/9660 /n/tapefs /dev/sdDO/data (Substitute your device for sdD0; CDROM will be mounted on /n/tapefs.) PROBLEMS, SOLUTION, Q&A, and STUFF, Etc.: o How to issue something like ^C or ^D to stop a process at the command line. Solution: The Delete key will abort process launched at command line. o df equivalent command Solution: There is an rc script available for this. o how to read p9 troff docs located in /sys/doc/ Solution: The files can be output using troff with -ms macros. Most are located in /sys/doc/ as *.ms and *.ps o ping, traceroute, and others seem to be missing. Solution: ip/ping, ip/ipconfig, ip/traceroute will execute these commands. Look in /bin/ip/ for more commands. o Have trouble with ISA NICs. The system panics and dumps to the screen. I don't know; need to figure this out. Solution: PCI NICs, especially NE2000 clones, seem to work. o What is /rc/bin/services/tcp564 Linux /etc/services refers to this as "plan 9 file service". What it's used for on Linux I couldn't say. USING RIO: 1. Right mouse button on root window (grey background) brings up menu: New - create a new window. Click and drag with right mouse button. Resize - not necessary to pick on menu. Left click and drag edge or corner of window. Move - not necessary to pick on menu. Right click on edge of window and drag to where you want. Delete - will kill a window. Hide - hide a window. To recover it Right mouse click and pick the window you want from the menu. 2. Middle mouse button on root window brings up menu: Snarf - copy text to clipboard. Highlight text by dragging with left mouse button. Then middle mouse button and pick Snarf. Cut - cut text to clipboard. Paste - paste text from cut or snarf at position of cursor USEFUL APPS ETC. 1. sam - text editor 2. acme - very cool programmer's environment. A mouse lovers replacement for emacs. (Check out Wily if you want an acme clone for Linux.) acme mouse usage: Note: 1, 2, and 3 are Left, Middle, and Right mouse buttons respectively. select - 1 sweep text execute - 2 on single word; 2 sweep multiple words view file or change directory - 3 or 3 sweep snarf - execute from menu cut - 1 sweep then chord with 2 paste - chord 1+3 replace - snarf or cut something then select and paste the snarfed text toggle fonts - Type in the command "Font" then execute it. 3. ftpfs - "mounts" ftp system as a filesystem on Plan9. You can then access it as if it were a part of the local namespace using the commands ls, cp, etc. instead of the ftp specific commands. You can also edit remote files--mounted as ftpfs--with acme or sam. Ftpfs mounts are only necessary when the remote host is not a Plan 9 system; Plan9 to Plan9 systems have no need for ftp or nfs. ftpfs [ -/dqn ] [-k] -m mountpoint ] [ -a password ] [ -e ext ] [ -o os ] [ -r remoteroot ] system