[转]Ubuntu中配置tftp,烧写内核用
时间:2011-02-22 来源:网络小虫
1、安装相关软件包
sudo apt-get install tftpd (服务端)
sudo apt-get install tftp (客户端)
sudo apt-get install xinetd
2、建立配置文件
cd /etc/xinetd.d/
sudo vim tftp
输入
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
存盘退出
3、建立tftp服务文件目录
sudo mkdir /tftpboot
sudo chmod 777 /tftpboot -R
注:一般将上面的user = root改为普通用户,便于可读可写,如我电脑的用户为mxzh,改为
user = mxzh
4、从新启动服务
sudo /etc/init.d/xinetd restart
安装完成!
测试:
/nfsroot/rootfs/button$ tftp 192.168.2.75
tftp> put hello.c
Sent 1018 bytes in 0.0 seconds
tftp> get hello.c
Received 1018 bytes in 0.1 seconds
tftp> put book.c
Sent 1980 bytes in 0.0 seconds
tftp> get book.c
Received 1980 bytes in 0.0 seconds
退出
tftp> q
注: nfsroot/rootfs/button预先有hello.c book.c
- 系统休眠文件删除后果 如何删除计算机的休眠文件 2025-04-22
- 站群服务器是什么意思 站群服务器的作用 站群服务器和普通服务器的区别 2025-04-22
- jQuery插件有何作用 jQuery插件的使用方法 2025-04-22
- jQuery插件有哪些种类 简单的jQuery插件实例 2025-04-22
-