Install using TFTP under Linux system

Source: Internet
Author: User

First, Description:

TFTP is the simplest network protocol for downloading remote files, which is implemented in the UDP protocol. The TFTP development environment of embedded Linux includes two aspects: one is Tftp-server support of Linux server side and the other is tftp-client support of embedded target system. Because the u-boot itself has built-in support for Tftp-client, the embedded target system is not configured.

XINETD (eXtended Internet Services daemon) is a new generation of network daemon services, also known as a Super Internet server, often used to manage a variety of lightweight InterNET services, XINETD provides a inetd+-like Tcp_wrapper features, but more powerful and secure.

Second, install the TFTP server:

Need to install XINETD, TFTP, tftp-server

1. If you can surf the Internet, install via Yum:

Yum-y Install xinetd

Yum-y Install TFTP

Yum-y Install Tptp-server

2. If the Internet is not available, the RPM package provided can be installed directly:

RPM-IVH xinetd-2.3.14-38.el6.src.rpm

RPM-IVH tftp-0.48-3.fc9.src.rpm

RPM-IVH tftp-server-0.48-3.fc9.i386.rpm

Note, installation package can be in my Baidu cloud, download link: Http://pan.baidu.com/s/1c2tOfKW


Third, configure the TFTP server:

(1), modify the/etc/xinetd.d/tftp file

disable=Yes change to disable=no

server_args=-s /var/lib/tftpboot   Change to   server_args=-s /tftpboot/-C

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9A/0D/wKioL1lQui_Cp6keAAA99VZow4Q876.png-wh_500x0-wm_ 3-wmp_4-s_108815983.png "title=" Modify Tftp.png "alt=" Wkiol1lqui_cp6keaaa99vzow4q876.png-wh_50 "/>

(2) Modify the/etc/sysconfig/selinux file

Selinux=disabled (system default is enforcing) to change to disabled

Note, this step requires a restart of the server to take effect

Can be temporarily shut down (no need to restart the machine)

Setenforce 0

(3), new Tftpboot directory, and Add permissions:

mkdir/tftpboot/

chmod 775/tftpboot

Four, start the TFTP server:

Service xinetd Restart

To see if the TFTP service is turned on:

netstat-a | grep tftp

The result is UDP 0 0 *:tftp *:* indicates that the service is enabled and the TFTP configuration is successful

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9A/0D/wKiom1lQvKGD2di2AAAN_eoBf5w486.png "title=" TFTP process. png "alt=" Wkiom1lqvkgd2di2aaan_eobf5w486.png "/>

V. Use of commands:

Copy the Test.tar file to the directory/tftpboot

To download files on the client:

Tftp-gr Test.tar 192.168.2.100

Note Frequently Asked Questions:

1.SELinux needs to be closed

2,/tftpboot directory needs to be new under the root, and give sufficient permissions to facilitate the client to download

This article is from the "Better World" blog, so be sure to keep this source http://superw.blog.51cto.com/7122773/1942066

Install using TFTP under Linux system

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.