LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1083|回复: 3

gentoo下如何配置TFTP[求助]

[复制链接]
发表于 2009-4-25 13:39:40 | 显示全部楼层 |阅读模式
4.22的portage
emerge tftp-hpa安装tftpd服务,man in.tftpd后资料显示可以不需要inetd来配合,编辑/etc/conf.d/in.tftpd如下:
INTFTPD_PATH="/tftproot/"
INTFTPD_OPTS="_R 4096:32767 -l -c -s ${INTFTPD_PATH}"
然后./etc/init.d/in.tftpd start失败。

后来安装了xinetd来配合还是不行,之前在UBUNTU上安装TFTP服务需要openbsd_inetd来配合,但gentoo下不能emerge openbsd_inetd,请大家帮忙看看怎么配置tftp服务。
发表于 2009-4-25 17:14:41 | 显示全部楼层
  1. $ cat /etc/conf.d/in.tftpd
  2. # /etc/init.d/in.tftpd
  3. # Path to server files from
  4. # Depending on your application you may have to change this.
  5. # This is commented out to force you to look at the file!
  6. #INTFTPD_PATH="/var/tftp/"
  7. #INTFTPD_PATH="/tftpboot/"
  8. INTFTPD_PATH="/tftproot/"
  9. # For more options, see in.tftpd(8)
  10. # -R 4096:32767 solves problems with ARC firmware, and obsoletes
  11. # the /proc/sys/net/ipv4/ip_local_port_range hack.
  12. # -s causes $INTFTPD_PATH to be the root of the TFTP tree.
  13. # -l is passed by the init script in addition to these options.
  14. INTFTPD_OPTS="-R 4096:32767 -s ${INTFTPD_PATH}"
复制代码
  1. sudo /etc/init.d/in.tftpd start
  2. tftp 127.0.0.1
  3. tftp>get ramdisk
复制代码
测试成功,没有问题啊
回复 支持 反对

使用道具 举报

发表于 2009-4-26 10:25:53 | 显示全部楼层
楼主搞嵌入式?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-26 12:37:19 | 显示全部楼层
谢谢二楼,明天到公司去掉-l 试试看。
是啊,搞嵌入式的。不过我是搞DSP的,感觉ARM前途光明,学习学习。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表