Ubuntu中配置tftp,烧写内核用
来源:互联网 发布:垃圾清理软件 编辑:程序博客网 时间:2024/06/06 12:21
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
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
本文转自:http://blog.chinaunix.net/uid-20688955-id-1569377.html
- Ubuntu中配置tftp,烧写内核用
- tftp 烧写内核
- ubuntu中配置tftp
- ubuntu中配置tftp服务
- 【教程】ubuntu中配置tftp
- ubuntu中配置tftp服务
- [转载]ubuntu中配置tftp服务
- ubuntu tftp 配置
- ubuntu tftp服务器配置
- ubuntu配置TFTP
- ubuntu tftp服务配置
- ubuntu tftp服务配置
- Ubuntu 配置tftp服务
- ubuntu顺利配置tftp
- Ubuntu下配置tftp
- Ubuntu 配置 tftp
- ubuntu配置TFTP服务器
- ubuntu tftp服务器配置
- C专家编程读书笔记
- ruby网上学习资料汇总
- 数据存储过程
- 实现双线性插值图形图像平面几何变换
- stat,lstat,fstat 函数说明
- Ubuntu中配置tftp,烧写内核用
- Allegro制作元件原理图封装
- 利用Ant与Proguard混淆
- Server.Transfer和Response.Redirect的区别
- Oracle 错误总结及问题解决 ORA
- POJ 2418 Hardwood Species 二叉搜索树
- 递归的遍历TreeView中的所有结点 方法2
- UVA 10450 World Cup Noise
- QT自带QTcpServer架构分析