做嵌入式开发需要用到NFS,在Ubuntu 7.10上配置过程如下:
1、安装nfs服务器
apt-get install
nfs-kernel-server
2、修改nsf配置文件
vi
/
etc
/
exports
在文件中添加nfs的目录格式如下
/home/linux/xdvr/bin 192.168.1.124(rw,sync,no_root_squash)
保存退出
exportfs -rv
3、修改该目录(及其子目录)的权限
chmod
777
-R
/
home
/
linux
/
xdvr
/
bin
4、修改/etc/hosts
把目标板的ip和名称加到列表中
hosts hosts
.
allow hosts
.
deny
jason@tvt:
/
home
/
linux
/
xdvr
/
td2408ui
$
cat
/
etc
/
hosts
192.168
.
1.124
NDVR31XX
127.0
.
0.1
localhost
127.0
.
1.1
tvt
#
The following lines are desirable
for
IPv6 capable hosts
::
1 ip6-localhost ip6-loopback
fe00
::
0 ip6-localnet
ff00
::
0 ip6-mcastprefix
ff02
::
1 ip6-allnodes
ff02
::
2 ip6-allrouters
ff02
::
3 ip6-allhosts
5、重启nfs
/
etc
/
init
.
d
/
nfs-kernel-server restart
6、完成
mount -o nolock -t nfs
192.168
.
1.107
:
/
home
/
linux
/
xdvr
/
bin
/
root
最后
以上就是酷炫汽车最近收集整理的关于Ubuntu 7.10下配置NFS的全部内容,更多相关Ubuntu内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复