The easiest way to build a tftp server in Ubuntu

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.