Ubuntu
8.10 configure TFTP
Server
1.
Install TFTP
Related Software Packages: tftpd
(Server), TFTP
(Client), xinetd
Specifically, xinetd (
Extended Internet services daemon)
A new generation of network daemon service programs,
Xinetd
Record all services and save the logs to the file/var/adm/xinetd. log.
And use the configuration file/etc/xinetd. conf.
.
Sudo apt-Get
Install tftpd TFTP xinetd
2.
Create a configuration file
In/etc/xinetd. d/
Press xinetd
Create a configuration file in the required format TFTP
.
Sudo Vim 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
CPS =
100 2
Flags
= IPv4
}
Save and exit,
The above configuration file/etc/xinetd. d/TFTP
Will be
/Etc/xinetd. conf
Included.
3.
Create a TFTP
Service file directory (where files are uploaded and downloaded), and change its permissions
Sudo mkdir
/Tftpboot
Sudo chmod 777.
/Tftpboot-R (
Recursively change its subdirectory)
4.
Restart the service
Sudo
/Etc/init. d/xinetd restart
So far, TFTP
The service has been installed. You can test it below. (Assume that a test.txt file is in the current directory.
File)
$ 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 $