Tftp server: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „ sudo apt-get install xinetd tftpd tftp Here is where the solution came from: http://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubu…“
 
Thomas (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:


=Install=
sudo apt-get install xinetd tftpd tftp


sudo apt-get install xinetd tftpd tftp
=Create /etc/xinetd.d/tftp and put this entry=
 
Here is where the solution came from: http://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubuntudebian/
 
And here is what's there:
 
    Install following packages.
 
    sudo apt-get install xinetd tftpd tftp
 
    Create /etc/xinetd.d/tftp and put this entry
 
     service tftp
     service tftp
     {
     {
Zeile 25: Zeile 16:
     }
     }


    Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot
=Create a folder /tftpboot=
 
sudo mkdir /tftpboot
    sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
    sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
    sudo chown -R nobody /tftpboot
 
    Restart the xinetd service.
 
    sudo /etc/init.d/xinetd restart
 
    Now our tftp server is up and running.
 
Testing our tftp server
 
    Create a file named test with some content in /tftpboot path of the tftp server
 
    Obtain the ip address of the tftp server using ifconfig command
 
    Now in some other system follow the following steps.
 
    tftp 192.168.1.2
    tftp> get test
    Sent 159 bytes in 0.0 seconds
 
    tftp> quit


    cat test
=Restart the xinetd service.=
sudo /etc/init.d/xinetd restart

Version vom 4. November 2014, 21:37 Uhr

Install

sudo apt-get install xinetd tftpd tftp

Create /etc/xinetd.d/tftp and put this entry

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

Create a folder /tftpboot

sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot

Restart the xinetd service.

sudo /etc/init.d/xinetd restart