Setting up tftp server

From Tuxation

Installation

$ sudo apt-get install xinetd
$ sudo apt-get install tftpd
$ sudo apt-get install tftp

Configuration

Create /etc/xinetd.d/tftp and put the following:

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /srv/tftp
disable         = no
}

Create the associated directory:

$ sudo mkdir /srv/tftp
$ sudo chmod -R 777 /srv/tftp
$ sudo chown -R nobody /srv/tftp

Fire it up!

Take note that after installing xinetd, it's may already be started automatically, so after you install tftpd and set it up, you may just have to restart xinetd.

$ sudo /etc/init.d/xinetd restart
Personal tools