Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
112
rated 0 times [  112] [ 0]  / answers: 1 / hits: 558948  / 3 Years ago, thu, november 4, 2021, 4:27:14

I have an embedded VxWorks target that needs to boot its kernel from my Ubuntu computer. How do I install and run a TFTP server?


More From » tftp

 Answers
5

TFTP Server Install and Setup




  1. Install following packages.



    sudo apt-get install xinetd tftpd tftp

  2. 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
    }

  3. Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot



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

  4. Restart the xinetd service.



    newer systems:



    sudo service xinetd restart


    older systems:



    sudo /etc/init.d/xinetd restart



Now our tftp server is up and running.



Testing our tftp server




  1. 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


  2. 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



Source:
http://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubuntudebian/


[#34943] Friday, November 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
avilyexplor

Total Points: 20
Total Questions: 102
Total Answers: 120

Location: Maldives
Member since Mon, Jun 21, 2021
3 Years ago
;