install tftpd in ubuntu

来源:互联网 发布:侠盗飞车mac版下载 编辑:程序博客网 时间:2024/04/30 17:33

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