\documentclass[letterpaper]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{ÎÞ´Åµú Linux Mini Howto}
\author{×÷Õß:
Robert Nemkin {\ttfamily buci@math.klte.hu}\\ 
ÒëÕß:
Ð»À¥ÖÐ HSIEH Kun-Chung, Ì¨Íå ÖÐ»ªÃñ¹ú Taiwan, Republic of China (NOT People's Republic of China)
{\ttfamily (\onlynameurl{linuxer.bbs@cis.nctu.edu.tw} )}\\ }
\date{v0.0.3°æ, 1996Äê 9ÔÂ12ÈÕ}
\abstract{±¾ÎÄ¼þÔÚÐðÊöÈçºÎÉèÁ¢Ò»¸öÎÞ´Åµú Linux »úÆ÷¡£Öø×÷È¨Îª Robert Nemkin ËùÓÐ¡£Öø×÷È¨Ìõ¿îÒÀÕÕ GPL¡£ÎÒÏëÒªÐ»Ð» Bela Kis $<$bkis@cartan.math.klte.hu$>$
½«Õâ·ÝÎÄ¼þ·­Òë³ÉÎªÓ¢ÎÄ¡£}


\begin{document}
\maketitle
\tableofcontents

\section{ÐÞ¸Ä}

\begin{itemize}
\item v0.0.3°æ 1996Äê9ÔÂ12ÈÕ: Ò»Ð¡²¿·ÝµÄÐÞ¸Ä
\end{itemize}





\section{ÈçºÎÉèÁ¢Ò»¸öÎÞ´ÅµúµÄ Linux »ú}

±¾ÎÄ¼þÔÚÐðÊöÈçºÎÉèÁ¢Ò»¸öÎÞ´Åµú Linux »úÆ÷¡£ÓÐÊ±ºòÎÒÃÇ¿ÉÄÜÐèÒªÔÚÒ»¸ö¼ÈÎÞÓ²µú
ÒàÎÞÈíµú»úµÄ¸öÈËµçÄÔÉÏÖ´ÐÐ Linux ¡£Èç¹ûÓÐ¸öÍøÂ·£¬ ÆäËûµÄ Unix ÏµÍ³ÓÐÖø bootp, tftp, NFS
ËÅ·þÆ÷£¬¶øÎÒÃÇÓÖÓÐÒ»¸ö eprom ÉÕÂ¼»ú£¬ÄÇ÷áÎÒÃÇÓÐ°ì·¨ÔÚ½¨Á¢Ò»¸öÎÞÈÎºÎ´Åµú»úµÄ LinuxÏµÍ³ÁË¡£




\section{Ïà¹ØÎÄÕÂ}

\begin{itemize}
\item NFS-root Mini Howto
\item Linux NET-2/3-HOWTO ÓÉ Terry Dawson ËùÐ´, {\ttfamily 94004531@postoffice.csu.edu.au}
\item {\ttfamily /usr/src/linux/README} ¡õì¶½¨¹¹ÒÔ¼°±àÒëÐÂºËÐÄ
\end{itemize}





\section{Ó²Ìå}

ÔÚ±¾ÎÄËùÌáµ½µÄ¶¼ÊÇÒÔÏÂÃæµÄ½¨¹¹À´×öµÄ
\begin{itemize}
\item Sun-OS 4.1.3 ×öÎªÆô¶¯ËÅ·þÆ÷
\item Slackware 2.3 + Linux 1.2.8 + wd 8013 ÍøÂ·¿¨
\item ÒÑÊ¹ÓÃÖÐµÄÒÒÌ«ÍøÂ·
\end{itemize}





\section{»ù±¾¸ÅÄî}

»ù±¾¸ÅÄîÈçÏÂ£º¸öÈËµçÄÔ»á¾­ÓÉ bootp Ð­¶¨´ÓÆô¶¯ËÅ·þÆ÷ÖÐÀ´È¡µÃËüµÄ IP Î»Ö·¡£
ÓÃ 0.0.0.0 Îª³õÊ¼ IP Î»Ö·£¬¶øËüµÄºËÐÄ³ÌÊ½»á¾­ÓÉ tftp Ð­¶¨¡£\footnote{Ìø¹ýÇø¶ÎµÄÆô¶¯
(¾­ÓÉÂ·ÓÉÆ÷router) ²¢²»ÊÇ¸ö¼òµ¥ÎÊÌâ£¬ËùÒÔ£¬²»ÊÇ½«ËÅ·þÆ÷ÒÔ¼°ÎÞ´Åµú»úµÄ»úÆ÷·ÅÖÃÔÚÍ¬Ò»¸öÍøÂ·
Çø¶Î£¬¾ÍÖ»ÓÐ½¨¹¹Ò»¸ö UDP ¸¨ÖúÎ»Ö·ÔÚÄãµÄ router µ½ËÅ·þÆ÷µÄÎ»Ö·ÉÏ¡£Ï¸½ÚÇë²Î¿¼ÄãµÄ router
²úÆ÷ÊÖ²á¡£}

ÒÔÏÂÊÇÎÒÃÇµÄ²½Öè




\subsection{Éè¶¨¸öÈËµçÄÔ}

È¡µÃ nfsboot Ì×¼þ (¿É´ÓÄã½ÏÏ²»¶µÄ linux mirror ¾µÉäÕ¾µÄ {\ttfamily /pub/Linux/system/Linux-boot}
Ä¿Â¼È¡µÃ)¡£Ëü°üº¬ÁËÒ»¸ö¸ø wd8013¿¨¿ÉÖ±½ÓÉÕÂ¼ÓÃµÄ booteprom Ó³Ïñµµ¡£

»¹ÓÐÆäËû·½·¨¿ÉÒÔ×¼±¸¸öÈËµçÄÔ²¿·Ý:
\begin{itemize}
\item Èç¹ûÄãµÄ»úÆ÷²¢²»ÊÇÃ»ÓÐ´ÅµúµÄ£¬ÄÇ÷áÄã¿ÉÒÔÊ¹ÓÃÐ¡Ð¡µÄ DOS ³ÌÊ½»ò
\item º¬ÓÐÍ¬ÑùÌ×¼þµÄ¶þ½øÎ»ÈíÌåÓ³Ïñµµ¡£
\end{itemize}
Èç¹ûÄãÑ¡ÔñµÄÊÇµÚ¶þÕß£¬Äã±ØÐëÊ¹ÓÃ dd ÃüÁîÀ´½«Õâ¸öÓ³ÏñµµÐ´ÈëÒ»ÕÅÈíµúÆ¬¡õ¡£

Õâ¸öÓ³Ïñµµ°üº¬ÁË bootp ÒÔ¼° tftp ¿Í»§¶Ë³ÌÊ½¡£
ÄãÒ²ÐèÒª×¼±¸Ò»¸ö linux ºËÐÄ³ÌÊ½Âë£¬Ëüº¬ÓÐ nfs-root Ñ¡Ïî¡£
\begin{itemize}
\item Èç¹ûÄãÊ¹ÓÃ×îÐÂµÄÎÈ¶¨ºËÐÄ³ÌÊ½£¬Èç linux-1.2.13£¬ÄÇ÷áÄãÐèÒªÊ¹ÓÃ°üº¬ÔÚ nfsbootkÌ×¼þÄÚµÄ¡¡patch ÐÞ²¹ºËÐÄ³ÌÊ½¡£\footnote{²Î¿¼ patch(1)}
\item Èç¹ûÄãÏëÒªÓÃ×îÐÂµÄ£¬µ«È´²»ÊÇºÜÎÈµÄ linux-1.3.x ÏµÁÐºËÐÄ£¬ÄÇ÷áÄã¾ÍÐèÒª½¨¹¹ nfs-root ÕâÑ¡Ïî¡£
\end{itemize}

Ëæ±ãÄãÒª²»Òª½¨¹¹Çø¿éÉè±¸ (Èíµú»ú»òÓ²µú»ú) µÄÖ§Ô®£¬µ«Äã±ØÐë½¨¹¹ tcp/ip Ö§Ô®¡¢ wd ÒÒÌ«ÍøÂ·¿¨Ö§Ô®¡¢
nfs µµ°¸ÏµÍ³Ö§Ô®¡£È»ááÖØÐÂ±àÒëºËÐÄ³ÌÊ½¡£






\subsection{ÔÚËÅ·þÆ÷ÉÏÉè¶¨ bootpd}

Ëü¿ÉÒÔÔÚ {\ttfamily bootpd-2.4.tar.gz}Ì×¼þÖÐÕÒµ½
(¿É´ÓÄã½ÏÏ²»¶µÄ linux mirror ¾µÉäÕ¾µÄ {\ttfamily /pub/Linux/system/Network/boot.net} Ä¿Â¼ÄÚ)¡£È¡µÃÕâ¸öÌ×¼þ£¬
±àÒë²¢°²×°Ëü¡£Èç¹ûÄãÆäËûµÄ Unix »úÆ÷Ò²ÊÇÓÃ Slackware Linux µÄ£¬ÄÇ÷á±ê×¼µÄ¹©Ó¦°æ±¾¾Í
ÓÐ bootpd ÁË£¬ËùÒÔÄã¿ÉÒÔÌø¹ýÕâ²¿·Ý¡£ daemon ¿ÉÒÔÖ±½Ó·¢³öÃüÁîÀ´Ö´ÐÐ
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
        bootpd -s
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}

