Tftp Server Configuration

Source: Internet
Author: User
Article Title: tftp server configuration. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

How to Set tftp in ubuntu 9.04:

1: sudo apt-get install tftp tftpd openbsd-inetd

Sudo apt-get install xinetd

Sudo apt-get install netkit-inetd

Sudo apt-get install tftp-hpa tftpd-hpa

2: Create a folder named tftpboot in the root directory.

Cd/

Sudo mkdir tftpboot creates a folder

Sudo chmod 777 tftpboot change folder Permissions

3: Modify sudo gedit/etc/inetd. conf as follows:

Tftp dgram udp wait nobody/usr/sbin/tcpd

/Usr/sbin/in. tftpd/tftpboot

4: Modify sudo gedit/etc/xinetd. d/tftp to the following format (if there is no tftp file, create it)

Service tftp

{

Disable = no

Socket_type = dgram

Protocol = udp

Wait = yes

User = root

Server =/usr/sbin/in. tftpd

Server_args =-s/tftpboot-c

Source = 11

CPIs = 100 2

}

5: Modify sudo gedit/etc/default/tftpd-hpa to the following format (if there is no tftpd-hpa file, create it)

RUN_DAEMON = "no"

OPTIONS = "-s/tftpboot-c-p-U tftpd"

6: sudo/etc/init. d/openbsd-inetd reload

Sudo in. tftpd-l/tftpboot

7. Create a test file aaa in the tftpboot folder.

Cd/tftpboot

Sudo touch aaa

Sudo chmod 777 aaa

9: start testing the tftp service

Cd/home

Tftp 192.168.1.111

Get/tftpboot/aaa

If no error code is displayed and the aaa file is displayed in the home directory, tftp

Service created

Note: 1: If a permission denied error occurs, the operator has insufficient permissions,

Privilege Escalation required

Su root

After the password is entered, tftp transmission can be performed normally.

2: If an Access violation error occurs, the file permission is not unlocked,

You can unlock all the file operation permissions you want to perform.

Chmod 777 file name

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.