HP BL10e Setting up a Linux PXE server and integrating clients - Page 14

Appendix b: sample scripts and files, For the PXE server, NFS configuration file, syslinux.cfg files

Page 14 highlights

Appendix b: sample scripts and files For the PXE server This section includes sample configuration files as a reference for the PXE server examples provided throughout the HOWTO. NFS configuration file A typical NFS configuration file, /etc/exports, is similar to the following. /var/ftp/pub *(ro,insecure,sync,all_squash) To start the NFS server at the next boot, type the following lines at the command prompt: chkconfig --level 345 nfs on chkconfig --level 345 nfslock on chkconfig --level 345 portmap on To start the services now instead of rebooting, type the following lines at the command prompt: service nfs start service nfslock start service portmap start syslinux.cfg files Four sample syslinux.cfg files are provided in this section. Sample 1 This script, filename "rhl80-interactive-install-syslinux.cfg," performs an interactive installation, requiring user interaction. # Install Red Hat 8.0 default linux prompt 1 timeout 600 display rhl80-boot.msg F1 rhl80-boot.msg F2 rhl80-options.msg F3 rhl80-general.msg F4 rhl80-param.msg F5 rhl80-rescue.msg F7 rhl80-snake.msg label linux kernel rhl80-vmlinuz append initrd=rhl80-initrd.img lang= devfs=nomount ramdisk_size=9216 ... 14

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

Appendix b: sample scripts and files
For the PXE server
This section includes sample configuration files as a reference for the PXE server examples provided
throughout the HOWTO.
NFS configuration file
A typical NFS configuration file, /etc/exports, is similar to the following.
/var/ftp/pub
*(ro,insecure,sync,all_squash)
To start the NFS server at the next boot, type the following lines at the command prompt:
chkconfig --level 345 nfs on
chkconfig --level 345 nfslock on
chkconfig --level 345 portmap on
To start the services now instead of rebooting, type the following lines at the command prompt:
service nfs start
service nfslock start
service portmap start
syslinux.cfg files
Four sample syslinux.cfg files are provided in this section.
Sample 1
This script, filename "rhl80-interactive-install-syslinux.cfg," performs an interactive installation,
requiring user interaction.
# Install Red Hat 8.0
default linux
prompt 1
timeout 600
display rhl80-boot.msg
F1 rhl80-boot.msg
F2 rhl80-options.msg
F3 rhl80-general.msg
F4 rhl80-param.msg
F5 rhl80-rescue.msg
F7 rhl80-snake.msg
label linux
kernel rhl80-vmlinuz
append initrd=rhl80-initrd.img lang= devfs=nomount ramdisk_size=9216
...
14