»òÊÇÊ¹ÓÃ inetd£¬µ«ÄãÐèÐÞ¸Ä£º
\begin{itemize}
\item  /etc/inetd.conf ÔÚÕâÐ©ÌõÁÐÖÐÒÆ³ý \# ºÅ

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
# tftp   dgram   udp     wait    root    /usr/sbin/in.tftpd     tftpd /export
# bootps dgram   udp     wait    root    /usr/sbin/in.bootpd    bootpd
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}

\item ÔÚ /etc/services ÖÐ²åÈë»òÊÇÒÆ³ý±¸×¢·ûºÅ£º

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
bootps          67/tcp          # BOOTP server
tftp            69/udp          # TFTP server
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}

\item ÖØÐÂÆô¶¯ inetd £¬Ê¹ÓÃ

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
        kill -HUP <process id of inetd>.
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}
\end{itemize}





\subsection{ÔÚËÅ·þÆ÷ÉÏ½¨¹¹ bootpd}

ÓÉÏÈ£¬ bootpd ÓÐ¸ö½Ð bootptab µÄ½¨¹¹µµ£¬ËüÍ¨³£±»·ÅÔÚ /etc ÄÚ¡£Äã±ØÐëÐÞ¸Ä
Ëü£¬¼ÓÉÏÄãµÄÎÞ´Åµú»úÆ÷µÄÕ¢µÀ IP Î»Ö·¡¢ dns ËÅ·þÆ÷£¬ÒÔ¼°ÒÒÌ«ÍøÂ·Î»Ö·(es)¡£
¡õÀýÈçÏÂ /etc/bootptab:
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}

