SUSE Linux Configuration TFTP service __linux

Source: Internet
Author: User

TFTP is the simplest network protocol used to download remote files, which is based on the UDP protocol. The TFTP development environment of embedded Linux includes two aspects: one is the Tftp-server support of embedded Linux host and the other is tftp-client support of embedded Linux target machine. Because the u-boot itself has built-in support for tftp-client, the embedded target machine is not configured. The following is a detailed description of the Linux host Tftp-server installation configuration.

In the ISO image of the SUSE Linux CD, there is a tftp-server RPM installation package.
(1) Installation
SuSE Linux uses its own yast for package installation, the specific installation method is not introduced.

(2) Modify the file
Under Linux, the TFTP service is disabled by default, regardless of which super-server,inetd or xinetd is used, so modify the file to open the service. Depending on the installation method (1), you can modify the file/etc/xinetd.d/tftp. The main is to set the root directory of the TFTP server, open the service. The revised document reads as follows:

Service TFTP
{
Socket_type = Dgram
protocol = UDP
Wait = yes
user = root
Server =/USR/SBIN/IN.TFTPD
Server_args =-s/home/burn/tftpboot
}

Description: Modify the item server_args=-S <path>-C, where <path> can be changed to your tftp-server root directory, parameter-s specifies chroot.

(3) Create the TFTP root directory and start Tftp-server.
#mkdir/tftpboot
#chmod O+w/tftpboot
#rcxinetd restart
In this way, the Tftp-server is started.

(4) Configure the firewall

The same applies to the YaST tool for firewall settings.

(5) Test command
#tftp your-ip-address
Tftp>get <download file>
Tftp>put <upload file>
Tftp>q
#

Related Article

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.