📄 ch21.htm
字号:
<P>To partition the disk, use the <TT>FDISK.EXE</TT> utility (see Figure 21.3).</P><P><A NAME="03"></A><A HREF="03.htm"><B>FIGURE 21.3.</B></A> <BR><I>The FDISK utility.</I></P><P>First, delete all partitions (you will be starting over with an entirely cleandisk). Allocate whatever space you intend for the DOS area (I recommend at least11MB). After you reboot your machine, you will format this partition and installDOS onto it.<BLOCKQUOTE> <P><HR><FONT COLOR="#000077"><B>NOTE:</B></FONT><B> </B>At this stage, you should have a hard disk drive with one DOS partition at least 11MB in size. The rest of your hard disk drive should not contain any other type of partition. <HR></BLOCKQUOTE><H3><FONT COLOR="#000077"><B>Installing the Basic Plan 9 System</B></FONT></H3><P>The remaining steps of this portion of the installation are simple. Boot withthe Plan 9 boot diskette (this is the diskette to which you wrote the <TT>disk1</TT>file). During the boot process, you will see a series of messages; most are easyto read and interpret. Plan 9 tracks your memory and reports what portions of itare available. It identifies your hardware. Ultimately, it brings you to a nice bluescreen, which contains the heading <I>System Installation & Configuration</I>.</P><P>From this screen, you perform the installation. Pressing the Enter key invokesa menu containing various installation options. Ensure that these are correct foryour machine. When you are satisfied that these options are correct, choose the Installoption.</P><P>A window will appear, and many filenames will scroll past. Do not be alarmed.This is Plan 9's way of telling you which files were installed. When this processis complete, Plan 9 interrogates you about your hardware. Specifically, options mustbe set for your VGA, mouse, and so forth. Provide the necessary answers and chooseSave Configuration from the menu.<BLOCKQUOTE> <P><HR><FONT COLOR="#000077"><B>NOTE:</B></FONT><B> </B>Plan 9 gives you an opportunity to change the options before they are committed to the disk. A dialog box appears, listing your options. If they are incorrect, go back and change them. <HR></BLOCKQUOTE><P>After the options have been saved, you can remove the floppy disk and reboot themachine. Your DOS should boot normally. As mentioned previously, almost all problemswith this installation procedure occur at time of booting <TT>disk1</TT>. To my knowledge,there have been few instances of problems occurring on the reboot to DOS.<H3><FONT COLOR="#000077"><B>Installing the Remaining Diskette Files</B></FONT></H3><P>After you reboot your machine, change your current directory to <TT>C:\PLAN9</TT>and type the letter <TT>B</TT> to load an installation program. You must define thetarget disk drive. This tells Plan 9 in which disk you intend to house the Plan 9file system. I am assuming here that you have a single disk, so this is not an issue.But if you are installing to a machine with multiple disks (and partitions), takeextra care to ensure that it is the correct partition.<BLOCKQUOTE> <P><HR><FONT COLOR="#000077"><B>WARNING:</B></FONT><B> </B>If you choose the incorrect partition, all your data on that partition will be lost. Be <I>absolutely</I> <I>certain</I> that you have chosen the correct partition before you commit to the install procedure. <HR></BLOCKQUOTE><P>After you choose your partition, Plan 9 begins the file system installation process.A dialog box appears, prompting you to insert the second disk into the floppy diskdrive. After you do so, the installation of system files commences. You will againsee a pop-up window with filenames scrolling by. Insert disks as the program requeststhem. When the installation procedure is complete, you will be prompted by a menu.Choose the option that says <TT>Make the newly installed Plan 9 the default</TT>.</P><P>Congratulations. At this stage, the installation procedure has been completed.You can now remove the fourth disk, reboot your machine (choose this menu option),and begin to explore Plan 9.<H3><FONT COLOR="#000077"><B>Starting Plan 9</B></FONT></H3><P>When you machine reboots, change your current directory to Plan 9. There, typethe command</P><PRE><FONT COLOR="#0066FF">B</FONT></PRE><P>This loads the Plan 9 system. First, you will see many of the same messages yousaw when you booted with the boot floppy (<TT>Disk1</TT>). The system will identifyyour hardware, count your memory, and describe some resources. When it is finished,a line that looks like the following will be printed to your terminal:</P><PRE><FONT COLOR="#0066FF">root is from (local, 9600, 19200, il)[local!#H/hd0fs]:</FONT></PRE><P>Press the Enter key. You will then be prompted with a line that looks like this:</P><PRE><FONT COLOR="#0066FF">user[none]:</FONT></PRE><P>Press the Enter key again. Depending on the speed of your system, you will soonbe asked whether Plan 9 should start the window system. Choose Yes.</P><P>If you have gotten this far, 8<SUP>1</SUP>/2 should load cleanly (barring someobscure error). If so, you will be presented with a bright screen (its color maydepend on your video card; on mine, the screen is white), a clock, and a window withthe contents of the <TT>README</TT> file printed within it. Welcome to Plan 9. (Lookat the size of that mouse cursor!)</P><P>Navigating the file system works much like it does in UNIX. You can use the CDcommand to get from directory to directory. Here are some minor notes that may assistyou on your first test drive of Plan 9:<UL> <LI>The <TT>-a</TT> option in the <TT>ls</TT> utility is not supported. You are not crazy, it is simply not available in Plan 9.<BR> <BR> <LI>The <TT>-F</TT> flag is supported in Plan 9. However, the output appears a bit differently than in UNIX. The character that denotes a directory is found on the extreme left of the table, not the right. It is easy to miss.<BR> <BR> <LI>If you are a big fan of the <TT>MORE</TT> utility, you may be disappointed. Use <TT>CAT</TT> instead.<BR> <BR> <LI>If you want to get an overall look at the system, start ACME. This utility works a similarly to a file manager, revealing files and directories. These can be opened within the ACME environment.<BR> <BR> <LI><TT>DF</TT> is not supported, but <TT>DU</TT> is.</UL><H2><FONT COLOR="#000077"><B>Summary</B></FONT></H2><P>Plan 9 from Bell Labs is a new and unique operating system that offers an entirelynew outlook on Internet security. Still, it is far from supplanting modern UNIX.(In fact, many people believe that the next commercially viable operating systemwill be Inferno from Lucent. To some extent, this is true, because Inferno is nowbeing used in set-top boxes for interactive TV.)</P><P>Plan 9 seems best suited for very large organizations. The system appears to havebeen designed expressly with the Internet in mind and on a grand scale. I would callit some finely crafted mortar with which to seal the cracks in modern networkingtechniques. Because there is little research available on the security model of Plan9, we must simply wait and see. However, as a hacking project, I cannot think ofa better start than Plan 9 from Bell Labs.<H3><FONT COLOR="#000077"><B>Resources</B></FONT></H3><P>Following are several resources on Plan 9, including sites on the WWW, papers,and mailing lists (of course, some may change by the time you read this book). Itseems that the Plan 9 computing base is a small (but growing) faction, making informationon this new operating system scarce.<H4><FONT COLOR="#000077"><B>Plan 9 on the WWW</B></FONT></H4><P><B>The Plan 9 Server Document Directory</B><UL> <LI><A HREF="ftp://plan9.bell-labs.com/plan9/doc/"><TT>ftp://plan9.bell-labs.com/plan9/doc/</TT></A></UL><P><B>The Plan 9 PC Diskette Installation Distribution</B><UL> <LI><A HREF="ftp://plan9.bell-labs.com/plan9/pcdist/"><TT>ftp://plan9.bell-labs.com/plan9/pcdist/</TT></A></UL><P><B>The Plan 9 FAQ</B><UL> <LI><A HREF="http://plan9.bell-labs.com/plan9/faq.html"><TT>http://plan9.bell-labs.com/plan9/faq.html</TT></A></UL><P><B>Technical Documentation on Plan 9 (Papers)</B><UL> <LI><A HREF="http://plan9.bell-labs.com/plan9/vol2.html"><TT>http://plan9.bell-labs.com/plan9/vol2.html</TT></A></UL><P><B>Overview of the Plan 9 File System</B><UL> <LI><A HREF="http://www.emrtc.nmt.edu/~mikebaz/plan9.html"><TT>http://www.emrtc.nmt.edu/~mikebaz/plan9.html</TT></A></UL><P><B>The Plan 9 Mailing List Archive</B><UL> <LI><A HREF="ftp://ftp.cse.psu.edu/pub/plan9-fans/"><TT>ftp://ftp.cse.psu.edu/pub/plan9-fans/</TT></A></UL><P><B>Online Bibliography on Plan 9</B><UL> <LI><A HREF="http://liinwww.ira.uka.de/bibliography/Os/plan9.html"><TT>http://liinwww.ira.uka.de/bibliography/Os/plan9.html</TT></A></UL><P><B>The Plan 9 Usenet Newsgroup</B><UL> <LI><A HREF="news:comp.os.plan9"><TT>news:comp.os.plan9</TT></A></UL><P><B>The Unofficial Plan 9 Page </B>(Very Good)<UL> <LI><A HREF="http://www.ecf.toronto.edu/plan9/"><TT>http://www.ecf.toronto.edu/plan9/</TT></A></UL><P><B>Plan 9 Web Server at the University of York (UK)</B><UL> <LI><A HREF="http://www.plan9.cs.york.ac.uk/"><TT>http://www.plan9.cs.york.ac.uk/</TT></A></UL><P><B>Official Plan 9 Home Page</B><UL> <LI><A HREF="http://plan9.bell-labs.com/plan9/index.html"><TT>http://plan9.bell-labs.com/plan9/index.html</TT></A></UL><H4><FONT COLOR="#000077"><B>Articles and Such</B></FONT></H4><P><B>Plan 9: Son of UNIX.</B> Robert Richardson. <I>LAN Magazine</I> (Volume 11,Page 41). August 1, 1996.</P><P><B>Plan 9: Feature Film to Feature-Rich OS.</B> Paul Fillinich. <I>Byte Magazine</I>(Volume 21, Page 143). March 1, 1996.</P><P><B>Plan 9 from AT&T<I>.</I></B> David Bailey. <I>UNIX Review</I> (Volume 1,Page 27). January 1, 1996.</P><P><B>Plan 9 from Bell Labs.</B> Rob Pike, Dave Presotto, and Phil Winterbottom.<I>Computing Systems Journal</I> (Volume 8, Page 221). Summer, 1995.</P><P><B>Plan 9.</B> Sean Dorward, Rob Pike, and Dave Presotto. <I>UNIX Review</I> (Volume10, Page 28). April 1, 1992.</P><P><B>Designing Plan 9.</B> Rob Pike, Dave Presotto, and Ken Thompson. <I>Dr. Dobb'sJournal</I> (Volume 16, Page 49). January 1, 1991.</P><P><B>Is Plan 9 Sci-Fi or UNIX for the Future?</B> Anke Goos. <I>UNIX World</I> (Volume7, Page 61). October 1, 1990.</P><CENTER><P><HR><A HREF="../ch20/ch20.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../ch22/ch22.htm"><IMGSRC="../button/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"BORDER="0"></A><A HREF="../index.htm"><IMG SRC="../button/contents.gif" WIDTH="128"HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> <BR><BR><BR><IMG SRC="../button/corp.gif" WIDTH="284" HEIGHT="45" ALIGN="BOTTOM" ALT="Macmillan Computer Publishing USA"BORDER="0"></P><P>© <A HREF="../copy.htm">Copyright</A>, Macmillan Computer Publishing. Allrights reserved.</CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -