Setting Up A Tftp Service: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
mNo edit summary
(One intermediate revision by one other user not shown)
Line 4: Line 4:
</pre>
</pre>
===Create /etc/xinetd.d/tftp and fill the file with:===
===Create /etc/xinetd.d/tftp and fill the file with:===
<pre>


cat <<EOF | sudo tee /etc/xinetd.d/tftp
cat <<EOF | sudo tee /etc/xinetd.d/tftp
<pre>
service tftp
service tftp
{
{
Line 18: Line 19:
     disable        = no
     disable        = no
}
}
EOF
 
</pre>
</pre>


Line 35: Line 36:
</pre>
</pre>


[[Category: HowTo]]
[[Category: HowTo]][[Category: Ubuntu]][[Category:Resolving Common Linux Problems]]

Revision as of 15:51, 17 March 2014

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