For those of you who are not familiar with this particularly unique UNIX variant, you may wonder what on earth is the deal with this slightly strange looking bunny. But in the mid-80s, when Bell Labs began to move on from the development of UNIX, they began to work on a new project; one that would grow directly out from UNIX as the next step in its evolution, and they called it “Plan 9 from Bell Labs” (named after the old Sci-Fi flick ‘Plan 9 from Outer Space’). In some ways, it is the direct child of the UNIX TSS. But although it was similar to UNIX, and was created as a research OS (much like UNIX) it never really caught on. However Bell Labs continues to develop it and use it as a platform for research into Operating System design concepts. In all likelihood it is probably the least known branch of the UNIX family tree and, as such, it intrigued me.
I had done some cursory research into it before but it always seemed so complicated and not useful enough to me to really bother. But eventually I decided to install it on a virtual machine on my computer for my own personal enrichment. I’m still in the process of playing around with it to see what cool treats it might offer a geek like myself — but until then, if there are any other likeminded geeks who would like to play around with this OS but don’t know where to begin, here’s my tutorial on how to preform a standard installation of “Plan 9 from Bell Labs” using its (rather complex) installer.
What you need to know:
- Plan 9 works very much like UNIX but IS NOT UNIX. (Although it does belong in the UNIX family tree as does Linux)
- Plan 9 is not pretty, and somewhat retro in its default GUI (called Rio)
- Plan 9 is very unique, so get ready for a whole new Operatin System experience.
- Plan 9 does not have much available for it and so don’t plan on using it as a primary OS or anything funny like that
- A more detailed and technical explanation of Plan 9 and how to install it can be found on Bell Lab’s website here but I’ll try to keep mine a little more straight forward.
Download the “Plan 9 from Bell Labs” install image by clicking here (alternately you can go to the download page here). Extract the archive and you will be left with a Plan9.iso file. This file can be burnt to a CD for use as an installer or used as your virtual CD if you are installing it on a virtual machine.
Boot your Machine from the installation media. You will be met with a little Startup Menu like so and can chose to use it as a live-CD to try out the OS or install. Select option 1 to install.
As the installer prepares to launch, it will ask you to chose a few options. The defaults are likely to be fine, so just hit enter a few times until the installer launches.
Step 4 — configfs:
At this point the basics of the Rio GUI will be loaded. It will consist of a Command Line, a System Monitor & a Console. It supports a mouse, but it is not very useful at this time, really.
You must first decide what sort of file system your installation will use. We will use the default Plan9 system called ‘fossil’.
Hit enter to select default ‘fossil’ system
Step 5 — partdisk:
Now you must partition the disk. Here I’ll show using the whole disk with default settings. Hit enter to start the partdisk tool.
Type in the name of the primary disk to partition/use and press enter.
It will now ask you to decide if it should set up an mbr. Type ‘y’ and hit enter to confirm.
You must now type ‘w’ to write the changes, then hit enter.
Now type ‘q’ to quit the tool, and hit enter.
Step 6 — prepdisk:
You must now prepare the disk to use it for the Operating System. Hit enter to start the tool.
The tool will find the Plan 9 partition that we just made. Hit enter to select it.
Type ‘w’ to write the changes. Hit enter.
Type ‘q’ to quit the tool. Hit enter.
Step 7 — fmtfossil:
You must now initialize the fossil disks. Hit enter to start the tool.
The tool will find the fossil partiton. Hit enter to select it.
Step 8 — mountfs:
You must now mount the file system partition to use it. Hit enter.
Hit enter to select the default partition.
Step 9 — configdist:
Now you will configure how the installer will install the distribution files.
The default is to use a local set of files. Hit enter to select this.
Step 10 — mountdist:
The last step before starting to install the Operating System files is to tell the installer where to find the installer files. Hit enter to run the tool.
Type in the path to the install files. It will generally be the suggested path that ends in ‘data’. And that will be on the cdrom if you are using a CD or .iso
Hit enter to open the browser, but since the selected path is exactly where the install files are located, you will then exit it immediately.
Type ‘exit’ and hit enter to exit the tool.
Step 11 — copydist:
This tool will finally actually install the Operating System. Hit enter to start installing the Files.
Step 12 — bootsetup:
The final step is to configure how the Operating System will boot up. Hit enter to start the tool.
Select ‘plan9’ as the default boot partition. Hit enter.
It will then ask you to set up an mbr. Type ‘y’ and hit enter to confirm.
Step 13 — Finish Install:
Now we finish the installer, by hitting enter. It will then tell you that you can shut the system down.
Step 14 — First Boot:
Remove the Installation Media, then boot the system again. It will wait for you to confirm that it will boot for a local user (the default) so just hit enter.
It will ask you to select the user to login in. On this first run, type ‘glenda’ to launch the GUI.
You will now have a basic installation of “Plan 9 for Bell Labs” running on your machine!
Now you can explore the system and set up user accounts. Learn more on the Plan 9 Wiki, here.