global.prof:\
        :sm=255.255.255.0:\
        :ds=192.168.1.5:\
        :gw=192.168.1.19:\
        :ht=ethernet:\
        :bf=linux:
machine1:hd=/export/root/machine1:tc=global.prof:ha=0000c0863d7a:ip=192.168.1.140:
machine2:hd=/export/root/machine2:tc=global.prof:ha=0800110244e1:ip=192.168.1.141:
machine3:hd=/export/root/machine3:tc=global.prof:ha=0800110244de:ip=192.168.1.142:
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


global.prof ÊÇ host ÏîÄ¿µÄÒ»°ãÑù±¾£¬ÆäÖÐ
\begin{itemize}
\item sm À¸°üº¬×ÓÍøÂ·ÕÚÕÖ
\item ds À¸°üº¬ÍøÓòÃû³ÆËÅ·þÆ÷µÄÎ»Ö·
\item gw À¸°üº¬ÄÚ¶¨Õ¢µÀÎ»Ö· gateway
\item ht À¸°üº¬ÍøÂ·Ã½½éÓ²ÌåÖÖÀà
\item bf À¸°üº¬Æô¶¯µµµµÃû
\end{itemize}


Ö®áá£¬Ã¿Ò»Ì¨»úÆ÷Ó¦¸ÃÓÐÏÂÃæÕâÐÐ
\begin{itemize}
\item Ê×À¸°üº¬Ö÷»úÃû³Æ
\item hd À¸°üº¬Æô¶¯µµ°¸µÄÄ¿Â¼
\item È«ÇøÑù±¾Ó¦¸Ã±»°üº¬µ½ tc À¸£¬
\item ha À¸°üº¬ÒÒÌ«ÍøÂ·¿¨µÄÓ²ÌåÎ»Ö·
\item ip À¸°üº¬±»·ÖÅäµÄµÄ IP Î»Ö·
\end{itemize}







