作者:Robert Nemkin | 譯者:謝昆中 | v0.0.3(1996)
v0.0.3:小幅修正。
核心概念:PC 透過 BOOTP 從啟動伺服器取得 IP,核心映像再透過 TFTP 載入,根檔案系統掛載自 NFS 伺服器。若伺服器與客戶端不在同一網段,需在路由器設定 UDP helper address 指向伺服器。
nfsboot 套件(/pub/Linux/system/Linux-boot),含可燒錄網路卡 EPROM 的 booteprom 映像檔(針對 wd8013 卡)。dd 寫入)。nfs-root 選項的 Linux 核心。nfsbootk 套件修補;1.3.x 系列需自行配置 nfs-root、TCP/IP、網路卡、NFS 支援並重編譯。安裝 bootpd(bootpd-2.4.tar.gz,或 Slackware 內建)。兩種啟動方式:
# 獨立執行 bootpd -s # 或經由 inetd # /etc/inetd.conf 取消註解: tftp dgram udp wait root /usr/sbin/in.tftpd tftpd /export bootps dgram udp wait root /usr/sbin/in.bootpd bootpd # /etc/services 確認: bootps 67/tcp tftp 69/udp # 重啟 inetd kill -HUP
/etc/bootptab範例:
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:
欄位說明:sm 子網遮罩、ds DNS、gw 閘道、ht 硬體類型、bf 啟動檔名、hd 根目錄路徑、tc 參考樣本、ha MAC 位址、ip 指定 IP。
chroot 限制根目錄。此時 bootptab 中 hd 路徑需相對於 chroot 根目錄(如 /export 為根,則 hd=/root/machine1)。大多數 Unix 內建 tftp 伺服器,通常無需額外安裝。
安裝 Slackware a、ap、n、x 系列套件即可滿足無盤 X 終端機需求。步驟:
/mnt)。/ 改為 /mnt。/usr 等共享目錄分離,各機器擁有私有 /etc、/var 等。/usr/src/linux/README(核心編譯)