1. in Ubuntu10.04, the TFTP software tftp-hpa is the client, and tftpd-hpa is the server sudoaptitudeinstalltftp-hpatftpd-hpa2. configure the TFTP server sudogedit/etc/default/tftpd-hpa to change the original content to: #/etc/default/tftpd-hpaTFTP_USERNAME = "tftp"
1. Install TFTP under Ubuntu10.04
Tftp-hpa is the client and tftpd-hpa is the server
Sudo aptitude install tftp-hpa tftpd-hpa
2. Configure the TFTP Server
Sudo gedit/etc/default/tftpd-hpa
Change the original content:
#/Etc/default/tftpd-hpa
TFTP_USERNAME = "tftp"
# TFTP_DIRECTORY = "/var/lib/tftpboot"
TFTP_ADDRESS = "0.0.0.0: 69"
# TFTP_OPTIONS = "-- secure"
# For the Server Directory, set the permission to 777 and chomd 777
# Change this directory to your own TFTP root directory ~~~
TFTP_DIRECTORY = "/home/stone/tmp"
TFTP_OPTIONS = "-l-c-s"
3. Restart the TFTP service.
Sudo service tftpd-hpa restart
4. Test
Cd ~ /Tftpboot echo "hello tftp service"> a.txt
Echo "hello tftp service, put to tftp serive"> B .txt
Tftp localhost
Get a.txt
Put B .txt
Get is to get the file, put is to upload the file to the TFTP server.