\subsection{ÁË½â tftp}

TFTP ({\ttfamily Trivial File Transfer Protocol}) ÊÇÒ»¸öµµ°¸´«ÊäÐ­¶¨£¬¾ÍÏñ ftp Ò»Ñù£¬µ«
Ëü±È±È½Ï¼ò»¯£¬Òò´Ë¿ÉÒÔÈÝÒ×µØÔÚ EPROM ¡õÀ´±àÂë¡£ TFTP µÄÊ¹ÓÃ·½·¨ÓÐ¶þÖÖ£º
\begin{itemize}
\item  ¼òµ¥µÄ tftp: ±íÊ¾¿Í»§¶Ë¿ÉÒÔ´æÈ¡ÄãµÄÕû¸öµµ°¸ÏµÍ³¡£ËäÈ»½Ï¼òµ¥µ«È´¿ªÁËÒ»¸ö°²È«´ó¶´
(ÈÎºÎÈË¶¼¿ÉÒÔ¾­ÓÉ tftp À´ÄÃµ½ÄãµÄÃÜÂë)¡£
\item  °²È«µÄ tftp: tftp ËÅ·þÆ÷»áÊ¹ÓÃchroot.2 ÏµÍ³ºô½ÐÀ´¸Ä±äËü×Ô¼ºµÄ¸ùÄ¿Â¼¡£ÈÎºÎÔÚÐÂÄ¿Â¼ÒÔ
ÍâµÄÊÂ¼þ¶¼ÍêÈ«ÎÞ·¨´æÈ¡¡£ÒòÎª chroot Ä¿Â¼±ä³ÉÐÂµÄ¸ùÄ¿Â¼£¬ Ó²µúÔÚ bootptab ÕûµµÊ±±ØÐë·´Ó¦
Õâ¸öÐÂµÄ´¦¾³¡£ÀýÈç£ºµ±ÎÒÃÇÊ¹ÓÃ²»°²È«µÄ tftp Ê±£¬ hd À¸°üº¬ÁËÆô¶¯Ä¿Â¼µÄÍêÕûÂ·¾¶£¬
£º {\ttfamily /export/root/machine1}¡£
µ±Ê¹ÓÃ°²È«µÄ tftp Ê±£¬ /export ±»µ±³É¸ùÄ¿Â¼£¬¶ø /export ±ä³É / £¬ÇÒ hd À¸¾Í±ä³É {\ttfamily /root/machine1}ÁË¡£
\end{itemize}

¼¸ºõÃ¿Ò»¸ö Unix Êµ×÷¶¼°üº¬ tfpt ËÅ·þÆ÷£¬Ò²ÐíÄã²¢²»ÐèÒª×Ô¼º°²×°Ò»¸ö¡£




\subsection{ÔÚÔ¶¶ËËÅ·þÆ÷ÉÏÉè¶¨Ò»¸öÐ¡ÐÍµÄ Linux ½¨¹¹ }

