<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf8">
<title>/usr/web/sources/contrib/john/planb.txt - Plan 9 from Bell Labs</title>
<!-- THIS FILE IS AUTOMATICALLY GENERATED. -->
<!-- EDIT sources.tr INSTEAD. -->
</meta>
</head>
<body>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
<span style="font-size: 10pt"><a href="/plan9/">Plan 9 from Bell Labs</a>&rsquo;s /usr/web/sources/contrib/john/planb.txt</span></p>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<center><font size=-1>
Copyright © 2009 Alcatel-Lucent.<br />
Distributed under the
<a href="/plan9/license.html">Lucent Public License version 1.02</a>.
<br />
<a href="/plan9/download.html">Download the Plan 9 distribution.</a>
</font>
</center>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<table width="100%" cellspacing=0 border=0><tr><td align="center">
<table cellspacing=0 cellpadding=5 bgcolor="#eeeeff"><tr><td align="left">
<pre>
<!-- END HEADER -->
Installing Plan B on Qemu
John Floren, 2007-06-19
--------------------------
This document describes my experiences installing Plan B on Qemu, specifically under Windows Vista. Note that, while this will let you run omero and other Plan B applications, not everything seems to be perfect. Most notably, /who and /mail are a little incorrect.

1) Install a standalone Plan 9 terminal under Qemu. Just use fossil, no need for venti.

2) From your new terminal, download the Plan B tarball from http://lsub.org/ls/export/planb4e.tgz using hget. Save it to $home.

3) Run "con /srv/fscons" and type "srv instfs", then hit ^\ and type q to quit.

4) "mount -c /srv/instfs /n/inst" We do this because you can't uncompress things directly into /

5) "cd /n/inst &amp;&amp; tar xzvf $home/planb4e.tgz"

6) In my case, the omero that was included in the tarball wanted special fonts that I didn't have, so I recompiled it from source, which can use Plan 9 fonts. Do the following:
	9fs sources
	mkdir $home/omero
	cp /n/sources/contrib/nemo/sys/src/cmd/omero/* $home/omero/
	cd $home/omero
	mk
	cp 8.out /bin/omero

6) Okay, here's where I'm not quite sure about the procedure. You need to specify where your root comes from, but it's unclear where the config file goes. I created /lib/ndb/vol/vols with the following line:
	/srv/vfossil main/active / /
To be safe, I copied that file to /lib/ndb/vol/volumes, /lib/ndb/volumes/vols, and /lib/ndb/volumes/volumes. Only one of these files is correct, but I'm not certain which it is--haven't bothered to test.

7) Run "cd $home/tmp &amp;&amp; fossil/conf /dev/sdC0/fossil &gt; fossil.conf" to get a copy of your current fossil config.

8) Edit the fossil.conf file to look similar to mine:
	fsys main config /dev/sdC0/fossil
	fsys main open -AWP -V -c 1500
	srv bfs
	srv vfossil
	fsys main
	srv -p cons
	srv fossil
and write the new configure file with the command "fossil/conf -w /dev/sdC0/fossil $home/tmp/fossil.conf"

9) Run "9fat:" and edit /n/9fat/plan9.ini to look similar to mine (you may need to change some options):
	bootfile=sdC0!9fat!9pcf
	bootargs=local!#S/sdC0/fossil
	bootdisk=local!#S/sdC0/fossil
	init=/386/bin/bns
	planb=yes
	sysname=zaphod	#change this to match your config
	fs=127.0.0.1
	auth=127.0.0.1
	*nomp=1
	*nodumpstack=1
	partition=new
	dmamode=ask
	mouseport=ps1
	monitor=xga
	vgasize=1280x1024x8

10) Go ahead and reboot, selecting root from local and user "glenda". You should get a standard rio screen, but if you sweep out a window and run "omero", everything should work properly.

That's all I know! If any of these instructions don't work properly, contact me at slawmaster AT gmail.com.
<!-- BEGIN TAIL -->
</pre>
</td></tr></table>
</td></tr></table>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
<span style="font-size: 10pt"></span></p>
<p style="margin-top: 0; margin-bottom: 0.50in"></p>
<p style="margin-top: 0; margin-bottom: 0.33in"></p>
<center><table border="0"><tr>
<td valign="middle"><a href="http://www.alcatel-lucent.com/"><img border="0" src="/plan9/img/logo_ft.gif" alt="Bell Labs" />
</a></td>
<td valign="middle"><a href="http://www.opensource.org"><img border="0" alt="OSI certified" src="/plan9/img/osi-certified-60x50.gif" />
</a></td>
<td><img style="padding-right: 45px;" alt="Powered by Plan 9" src="/plan9/img/power36.gif" />
</td>
</tr></table></center>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<center>
<span style="font-size: 10pt">(<a href="/plan9/">Return to Plan 9 Home Page</a>)</span>
</center>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<center><font size=-1>
<span style="font-size: 10pt"><a href="http://www.lucent.com/copyright.html">Copyright</a></span>
<span style="font-size: 10pt">© 2009 Alcatel-Lucent.</span>
<span style="font-size: 10pt">All Rights Reserved.</span>
<br />
<span style="font-size: 10pt">Comments to</span>
<span style="font-size: 10pt"><a href="mailto:webmaster@plan9.bell-labs.com">webmaster@plan9.bell-labs.com</a>.</span>
</font></center>
</body>
</html>