1. Download and install tftp server and client
sudo apt-get install xinetd tftpd tftp
2.Create /etc/xinetd.d/tftp config file
$ cat /etc/xinetd.d/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
3.Prepare the tftpboot directory
sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
4. start the service
sudo /etc/init.d/xinetd restart
阅读(948) | 评论(0) | 转发(0) |