Õâ°üº¬ Slackware¹©Ó¦°æÄÚµÄ a, ap, n, ¼° x ²¿·Ý¡£Òª°²×°¸ü¶àµÄÌ×¼þÒ²¿ÉÒÔ£»µ«
ÊÇÉÏÃæµÄÌ×¼þÒÑ×ã¹»Ò»¸öÎÞ´Åµú X ÖÕ¶Ë»úµÄÐèÇóÁË¡£Ê×ÏÈÄãÐèÒªÒ»¸öÒÑÔÚÔË×ªµÄ
Linux ÏµÍ³¡£ÔÚÔ¶¶Ë»úÆ÷¡õÕÒÒ»¸ö´Åµú¿Õ¼ä²¢ export Ëü³ÉÎª¿É¶ÁÐ´²¢¹ÒÉÏËüµ½
Linux »úÆ÷µÄµµ°¸ÏµÍ³ÉÏµÄÄ³Ò»´¦ (ÀýÈç /mnt)¡£¿ªÊ¼ Linux Éè¶¨²¢¸Ä±äroot Ñ¡Ïî´Ó /
±äÎª /mnt¡£È»ááÉèÁ¢ÈçÉÏÃæËùËµµÄÌ×¼þ£¬Èç¹ûÄãÖ»ÊÇÒªÖ´ÐÐÒ»¸öÎÞ´ÅµúµÄ Linux ÄÇ
÷á¾Í²»ÐèÒª×öÆäËû¸Ä±ä¡£ÁíÒ»·½Ãæ£¬Èç¹ûÄã¼Æ»­Ê¹ÓÃ³¬¹ýÒ»¸öÒÔÉÏµÄÎÞ´Åµú»úÆ÷£¬
ÄÇ÷áÉÏÃæµÄÉè¶¨¾ÍÐèÒªÐ©ÐíµÄÐÞ¸Ä£¬ÒòÎªÓÐÐ©µµ°¸ÒÔ¼°Ä¿Â¼±ØÐëÖ»ÓÐ»úÆ÷±¾ÉíÊ¹ÓÃ¡£
ÎÒÃÇ¿ÉÒÔÒÔÒÆ¿ª /usr Ä¿Â¼(Ëü°üº¬·ÇË½ÈËµÄ×ÊÁÏ)µÄ·½Ê½Ìø¹ýÕâ¸öÎÊÌâ£¬
È»áá½¨Á¢Ò»¸ö·Ö¿ªµÄ×ÓÄ¿Â¼¸øÃ¿Ò»¸öÎÞ´Åµú»úÆ÷¡£ÀýÈç£¬Èç¹û /export/linux/machine1 ±»¹ÒÔÚ
/mnt ÉÏ£¬ÄÇ÷áÔÚ³õÊ¼Éè¶¨ááÄ¿Â¼½á¹¹»áÏñÕâÑù
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
/export/linux/machine1/bin
/export/linux/machine1/sbin
/export/linux/machine1/lib
/export/linux/machine1/etc
/export/linux/machine1/var
/export/linux/machine1/usr
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


¸Ä±äááÄã»áÓÐ
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
/export/linux/machine1/bin
/export/linux/machine1/sbin
/export/linux/machine1/lib
/export/linux/machine1/etc
/export/linux/machine1/var
/export/linux/usr
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


ÏÖÔÚÎªÆäËûµÄ»úÆ÷½¨Á¢Ä¿Â¼¡£´ÓÏÖÔÚ¿ªÊ¼ÎÒÃÇ¼ÙÉèÄãµÄÎÞ´Åµú»úÆ÷·Ö±ð½Ð×ö machine1¡¢machine2¡¢ machine3µÈµÈ£»
Ê¹ÓÃÒÔÏÂµÄ bash ÃüÁîÊÖ¸åÀ´ÉèÁ¢ÆäËûµÄÄ¿Â¼
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
 
        cd /export/linux
        for x in machine2 machine3 ; do
                mkdir $x; cd $x
                (cd ../machine1; tar cf - *) | tar xvf -
        done
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}
       

È»áá×öÏÂÁÐµÄ export:
\begin{itemize}
\item /export/linux/usr                 Î¨¶Á£¨¶ÔÃ¿¸öÊ¹ÓÃÕß£©
\item /export/liunx/machine1            Ö»ÓÐ¶Ô machine1 ÓÐ rw,root È¨Àû¡£
\item /export/liunx/machine2            Ö»ÓÐ¶Ô machine2 ÓÐ rw,root È¨Àû¡£
\item /export/liunx/machine3            Ö»ÓÐ¶Ô machine3 ÓÐ rw,root È¨Àû¡£
\end{itemize}

ÈçÏÂ\footnote{ÏÂÃæ¡õÁÐÊÇÒÀÕÕ  SunOs 4.1.3 µÄ exports µµ°¸µÄÓï·¨À´×ö}:
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
 
# This file is /etc/export
# for remote linux X terminals by Buci
# this line is only once
/export/root/usr             -access=linuxnet
# these lines once for every host
/export/root/machine1       rw=machine1,root=machine1
/export/root/machine2       rw=machine2,root=machine2
/export/root/machine3       rw=machine3,root=machine3
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}
       
Çë²»ÒªÍüÁËÖ´ÐÐ exportfs -a




\subsection{½¨¹¹ tftp ËÅ·þÆ÷}



