Configure tftp in Ubuntu and run the kernel

Source: Internet
Author: User
1. Install the related software package sudoapt-getinstalltftpd (server) sudoapt-getinstalltftp (client) sudoapt-getinstallxinetd2, create the configuration file cd/etc/xinetd. d/sudovimtftp input servicetftp {socket_type = dgramprotocol = udpwait = ye

1. Install related software packages
Sudo apt-get install tftpd (server)
Sudo apt-get install tftp (client)
Sudo apt-get install xinetd

2. Create a configuration file
Cd/etc/xinetd. d/
Sudo vim tftp
Input
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
CPIs = 100 2
Flags = IPv4
}

Save disk and exit

3. Create a tftp service file directory
Sudo mkdir/tftpboot
Sudo chmod 777/tftpboot-R

4. Restart the service
Sudo/etc/init. d/xinetd restart
Installation complete!

Test:
/Nfsroot/rootfs/button $ tftp 192.168.2.75
Tftp> put hello. c
Sent 1018 bytes in 0.0 seconds
Tftp> get hello. c
Received 1018 bytes in 0.1 seconds
Tftp> put book. c
Sent 1980 bytes in 0.0 seconds
Tftp> get book. c
Received 1980 bytes in 0.0 seconds

Note: nfsroot/rootfs/button contains hello. c book. c in advance.

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.