TFTP Server Install and Setup

    1. Install following packages.

    sudo apt-get install xinetd tftpd tftp

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

      1. service tftp
      2. {
      3. protocol = udp
      4. port = 69
      5. socket_type = dgram
      6. wait = yes
      7. user = nobody
      8. server = /usr/sbin/in.tftpd
      9. server_args = /tftpboot
      10. disable = no
      11. }


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

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

    1. 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
    与windos建立共享文件夹,安装samba服务器
    https://www.linuxidc.com/Linux/2018-11/155466.htm