Ubuntu12.4 tftp settings

Source: Internet
Author: User

In ubuntu12.4, tftp settings are excellent. Due to debugging the 6410 Development Board, you need to build a tftp server under ubuntu12.04. After searching for multiple ubuntu files, you can find more or less problems, the following is my configuration process. It has been verified for reference !!! 1) install tftp-hpa, tftpd-hpa, xinetd ~ $ Sudo apt-get install tftp-hpa, tftpd-hpa, xinetd2) Create and configure the tftp file under/etc/xinetd. d ~ $ Sudo vim/etc/xinetd. d/tftp 1 service tftp 2 {3 socket_type = dgram 4 protocol = udp 5 wait = yes 6 user = root 7 server =/usr/sbin/in. tftpd 8 server_args =-s/tftpboot-c 9 disable = no 10 per_source = 11 11 cps = 100 2 12 flags = IPv4 13}-c is used to enable the upload function. 3) Configure tftpd-hpa ~ $ Sudo vim/etc/default/tftpd-hpa 1 #/etc/default/tftpd-hpa 2 3 TFTP_USERNAME = "tftp" 4 TFTP_DIRECTORY = "/tftpboot" 5 TFTP_ADDRESS = "0.0.0.0: 69 "6 TFTP_OPTIONS ="-l-c-s "where/tftpboot is the tftp shared directory 4) Modify xinetd. conf file ~ $ Sudo vim/etc/xinetd. conf defaults 6 {7 8 # Please note that you need a log_type line to be able to use log_on_success 9 # and log_on_failure. the default is the following: 10 # log_type = SYSLOG daemon info 11 12} 13 14 # includedir/etc/xinetd. d 15 tftp dgram udp wait nobody/usr/sbin/tcpd/usr/sbin/in. tftpd/tftpboot5) restart the tftp service and test the sudo service tftpd-hpa restart sudo/etc/init. d/xinetd reload Sudo/etc/init. d/xinetd restart6) Create the test file love # cd/tftpboot # echo xuguodongaigongxia> love # chmod 777 love in/tftpboot to test the tftp service: re-open a terminal # tftp 127.0.0.1 tftp> get love tftp> q # ls and exit, view the current directory, and find that the love file is already in the current directory. If the preceding settings do not work, disable selinux: sudo gedit/etc/selinux/config //. If the file selinux/config does not exist, create selinux. # This file controls the state of SELinux on the system. # SELINUX = can take one of these three values: # enforcing-SELinux security policy is enforced. # permissive-SELinux prints warnings instead of enforcing. # disabled-SELinux is fully disabled. SELINUX = enforcing # SELINUXTYPE = type of policy in use. possible values are: # targeted-Only targeted network daemons are protected. # strict-Full SELinux protection. SELINUXTYPE = targeted: Change SELINUX = enforcing to SELINUX = disable to disable SeLinux and then reboot to restart the PC.

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.