先连接nfs
sudo apt-get install nfs-kernel-server rpcbind
sudo gedit /etc/exports
最后一行添加
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/xxp/linux/nfs *(rw,sync,no_root_squash)
重启nfs
sudo /etc/init.d/nfs-kernel-server restart
挂载
mount -t nfs -o nolock,nfsvers=3,vers=3 172.16.10.214:/home/xxp/linux/nfs/mount /mnt
关闭桌面应用
/etc/init.d/psplash.sh