ÏÖÔÚ¸ÃÊÇ½¨¹¹ tftp ËÅ·þÆ÷µÄÊ±ºòÁË¡£Èç¹ûÄã²»ÐèÒªÒ»¸ö°²È«µÄ tftp ÄÇºÜ¼òµ¥£¬
ÒòÎªÄãµÄ¿Í»§¶ËÒÑ¾­¿ÉÒÔ´Ó /export Ä¿Â¼À´Æô¶¯¡£

Èç¹ûÒ»¸ö°²È«µÄ tftp ±»²ÉÓÃ£¬ÄÇ÷áÄã¿ÉÒÔÔÚ /tftpboot Ä¿Â¼ÏÂ×ö¸öÍêÕûµÄ
/export/linux Ä¿Â¼½á¹¹¡£ (ÓÃÒ»¸öÊµÌåºËÐÄ³ÌÊ½¼°Á¬½á¸øÆäËû»úÆ÷µÄ·ûºÅÁ¬½á)£¬
»òÊÇÈÃ /export Ä¿Â¼³ÉÎª°²È«µÄ tftpd µÄ¸ùÄ¿Â¼¡£»òÕßÈç¹ûÄãÓÐÒ»ÁíÍâµÄ
tftpboot Ä¿Â¼£¬ÄÇ÷á£¬Í¬ÑùµØ£¬ÄãÖ»ÐèÒªÔ­À´µÄÄ¿Â¼½á¹¹£¬È»ááÓÃÒ»¸öÊµÌåºËÐÄ³ÌÊ½À´
·ûºÅÁ¬½áÆäËû»úÆ÷) ¡£ Äã¿ÉÒÔÖ´ÐÐÏÂÁÐÃüÁîÀ´Íê³ÉÕâ¸öÉè¶¨£º
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
      mkdir -p /tftpboot/export/linux/machine1
      cd /tftpboot/export/linux/machine1
      cp /export/linux/machine1/<name of the kernel> . 
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


È»ááÖ´ÐÐÏÂÃæ£º

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
      mkdir -p /tftpboot/export/linux/machine2
      cd ../machine2 
      ln -s ../machine2/<name of the kernel> 
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}





\subsection{×îáá¹¤×÷}



×îáá£¬Äã±ØÐë²åÈë
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
   /sbin/mount nfs_server:/export/linux/usr /usr
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


µ½

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
   /export/linux/<machinex>/etc/rc.d/rc.S
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


µÄµÚÒ»ÐÐ¡£ÔÚÕâ¡õ $<$machinex$>$ Ö¸µÄÊÇ machine1, machine2µÈµÈ¡£




\section{¼ÇÒäÌåÒÔ¼°´Åµú¿Õ¼äÒªÇó; ËÙ¶È}

ÎÒÖ»ÔÚ Slackware 2.3ÉÏ²âÊÔ¹ý;¶Ôì¶ÆäËûµÄ¹©Ó¦ÉÌ(Linux)Ì×¼þ»ò°æ±¾£¬ÏÂÃæµÄÊý×Ö¿ÉÄÜ»á²»Í¬¡£
\begin{itemize}
\item ´Åµú¿Õ¼ä: 28MB + 6.5MB/Ã¿Ì¨»úÆ÷
\item  RAM: ÎÒÔÚ 8MB ÉÏÅÜ X £¬Ö»ÐèÒª 4MB swap ¡£ÎÒ²ÂÏë£¬Õâ¸ö¿ÉÒÔ±»½¨Á¢£­ÎªÃ¿Ò»²¿»úÆ÷·Ö±ð×ö£­
ÔÚ /tmp¡õÃæ£¬Çë²»ÒªÍüÁËÖ´ÐÐ mkswap¡£
\item ËÙ¶È: ÎÒÔÚÒ»Ì¨ÓÐ 8 Megs µÄ 486 DX2/66 »úÆ÷ÉÏÅÜ²¢ÎÞÎÊÌâ¡£
\end{itemize}





\section{¿ÉÄÜµÄ´íÎó}

