The Ubuntu system's hair style brings good news to some household users. So here, how do we set Ubuntu tftp? The Ubuntu team makes a public commitment to its users: Ubuntu is always free and there is no additional fee for the "Enterprise Edition". In the same free team, bring the best work results to everyone.
To configure the Ubuntu tftp service, follow these steps:
1. Install related software packages: Ubuntu tftp Server), tftp client), xinetd
Sudo apt-get install tftpd tftp xinetd
2. Create a configuration file
Create a configuration file tftp under/etc/xinetd. d/
Sudo vi tftp
Enter the following content in the file:
Service tftp
{Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-s/tftpboot
Disable = no
Per_source = 11
CPIs = 100 2
Flags = IPv4}
Save and exit
3. Create the Ubuntu tftp service file directory to upload and download files) and change its permissions.
Sudo mkdir/tftpboot
Sudo chmod 777/tftpboot-R
4. Restart the service
Sudo/etc/init. d/xinetd restart
Now that the Ubuntu tftp service has been installed, you can test it. Put a test file test.txt in the current directory)
$ Tftp 127.0.0.1
Tftp> put test.txt
Sent 1018 bytes in 0.0 seconds
Tftp> get test.txt
Received 1018 bytes in 0.1 seconds
Tftp> quit
With the getcommand, you can upload the test.txt file under the current directory to its service file directory through Ubuntu tftp. In this case, the test.txt file is displayed under/tftpboot. Run the put command to download the test.txt file from/tftpboot. This verifies the correctness of the configuration of the Ubuntu tftp service. After the file is uploaded and downloaded, exit with the quit command. You can configure the Ubuntu tftp service strictly according to the preceding steps. If you cannot get or put data, check whether the firewall is disabled.