TFTP Server Install and Setup
- Install following packages.
sudo apt-get install xinetd tftpd tftp
Create /etc/xinetd.d/tftp and put this entry
service tftp{protocol = udpport = 69socket_type = dgramwait = yesuser = nobodyserver = /usr/sbin/in.tftpdserver_args = /tftpbootdisable = no}
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
- 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
- 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
与windos建立共享文件夹,安装samba服务器
https://www.linuxidc.com/Linux/2018-11/155466.htm
