Build a tftp service in Ubuntu

Source: Internet
Author: User
1. install client tftp, server side tftpd, openbsd-inetd: sudoapt-getinstalltftptftpdopenbsd-inetd2. configuration: sudovim/etc/inetd. conf in inetd. add the following line to the conf file: tftpdgramudpwaitnobody/usr/sbin/tcpd/usr/sbin/in. t

1. Install the client tftp, server tftpd, and openbsd-inetd:

Sudo apt-get install tftp tftpd openbsd-inetd

2. Configuration:

Sudo vim/etc/inetd. conf

Add the following line to the inetd. conf file:

Tftp dgram udp wait nobody/usr/sbin/tcpd/usr/sbin/in. tftpd ~ /Work/tftpboot

3. Restart the configuration file:

Sudo/etc/init. d/openbsd-inetd restart

4. test:

Enter tftp 127.0.0.1 on the terminal

For example, if the tftpbootdirectory contains a file 1.txt, the file will be downloaded to the current directory when you enter get 1.txt. (The o permission of the downloaded file must be added with r; otherwise, other users cannot download the file)

Note: by default, files cannot be uploaded in Ubuntu. To upload a file, create a file with the same name as the file to be uploaded in the tftpboot directory, change the permission to 777, and enter put file.

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.