Article Title: tftp server configuration. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
How to Set tftp in ubuntu 9.04:
1: sudo apt-get install tftp tftpd openbsd-inetd
Sudo apt-get install xinetd
Sudo apt-get install netkit-inetd
Sudo apt-get install tftp-hpa tftpd-hpa
2: Create a folder named tftpboot in the root directory.
Cd/
Sudo mkdir tftpboot creates a folder
Sudo chmod 777 tftpboot change folder Permissions
3: Modify sudo gedit/etc/inetd. conf as follows:
Tftp dgram udp wait nobody/usr/sbin/tcpd
/Usr/sbin/in. tftpd/tftpboot
4: Modify sudo gedit/etc/xinetd. d/tftp to the following format (if there is no tftp file, create it)
Service tftp
{
Disable = no
Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-s/tftpboot-c
Source = 11
CPIs = 100 2
}
5: Modify sudo gedit/etc/default/tftpd-hpa to the following format (if there is no tftpd-hpa file, create it)
RUN_DAEMON = "no"
OPTIONS = "-s/tftpboot-c-p-U tftpd"
6: sudo/etc/init. d/openbsd-inetd reload
Sudo in. tftpd-l/tftpboot
7. Create a test file aaa in the tftpboot folder.
Cd/tftpboot
Sudo touch aaa
Sudo chmod 777 aaa
9: start testing the tftp service
Cd/home
Tftp 192.168.1.111
Get/tftpboot/aaa
If no error code is displayed and the aaa file is displayed in the home directory, tftp
Service created
Note: 1: If a permission denied error occurs, the operator has insufficient permissions,
Privilege Escalation required
Su root
After the password is entered, tftp transmission can be performed normally.
2: If an Access violation error occurs, the file permission is not unlocked,
You can unlock all the file operation permissions you want to perform.
Chmod 777 file name