\begin{itemize}
\item ÎÒ·¢ÏÖÒ»¸öÆæ¹ÖµÄ´íÎó£ºÔÚ /dev ×ÓÄ¿Â¼¡õ£¬ SunOS ¸ã´íÁËÉè±¸Ãû³Æ£¬ËùÒÔÎÒ±»ÆÈ
½«Õâ¸ö×ÓÄ¿Â¼¹ÒÉÏÒ»¸öÓÐ´ÅµúµÄ Linux »úÆ÷ÉÏÀ´ÖØÐÂÖ´ÐÐ MAKEDEV ¡£
(Ô­ÒòÊÇÒòÎª linux nfs ºÍ SunOs nfsÊÇ²»Í¬µÄ£º Á½Õß¶¼Ê¹ÓÃ32 Î»ÔªÔÚÖ÷Òª¼°´ÎÒªÉè±¸Ãû³Æ£¬
µ«ÊÇlinux Ê¹ÓÃ 16 Î»Ôª¿í¶ÈÀ¸ÔÚÁ½ÕßÉÏ£¬ SunOs ÔòÊ¹ÓÃ 14 Î»Ôª¿í¶ÈÀ¸¸øÖ÷ÒªÉè±¸£¬
18 Î»Ôª¿í¸ø´ÎÒªÉè±¸ºÅÂë¡£)
\item  µ±ÎÞ´Åµú linux ±»Æô¶¯Ê±£¬Ö»ÓÐÒ»¸öÐÐ¾¶ route »á±»·ÅÔÚ tftp ËÅ·þÆ÷µÄÐÐ¾¶±í¡õ
, ËùÒÔÄãÐèÒªÉè¶¨ÕýÈ·µÄÐÐ¾¶±í¡£ÄãÓÐÁ½ÖÖÑ¡Ôñ£º
\begin{itemize}
\item  ÊÖ¶¯½¨¹¹Ã¿Ò»Ì¨»úÆ÷µÄÃ¿Ò»¸ö rc.S ¡£
\item  »òÊ¹ÓÃbootp ¿Í»§¶ËÌ×¼þ²¢Ð´Ò»¸öÍ¨ÓÃµÄÉè¶¨ÃüÁîÊÖ¸å
\end{itemize}
\end{itemize}





\section{±¾ÎÄ¼þÖÐµÄ´íÎóÒÔ¼°¸üÏêÏ¸µÄ½âËµ}

\begin{itemize}
\item ÕýÈ·ÒýÓÃÏà¹ØµÄÎÄ¼þ¡£
\item SunOs ÊÇÒÔ BSD Îª»ù´¡£¬ËùÒÔÐèÒª°üº¬ SVR4 (Èç Solaris) Îª»ù´¡µÄËÅ·þÆ÷½¨¹¹¡£
\item ËäÈ» Linux ºÍ SunOs ¶¼¿ÉÒÔ×öÎª bootp/tftp ËÅ·þÆ÷£¬µ«ÊÇ Linux »á±È½ÏÓÐÓÃÐ©¡£
\item  ¸üÐÂÕâ·ÝÎÄ¼þµ½×îÐÂµÄ etherboot Ì×¼þ¡£
\item  Ö¸³öºËÐÄ³ÌÊ½°æ±¾1.2.13 ÔÚnfs root ÐÞ²¹ááÓëÐÂµÄ 1.3.x °æ(´Ë°æÒÑ°üº¬ÁË nfs-root µÄÐÞ²¹)µÄ²»Í¬´¦¡£
\item  ÐèÒªÊÔÊÔ wd8013 ÒÔÍâµÄÆäËûÒÒÌ«ÍøÂ·¿¨
\item  °üº¬ bootpcµÄ½¨¹¹×ÊÑ¶£¬Ò»¸öbootp ¿Í»§¶ËÀ´Éè¶¨ÕýÈ·µÄ rooting ±í¡£
\item ±àÅÅÉÏ»òÆäËûµÄ´íÎó£ºÂé·³Äú¸æËßÎÒÒ»Éù£¬Ð»Ð»¡£ {\ttfamily buci@math.klte.hu}
\end{itemize}




ÒëÕß°´: ÈôÄú·¢ÏÖ±¾ÎÄ¼þÄÚÈÝÓÐ·­Òë²»Ë³³©»ò´íÎóµÄµØ·½£¬ÇëÄúÀ´ÐÅ¸æËßÎÒ£¬ÒÔ×ö¸üÕý£¬Ð»Ð»¡£
{\ttfamily \onlynameurl{linuxer.bbs@cis.nctu.edu.tw}}¡£

\end{document}
