install tftpd in ubuntu

Installing and setting TFTPD in Ubuntu
 

1. Install tftpd and related packages.
$ sudo apt-get install xinetd tftpd tftp

 

vim /etc/inetd.conf and comment the lines

#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp

 

2. Create /etc/xinetd.d/tftp with contents as following:
service tftp
{
protocol = udp
socket_type = dgram
wait = no
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
disable = no
}

3. Make /tftpboot directory
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot

4. Start tftpd through xinetd
$ sudo /etc/init.d/xinetd restart

你可能感兴趣的:(ubuntu,TFTP)