(Created page with "* Make sure the package for TFTP server is installed. * Prepare the directory and PXE boot loader for TFTP server * Configure tftp service through xinet * Enable auto start t…") |
|||
| Line 1: | Line 1: | ||
* Make sure the package for TFTP server is installed. | * Make sure the package for TFTP server is installed. | ||
| + | |||
* Prepare the directory and PXE boot loader for TFTP server | * Prepare the directory and PXE boot loader for TFTP server | ||
| + | [root@meego-global ~]#mkdir /tftpboot/ | ||
| + | [root@meego-global ~]#mkdir / tftpboot/pxelinux.cfg | ||
| + | [root@meego-global ~]#cp /usr/lib/syslinux/pxelinux.0 /tftpboot | ||
* Configure tftp service through xinet | * Configure tftp service through xinet | ||
| + | Edit /etc/xinetd.d/tftp as below | ||
| + | service tftp | ||
| + | { | ||
| + | disable = no #enable the tftp server | ||
| + | socket_type = dgram | ||
| + | protocol = udp | ||
| + | wait = yes | ||
| + | user = root | ||
| + | server = /usr/sbin/in.tftpd | ||
| + | server_args = -s /tftpboot #set the tftp root dir is /tftpboot | ||
| + | per_source = 11 | ||
| + | cps = 100 2 | ||
| + | flags = IPv4 | ||
| + | } | ||
* Enable auto start the tftp server when next time system reboot | * Enable auto start the tftp server when next time system reboot | ||
| + | [root@meego-global ~]# ntsysv | ||
* Install PXE kernel and initrd | * Install PXE kernel and initrd | ||
[root@meego-global ~]#mkdir /tftpboot/ [root@meego-global ~]#mkdir / tftpboot/pxelinux.cfg [root@meego-global ~]#cp /usr/lib/syslinux/pxelinux.0 /tftpboot
Edit /etc/xinetd.d/tftp as below
service tftp
{
disable = no #enable the tftp server
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot #set the tftp root dir is /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
[root@meego-global ~]# ntsysv