Ubuntu 安装配置 tftpd

  1. 安装tftpd
  2. $ sudo apt-get install xinetd tftpd tftp
  3. 创建 /etc/xinetd.d/tftp文件,填写以下内容
  4. service tftp
    {
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = /tftpboot
    disable         = no
    }
  5. 创建 /tftpboot 目录
  6. $ sudo mkdir /tftpboot
    $ sudo chmod -R 777 /tftpboot
    $ sudo chown -R nobody /tftpboot
    
  7. 重启xinetd服务
  8. $ sudo /etc/init.d/xinetd restart
  9. 在本机测试
  10. $ cp ipcam /tftpboot
    $ tftp 192.168.1.102
    tftp> get ipcam
    Received 228796 bytes in 0.0 seconds
    
  11. 在开发板上测试
  12. 基于busybox的tftp命令与原生命令不同,这里用 -g -r 参数下载
    # tftp -g -r ipcam 192.168.1.102

原创文章,转载请注明: 转载自贝壳博客

本文链接地址: Ubuntu 安装配置 tftpd

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据