I started to debug the ARM board today. I want to download it to the Board through tftp, so I have to configure the tftp server again. It's really annoying... (I love installing the system, so I often need to configure it) because I have already set up a tftp server in Ubuntu many times, but I can't remember the name of that configuration file (poor memory), so I need Baidu every time. However, each time Baidu came out with different results, there were huge discrepancies, and some processes were quite tedious, not only very troublesome, but were not configured successfully. So simply write a log and write it down.
I started to debug the ARM board today. I want to download it to the Board through tftp, so I have to configure the tftp server again. I am so fond of installing the system, so I often have to configure it)
Because I have already set up a tftp server many times in Ubuntu, but I still cannot remember the name of that configuration file (poor memory), so I need Baidu every time.
However, each time Baidu came out with different results, there were huge discrepancies, and some processes were quite tedious, not only very troublesome, but were not configured successfully. So simply write a log and write it down.
Simple installation and configuration of the tftp Server
1. Install tftp-server
Sudo apt-get install tftpd-hpa
Sudo apt-get install tftp-hpa (if you do not need a client, do not install it)
Tftp-hpa is the client
Tftpd-hpa is the server side
2. Configure the TFTP Server
Sudo vim/etc/default/tftpd-hpa
Change the original content:
TFTP_USERNAME = "tftp"
TFTP_ADDRESS = "0.0.0.0: 69"
TFTP_DIRECTORY = "tftp root directory" # Server Directory. Set the permission to 777 and chomd 777.
TFTP_OPTIONS = "-l-c-s"
3. Restart the TFTP service.
Sudo service tftpd-hpa restart
4. Test
In fact, it's really a very simple process. I don't know why some people wrote it very complicated. It's really speechless!
Related reading:
Tftp service build http://www.linuxidc.com/Linux/2012-08/67933.htm under Ubuntu
Http://www.linuxidc.com/Linux/2012-07/64785.htm for TFTP Server Configuration
Ubuntu Linux configuration TFTP download server http://www.linuxidc.com/Linux/2010-12/30394.htm
Ubuntu 11.10 configure tftp Server http://www.linuxidc.com/Linux/2012-05/60808.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2