Chinaunix首页 | 论坛 | 博客
  • 博客访问: 251558
  • 博文数量: 70
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2014-06-09 13:47
文章存档

2023年(1)

2018年(7)

2017年(4)

2016年(1)

2015年(25)

2014年(32)

我的朋友

分类: 嵌入式

2015-05-24 13:08:28

参考以下文档:
1.Ubuntu下搭建tftp服务器最简单方法

2.Internal Error, Could not perform immediate configuration (2) on mountall:

3.

步骤:
1.下载ubuntu10.4的sources.list,替换原有的sources.list(在/etc/apt下);
2.sudo apt-get update
3.sudo apt-get install tftpd-hpa进行安装,出现了如下问题:E: Internal Error, Could not perform immediate configuration (2) on mountal
4.解决此问题:
【】修改/etc/fstab文件,注释掉:#UUID=1899a77b-136a-4bd5-a663-aed69afc0981 none  swap  sw  0  0(安装完后改回来)
【】执行命令即可成功:
 cd /var/cache/apt/archives
 sudo dpkg --force-all -i mountall_2.15.3_i386.deb
 sudo apt-get -f install
 sudo apt-get install tftpd-hpa
5.sudo vi /etc/default/tftpd-hpa,修改内容为:

TFTP_USERNAME=”tftp”

TFTP_ADDRESS=”0.0.0.0:69″

TFTP_DIRECTORY=”tftp根目录” #服务器目录,需要设置权限为777,chomd 777

TFTP_OPTIONS=”-l -c -s”

6.sudo apt-get install xinetd
7.安装完 xinetd应该会建立目录/etc/xinetd.d,在此目录中添加文件:sudo vi tftpd,内容如下:
service tftp
{
disable = no
socket_type = dgram
wait = no
user = root
protocol = udp
server = /usr/sbin/in.tftpd
server_args = -s ”tftp根目录”                                    
log_on_success = PID HOST DURATION
log_on_failure = HOST
}
8.sudo /etc/init.d/xinetd restart重启xinetd服务
9.sudo service tftpd-hpa restart重启tftp服务
10.测试:
【】su root;
【】在/tftp目录下创建test.txt,并编辑;
【】进入非/tftp目录,这里是cd /home/book
【】tftp localhost
【】get test.txt




      
阅读(868) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~