Ubuntu10.10安装TFTP

Ubuntu10.10安装TFTP

/*ubuntu10.10安装TFTP*/

sudo mkdir /tftpboot
sudo chmod 777 /tftpboot

 

sudo apt-get install tftp     /*安装客户端*/
sudo apt-get install tftpd    /*安装服务器端*/
sudo apt-get install openbsd-inetd

 

sudo vi /etc/inetd.conf
在最后加入一行:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot

 

sudo /etc/init.d/openbsd-inetd reload
sudo /etc/init.d/openbsd-inetd restart

 

以后每次启动系统的时候,要执行一下:
sudo /etc/init.d/openbsd-inetd restart

 

netstat -an |grep udp
可以看到69端口已经启用:
udp        0      0 0.0.0.0:69              0.0.0.0:*

 

测试TFTP:
拷贝一文件(如uImage)到tftpboot下,然后:
tftp localhost
出现:tftp>
再输入:get uImage
提示下载成功后,看当前目录下多了个uImage文件.

 

参考链接:
http://wenku.baidu.com/view/6f24c5e9856a561252d36f06.html

 

/*ubuntu10.10添加与开发板fl2440的网卡连接*/

 

1.图形界面下:System->Administration->Network Tools
Devices下Network device选为Ethernet Interface(eth0),点Configure
Wired下点Add
复制Auto eth0的Device Mac address到这里的Device Mac address
选IPv4 settings,Method改为Manual,点ADD,添加IP(如Address: 192.168.0.22 Netmask: 255.255.255.0 Gateway 192.168.0.33)
点Apply.
然后就可以在图形界面下的桌面点击上下箭头的图标改变当前连接.

 

2.VM中Ubuntu使用桥接, Ubuntu,Windows和开发板三者的IP要在一个网段上

你可能感兴趣的:(linux)