针对U-Boot tftp功能 安装并配置Ubuntu 11.04

Linux大全评论946 views阅读模式

[棕红色]代表命令行显示内容

[蓝色]文本文档或者源代码中的内容

[绿色]代表文件名

---步骤1---

安装tftp功能所需软件

启动VMware中的Ubuntu 11.04,打开终端,获取root权限。

运行命令:

apt-get install tftpd
apt-get install netkit-inetd

如果第二条命令执行后显示:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package netkit-inetd is a virtual package provided by:
  inetutils-inetd 2:1.8-3
  openbsd-inetd 0.20080125-6ubuntu1
You should explicitly select one to install.

E: Package 'netkit-inetd' has no installation candidate

可以将第二条命令改为:
apt-get install openbsd-inetd

---第二步---

配置tftp

修改修改 /etc/inetd.conf文件,将下面内容添加到inetd.conf中:
tftp        dgram    udp    wait    nobody    /usr/sbin/tcpd    /usr/sbin/in.tftpd /srv/tftp
上面这些要将/srv/tftp修改为自己的ftp目录。

---第三步---

重新启动tftp服务

执行如下命令即可重启:
/etc/init.d/openbsd-inetd restart

重启后会显示:
 * Restarting internet superserver inetd                                                                               [ OK ]

这样就完成了Ubunu中配置tftpd的方法。

企鹅博客
  • 本文由 发表于 2020年1月25日 04:44:28
  • 转载请务必保留本文链接:https://www.qieseo.com/170973.html

发表评论