Мокрозуб В.А.
2016-10-07 09:35:20 UTC
Hello,
I'm trying to configure LTSP to use NFS on Ubuntu 16.04 (it uses NBD by
default).
First, I added to /etc/exports:
##
/opt/ltsp/i386_xenial *(ro,no_root_squash,async,no_subtree_check)
##
Then I created PXE config file
/var/lib/tftpboot/ltsp/i386_xenial/pxelinux.cfg/default:
##
default ltsp-NFS
ontimeout ltsp-NFS
label ltsp-NFS
menu label LTSP, using NFS
kernel vmlinuz
append ro initrd=initrd.img init=/sbin/init-ltsp forcepae root=/dev/nfs
ip=dhcp boot=nfs rootpath=/opt/ltsp/i386_xenial
ipappend 2
##
The client succesfully booted but I couldn't log in. After some search I
discovered that all system files are not writeable by root though they have
644 permissions. However, they can be made writeable with chmod:
##
***@vma-test:~# ls -l /etc/environment
-rw-r--r-- 1 root root 96 ÏËÔ 3 14:07 /etc/environment
***@vma-test:~# echo '#test' >> /etc/environment
-bash: /etc/environment: Permission denied
***@vma-test:~# chmod 644 /etc/environment
***@vma-test:~# ls -l /etc/environment
-rw-r--r-- 1 root root 96 ÏËÔ 3 14:07 /etc/environment
***@vma-test:~# echo '#test' >> /etc/environment
***@vma-test:~# cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/game
s:/usr/local/games"
#test
***@vma-test:~#
##
NBD works ok so I guess there's something wrong with my NFS configarion.
Thanks in advance.
I'm trying to configure LTSP to use NFS on Ubuntu 16.04 (it uses NBD by
default).
First, I added to /etc/exports:
##
/opt/ltsp/i386_xenial *(ro,no_root_squash,async,no_subtree_check)
##
Then I created PXE config file
/var/lib/tftpboot/ltsp/i386_xenial/pxelinux.cfg/default:
##
default ltsp-NFS
ontimeout ltsp-NFS
label ltsp-NFS
menu label LTSP, using NFS
kernel vmlinuz
append ro initrd=initrd.img init=/sbin/init-ltsp forcepae root=/dev/nfs
ip=dhcp boot=nfs rootpath=/opt/ltsp/i386_xenial
ipappend 2
##
The client succesfully booted but I couldn't log in. After some search I
discovered that all system files are not writeable by root though they have
644 permissions. However, they can be made writeable with chmod:
##
***@vma-test:~# ls -l /etc/environment
-rw-r--r-- 1 root root 96 ÏËÔ 3 14:07 /etc/environment
***@vma-test:~# echo '#test' >> /etc/environment
-bash: /etc/environment: Permission denied
***@vma-test:~# chmod 644 /etc/environment
***@vma-test:~# ls -l /etc/environment
-rw-r--r-- 1 root root 96 ÏËÔ 3 14:07 /etc/environment
***@vma-test:~# echo '#test' >> /etc/environment
***@vma-test:~# cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/game
s:/usr/local/games"
#test
***@vma-test:~#
##
NBD works ok so I guess there's something wrong with my NFS configarion.
Thanks in advance.