Configuration of ubuntu8.10 TFTP service in "Hua Qing vision learning manual"

Source: Internet
Author: User


Ubuntu
8.10 configure TFTP
Server

 

1.



Install TFTP
Related Software Packages: tftpd
(Server), TFTP
(Client), xinetd

Specifically, xinetd (

Extended Internet services daemon)
A new generation of network daemon service programs,

Xinetd
Record all services and save the logs to the file/var/adm/xinetd. log.
And use the configuration file/etc/xinetd. conf.
.

Sudo apt-Get
Install tftpd TFTP xinetd

 

2.
Create a configuration file

In/etc/xinetd. d/
Press xinetd
Create a configuration file in the required format TFTP
.

 

Sudo Vim TFTP
Enter the following content in the file:

Service tftp {

Socket_type
= Dgram

Protocol
= UDP

Wait
= Yes

User
= Root

Server
=/Usr/sbin/in. tftpd

Server_args
=-S/tftpboot

Disable
= No

Per_source
= 11

CPS =
100 2

Flags
= IPv4

}

Save and exit,
The above configuration file/etc/xinetd. d/TFTP
 

Will be
/Etc/xinetd. conf
Included.

 

3.
Create a TFTP
Service file directory (where files are uploaded and downloaded), and change its permissions

Sudo mkdir
/Tftpboot

Sudo chmod 777.
/Tftpboot-R (
Recursively change its subdirectory)

 

4.
Restart the service

Sudo
/Etc/init. d/xinetd restart

So far, TFTP
The service has been installed. You can test it below. (Assume that a test.txt file is in the current directory.
File)

$ TFTP 127.0.0.1

TFTP> put
Test.txt

Sent 1018 bytes
In 0.0 seconds

TFTP> get
Test.txt

Received 1018
Bytes in 0.1 seconds

TFTP> quit $

 

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.