Setting Up A Tftp Service

From RidgeRun Developer Connection
Revision as of 09:51, 17 March 2014 by Spalli (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install tftpd and related packages

sudo apt-get install xinetd tftpd tftp

Create /etc/xinetd.d/tftp and fill the file with:

cat <<EOF | sudo tee /etc/xinetd.d/tftp

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

Make /srv/tftp directory

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

Start tftpd through xinetd

sudo /etc/init.d/xinetd restart