Linux diskless workstation MiniHowto

Source: Internet
Author: User
Article title: Linux diskless workstation MiniHowto. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Author: Robert Nemkin buci@math.klte.hu
Xie kunzhong HSIEH Kun-Chung, (linuxer.bbs@cis.nctu.edu.tw)
  
V0.0.3, December 3, September 12, 1996
  
  
--------------------------------------------------------------------------------
This document describes how to set up a non-disk Linux machine. Copyright belongs to Robert Nemkin. The copyright terms are in accordance with GPL. I would like to thank Bela Kis for translating this document into English.
--------------------------------------------------------------------------------
  
--------------------------------------------------------------------------------
  
1. modify
  
V0.0.3 version September 12, 1996: a small part of modifications
  
  
--------------------------------------------------------------------------------
  
--------------------------------------------------------------------------------
  
2. how to set up a non-disk Linux machine
This document describes how to set up a non-disk Linux machine. Sometimes we may need to execute Linux on a PC with no hard drive or drive. If there is a network, other Unix systems have bootp, tftp, and NFS servers, and we have an eprom burner, then we have a way to create a Linux system without any drive.
  
  
  
--------------------------------------------------------------------------------
  
--------------------------------------------------------------------------------
  
3. related articles
  
NFS-root Mini Howto
Linux NET-2/3-HOWTO written by Terry Dawson, 94004531@postoffice.csu.edu.au
/Usr/src/linux/README □build and compile new core
  
  
--------------------------------------------------------------------------------
  
--------------------------------------------------------------------------------
  
4. hardware
All mentioned in this article are constructed in the following aspects:
  
Sun-OS 4.1.3 as the startup server
Slackware 2.3 + Linux 1.2.8 + wd 8013 network card
Ethernet in use
  
  
--------------------------------------------------------------------------------
  
--------------------------------------------------------------------------------
  
5. Basic concepts
The basic concept is as follows: a PC obtains its IP address from the startup server through the bootp protocol. 0.0.0.0 is used as the initial IP address, and its core program uses the tftp protocol.
  
Starting the skip section (via the router) is not a simple problem. Therefore, servers and non-magnetic drive machines are not placed in the same network segment, you can only construct a UDP secondary address on the address of your router to the server. For details, refer to your router producer manual.
Here are our steps
  
  
5.1 set personal computer
Obtain the nfsboot kit (available from the/pub/linux/system/Linux-boot directory of your preferred Linux mirror site ). It contains a booteprom image file that can be directly burned for the wd8013 card.
  
There are other ways to prepare personal computers:
  
If your machine does not have a disk, you can use a small DOS program or
Binary software images containing the same suite.
If you select the two, you must use the dd command to write this image file into a soft disc □.
This image file contains bootp and tftp client programs. You also need to prepare a linux core code that contains the nfs-root option.
  
If you use the latest stable core programs such as linux-1.2.13, then you need to use the patch core program included in the nfsbootk suite.
Reference patch (1)
If you want to use the latest but not very stable linux-1.3.x series core, then you need to build the nfs-root option.
If you want to build support for block devices (ephemeral drives or hard drives), you must build support for TCP/IP, wd Ethernet card, and nfs file system. Then re-compile the core program.
  
  
5.2 set bootpd on the server
It can be found in the bootpd-2.4.tar.gz suite (from the/pub/linux/system/Network/boot.net directory of your preferred Linux mirror site ). Get this suite, compile and install it. If your other Unix machines use Slackware Linux, the standard supply version has bootpd, so you can skip this part. Daemon can directly issue commands to execute
  
  
--------------------------------------------------------------------------------
  
Bootpd-s
  
  
--------------------------------------------------------------------------------
  
Or use inetd, but you need to modify:
/Etc/inetd. conf remove # from these columns
  
--------------------------------------------------------------------------------
  
# Tftp dgram udp wait root/usr/sbin/in. tftpd/export
# Bootps dgram udp wait root/usr/sbin/in. bootpd
  
  
--------------------------------------------------------------------------------
  
Insert or remove the remark symbol in/etc/services:
  
--------------------------------------------------------------------------------
  
Bootps 67/tcp # BOOTP server
Tftp 69/udp # TFTP server
  
  
--------------------------------------------------------------------------------
  
Restart inetd and use
  
--------------------------------------------------------------------------------
  
Kill-HUP.
  
  
--------------------------------------------------------------------------------
  
  
5.3 construct bootpd on the server
First, bootpd has a build file named bootptab, which is usually placed in/etc. You must modify the IP address of your diskless machine, the dns server, and the Ethernet address (es ). □Example:/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 = 109c0863d7a: 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:
  
  
--------------------------------------------------------------------------------
  
Global. prof is a general sample of the host project, where
  
The sm column contains the subnet mask.
The ds column contains the domain name server address
The gw column contains the specified gateway address.
The ht column contains network media hardware types
The bf column contains the startup file name.
Then, each machine should have the following line
  
The first column contains the host name.
The hd column contains the Directory of the startup file.
Samples in all regions should be included in the tc column,
The ha column contains the hardware address of the Ethernet card.
The ip column contains the assigned IP address.
  
  
5.4 understand tftp
TFTP (Trivial File Transfer Protocol) is a File Transfer Protocol, just like ftp, but it is more simplified, so it can be easily encoded in EPROM □. There are two methods to use TFTP:
  
Simple tftp: indicates that the client can access your entire file system. Although simple, it opens a security hole (anyone can get your password through tftp ).
Secure tftp: the tftp server uses the chroot.2 system call to change its own root directory. Any events other than the new directory are completely inaccessible. Because the chroot directory is changed to a new root directory, the hard disk must reflect this new situation when the entire bootptab file. For example, when we use insecure tftp, the hd column contains the full path of the Startup directory:/export/root/machine1. When secure tftp is used,/export is treated as the root directory, and/export is changed to/, and the hd column is changed to/root/machine1.
Almost every Unix instance contains a tfpt server. you may not need to install one on your own.
  
5.5 configure a small Linux build on the remote server
This includes Part a, ap, n, and x in the Slackware supply. You can install more kits, but the above kit is sufficient for a non-disk X terminal. First, you need a running Linux system. Locate on a remote machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.