本站首页   业内资讯   前沿下载  网络导航   本站论坛  
系统之家
设为首页
加入收藏
关于我们
IT业界  软件应用  电脑硬件  数码资讯  苹果MAC  Unix/Linux  系统优化  Web技术  认证考试  安全相关  游戏业界  Win2008  
首页 > Unix/Linux
 

 

Ubuntu 8.04下搭建tftp开发davinci平台
作者: 发布时间:2008-05-30 08:58:12 来源:
 

1、首先安装tftp和tftpd,前者是客户端,后者是服务器。因为tftp是要inetd来控制的,而ubuntu类的系统,默认是没有安装inetd的,安装一下。(我第一次失败了就是因为没有安装正确的inetd)

#apt-get install tftp tftpd

#apt-get install netkit-inetd

2、在/目录下建一个tftpboot, 把属性改成777。

#cd /

#mkdir tftpboot

#chmod 777 tftpboot

3、修改/etc/inetd.conf

#emacs /etc/inetd.conf

tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot

#:INTERNAL: Internal services

#echo stream tcp nowait root internal

#echo dgram udp wait root internal

#chargen stream tcp nowait root internal

#chargen dgram udp wait root internal

#discard stream tcp nowait root internal

#discard dgram udp wait root internal

#daytime stream tcp nowait root internal

#daytime dgram udp wait root internal

#time stream tcp nowait root internal

#time dgram udp wait root internal

#tftp dgram udp wait nobody /usr/sbin/tcpd/usr/sbin/in.tftpd/tftpboot

4、重新加载inetd进程

#/etc/init.d/inetd reload

5、测试tftpd服务是否成功

tftp localhost

tftp> put mydoc.tar.gz

tftp> put test.log

tftp> get test.log

tftp> get mydoc.tar.gz

tftp>

上述表明在主机上测试tftp成功,在DM6446板子上,以root登录,使用busybox附带的tftp客户端上传/下载文件:

root@DVS6446:/tftp -r thttpd.conf -g 192.168.1.110

竟然出错,老是time out!查找原因,最后还是归结到防火墙了。防火墙本是个好东西,但好东西在特定的环境下往往成为坏东西,关闭防火墙之后就顺利实现tftp上传/下载文件了。


 
   
※ 相关信息
 ·重新安装Windows后Ubuntu 8.04启  (2008-05-28)
 ·Ubuntu 8.04与Windows XP SP3性能  (2008-05-27)
 ·Fedora 10将比Ubuntu 8.10版本早  (2008-05-22)
 ·Ubuntu 8.04下安装配置Tomcat5.5  (2008-05-21)
 ·Xubuntu 8.04硬盘安装全解 支持从  (2008-04-29)
 ·Ubuntu 8.04下编译安装Ruby-1.8.  (2008-04-28)
 ·Ubuntu 8.04成功推出ghost版操作  (2008-04-05)
 ·业界动态:Ubuntu 8.04(Beta)正  (2008-03-25)
 ·Ubuntu 8.04 操作系统新功能完全  (2008-02-14)

   
   
 
 站内搜索
 
 网站最新
 
 人气排行 
 
 阿里妈妈

网站留言关于我们广告业务注册登录合作伙伴网站地图
Xtzj.Com 版权所有 辽ICP备05013013号
Copyright © 2008 All rights reserved