Discussion:
[Ltsp-discuss] No home directory
Sean Carte
2017-05-16 11:36:36 UTC
Permalink
It's been a while since I last had to install LTSP, and I've never done it
using Ubuntu 16.04 before, but things are going very wrong here and I hope
someone can help.

I've installed Ubuntu 16.04 and LTSP but the clients don't have home
directories. I have a machine assigned to opac30 in dhcp.conf:

host opac30 {
# info desk PC
hardware ethernet 00:0f:fe:33:8d:b9;
fixed-address 10.0.123.130;
filename "/ltsp/i386/pxelinux.0";
option host-name opac30;
}

In lts.conf:

[00:0f:fe:33:8d:b9]
# info desk PC
LDM_USERNAME=opac30

in the chroot I have a home directory:

/opt/ltsp/i386/home/opac30/
total 24
drwxr-xr-x 3 opac30 opac30 4096 May 16 09:22 .
drwxr-xr-x 32 root root 4096 May 16 09:22 ..
-rw-r--r-- 1 opac30 opac30 220 Aug 31 2015 .bash_logout
-rw-r--r-- 1 opac30 opac30 3771 Aug 31 2015 .bashrc
drwxr-xr-x 3 opac30 opac30 4096 May 16 09:21 .config
-rw-r--r-- 1 opac30 opac30 655 Jun 24 2016 .profile

I created the image with ltsp-update-image i386

The client gets to the log-in screen, but the GUI can't get past that. If I
ctrl-alt-f1 I can log in, but there is no home directory. /home/ is empty.

Doesn't `ltsp-update-image i386` build an image using /opt/ltsp/i386/ ?

Sean
--
Мокрозуб В.А.
2017-05-16 12:31:19 UTC
Permalink
Users in the LTSP-environment are authenticated on the server and their home directories are mounted from the server. You don't need to create home directories in the chroot.



ltsp-update-image removes everything from /home directory by default. The list of files removed from the image is stored in the "/etc/ltsp/ltsp-update-image.excludes" file on the server.
Post by Sean Carte
The client gets to the log-in screen, but the GUI can't get past that
Did you create the user on the server? What do syslog and auth.log say?



Regards,

Vladimir



From: Sean Carte [mailto:***@gmail.com]
Sent: Tuesday, May 16, 2017 2:37 PM
To: ltsp-***@lists.sourceforge.net
Subject: [Ltsp-discuss] No home directory



It's been a while since I last had to install LTSP, and I've never done it using Ubuntu 16.04 before, but things are going very wrong here and I hope someone can help.

I've installed Ubuntu 16.04 and LTSP but the clients don't have home directories. I have a machine assigned to opac30 in dhcp.conf:

host opac30 {
# info desk PC
hardware ethernet 00:0f:fe:33:8d:b9;
fixed-address 10.0.123.130;
filename "/ltsp/i386/pxelinux.0";
option host-name opac30;
}

In lts.conf:

[00:0f:fe:33:8d:b9]
# info desk PC
LDM_USERNAME=opac30

in the chroot I have a home directory:

/opt/ltsp/i386/home/opac30/
total 24
drwxr-xr-x 3 opac30 opac30 4096 May 16 09:22 .
drwxr-xr-x 32 root root 4096 May 16 09:22 ..
-rw-r--r-- 1 opac30 opac30 220 Aug 31 2015 .bash_logout
-rw-r--r-- 1 opac30 opac30 3771 Aug 31 2015 .bashrc
drwxr-xr-x 3 opac30 opac30 4096 May 16 09:21 .config
-rw-r--r-- 1 opac30 opac30 655 Jun 24 2016 .profile

I created the image with ltsp-update-image i386

The client gets to the log-in screen, but the GUI can't get past that. If I ctrl-alt-f1 I can log in, but there is no home directory. /home/ is empty.

Doesn't `ltsp-update-image i386` build an image using /opt/ltsp/i386/ ?

Sean

--
Sean Carte
2017-05-16 13:12:05 UTC
Permalink
Post by Мокрозуб В.А.
Users in the LTSP-environment are authenticated on the server and their
home directories are mounted from the server. You don't need to create home
directories in the chroot.
ltsp-update-image removes everything from /home directory by default. The
list of files removed from the image is stored in the
"/etc/ltsp/ltsp-update-image.excludes" file on the server.
Thank you. That's long been a source of confusion for me. (What I've done
up till now is created the users with home directories both on the server
and in the chroot.)
Post by Мокрозуб В.А.
Post by Sean Carte
The client gets to the log-in screen, but the GUI can't get past that
Did you create the user on the server? What do syslog and auth.log say?
Yes, the opac30 is a user on the server.

This is syslog up until the log-in screen:

May 16 15:03:06 ltspmls dhcpd[1961]: DHCPDISCOVER from 00:0f:fe:33:8d:b9
via eno2
May 16 15:03:06 ltspmls dhcpd[1961]: DHCPOFFER on 10.0.123.130 to
00:0f:fe:33:8d:b9 via eno2
May 16 15:03:06 ltspmls dhcpd[1961]: DHCPREQUEST for 10.0.123.130
(10.0.123.11) from 00:0f:fe:33:8d:b9 via eno2
May 16 15:03:06 ltspmls dhcpd[1961]: DHCPACK on 10.0.123.130 to
00:0f:fe:33:8d:b9 via eno2
May 16 15:03:06 ltspmls nbd_server[10659]: Spawned a child process
May 16 15:03:06 ltspmls nbd_server[11015]: virtstyle ipliteral
May 16 15:03:06 ltspmls nbd_server[11015]: connect from 10.0.123.130,
assigned file is /opt/ltsp/images/i386.img
May 16 15:03:06 ltspmls nbd_server[11015]: No authorization file, granting
access.
May 16 15:03:06 ltspmls nbd_server[11015]: Starting to serve
May 16 15:03:06 ltspmls nbd_server[11015]: Size of exported file/device is
1545310208
May 16 15:03:08 ltspmls nbd_server[10659]: Spawned a child process
May 16 15:03:08 ltspmls nbd_server[11021]: virtstyle ipliteral
May 16 15:03:08 ltspmls nbd_server[11021]: connect from 10.0.123.130,
assigned file is /tmp/nbd-swap/10.0.123.130
May 16 15:03:08 ltspmls nbd_server[11021]: Client '10.0.123.130' is not
authorized to access
May 16 15:03:08 ltspmls nbd_server[10659]: Child exited with 1
May 16 15:03:17 ltspmls nbd_server[10659]: Spawned a child process
May 16 15:03:17 ltspmls nbd_server[11022]: virtstyle ipliteral
May 16 15:03:17 ltspmls nbd_server[11022]: connect from 10.0.123.130,
assigned file is /opt/ltsp/images/i386.img
May 16 15:03:18 ltspmls nbd_server[11022]: No authorization file, granting
access.
May 16 15:03:18 ltspmls nbd_server[11022]: Starting to serve
May 16 15:03:18 ltspmls nbd_server[11022]: Size of exported file/device is
1545310208
May 16 15:03:18 ltspmls nbd_server[10659]: Child exited with 0

Nothing in auth.log so far.

Here's my log-in attempt at the GUI:



*syslog*
May 16 15:06:23 ltspmls systemd[1]: Created slice User Slice of opac30.
May 16 15:06:23 ltspmls systemd[1]: Starting User Manager for UID 1030...
May 16 15:06:23 ltspmls systemd[1]: Started Session 237 of user opac30.
May 16 15:06:23 ltspmls systemd[11043]: Reached target Sockets.
May 16 15:06:23 ltspmls systemd[11043]: Reached target Timers.
May 16 15:06:23 ltspmls systemd[11043]: Reached target Paths.
May 16 15:06:23 ltspmls systemd[11043]: Reached target Basic System.
May 16 15:06:23 ltspmls systemd[11043]: Reached target Default.
May 16 15:06:23 ltspmls systemd[11043]: Startup finished in 25ms.
May 16 15:06:23 ltspmls systemd[1]: Started User Manager for UID 1030.
May 16 15:06:27 ltspmls systemd[1]: Stopping User Manager for UID 1030...
May 16 15:06:27 ltspmls systemd[11043]: Reached target Shutdown.
May 16 15:06:27 ltspmls systemd[11043]: Starting Exit the Session...
May 16 15:06:27 ltspmls systemd[11043]: Stopped target Default.
May 16 15:06:27 ltspmls systemd[11043]: Stopped target Basic System.
May 16 15:06:27 ltspmls systemd[11043]: Stopped target Paths.
May 16 15:06:27 ltspmls systemd[11043]: Stopped target Timers.
May 16 15:06:27 ltspmls systemd[11043]: Stopped target Sockets.
May 16 15:06:27 ltspmls systemd[11043]: Received SIGRTMIN+24 from PID 11219
(kill).
May 16 15:06:27 ltspmls systemd[1]: Stopped User Manager for UID 1030.
May 16 15:06:27 ltspmls systemd[1]: Removed slice User Slice of opac30.
May 16 15:06:29 ltspmls nbd_server[10659]: Spawned a child process
May 16 15:06:29 ltspmls nbd_server[11229]: virtstyle ipliteral
May 16 15:06:29 ltspmls nbd_server[11229]: connect from 10.0.123.130,
assigned file is /opt/ltsp/images/i386.img
May 16 15:06:29 ltspmls nbd_server[11229]: No authorization file, granting
access.
May 16 15:06:29 ltspmls nbd_server[11229]: Starting to serve
May 16 15:06:29 ltspmls nbd_server[11229]: Size of exported file/device is
1545310208
May 16 15:06:29 ltspmls nbd_server[10659]: Child exited with 0

*auth.log*

May 16 15:06:23 ltspmls sshd[11041]: Accepted password for opac30 from
10.0.123.130 port 42294 ssh2
May 16 15:06:23 ltspmls sshd[11041]: pam_unix(sshd:session): session opened
for user opac30 by (uid=0)
May 16 15:06:23 ltspmls systemd-logind[1819]: New session 237 of user
opac30.
May 16 15:06:23 ltspmls systemd: pam_unix(systemd-user:session): session
opened for user opac30 by (uid=0)
May 16 15:06:27 ltspmls sshd[11203]: Received disconnect from 10.0.123.130
port 42294:11: disconnected by user
May 16 15:06:27 ltspmls sshd[11203]: Disconnected from 10.0.123.130 port
42294
May 16 15:06:27 ltspmls sshd[11041]: pam_unix(sshd:session): session closed
for user opac30
May 16 15:06:27 ltspmls systemd-logind[1819]: Removed session 237.
May 16 15:06:27 ltspmls systemd: pam_unix(systemd-user:session): session
closed for user opac30

My GUI just goes back to the log-in screen.

Sean
--
Sean Carte
2017-05-16 13:25:10 UTC
Permalink
In /var/lib/tftpboot/ltsp/i386/lts.conf I've tried both:

LDM_XSESSION=/usr/bin/lxsession -s Lubuntu -e LXDE
and
LDM_SESSION="gnome-session --session=ubuntu-2d"

I have both ubuntu and lubuntu installed in the chroot. Do I need to have a
desktop environment installed on the server?

Sean
--
Vagrant Cascadian
2017-05-16 14:31:51 UTC
Permalink
Post by Sean Carte
LDM_XSESSION=/usr/bin/lxsession -s Lubuntu -e LXDE
This is a public service announcement to the *ENTIRE INTERNET*

Please stop using LDM_XSESSION in this way.

It's just going to cause you weird problems and strange bugs and a world
of hurt. Remove it from your lts.conf. Friends don't let friends use
LDM_XSESSION; I wouldn't wish it on my worst enemies.

Ages ago, someone mentioned using it as a workaround to an LDM bug,
causing other strange and hard to troubleshoot bugs, and people keep
trying to use it in this broken way ever since.
Post by Sean Carte
I have both ubuntu and lubuntu installed in the chroot. Do I need to have a
desktop environment installed on the server?
Not if you're using fat clients.


live well,
vagrant

p.s. yes, there is a correct use of LDM_XSESSION, but it's to replace
/etc/X11/Xsession, not to select or pass custom options to your
preferred desktop environment.

p.p.s. This reminds me of the "Dueling Banjo Effect" mentioned in:
https://www.debian.org/News/weekly/2003/37/
Мокрозуб В.А.
2017-05-17 11:28:56 UTC
Permalink
I did clean installation of Lubuntu and it indeed doesn't let you log in. This is syslog on the client:



May 17 11:20:19 ltsp79 org.a11y.Bus[1527]: ** (process:1540): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name

org.gnome.SessionManager was not provided by any .service files

May 17 11:20:19 ltsp79 org.a11y.Bus[1527]: Activating service name='org.a11y.atspi.Registry'

May 17 11:20:19 ltsp79 org.a11y.Bus[1527]: Successfully activated service 'org.a11y.atspi.Registry'

May 17 11:20:19 ltsp79 org.a11y.atspi.Registry[1545]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry

May 17 11:20:19 ltsp79 gnome-session[1479]: gnome-session-is-accelerated: llvmpipe detected.

May 17 11:20:19 ltsp79 org.gnome.ScreenSaver[1527]: ** (gnome-screensaver:1556): WARNING **: Couldn't get presence status: The name org.gnome.SessionManager was not

provided by any .service files

May 17 11:20:19 ltsp79 gnome-session[1479]: gnome-session-binary[1479]: CRITICAL: We failed, but the fail whale is dead. Sorry....

May 17 11:20:19 ltsp79 gnome-session-binary[1479]: CRITICAL: We failed, but the fail whale is dead. Sorry....



Seems LDM doesn’t want to use LXDE by default (despite the fact that it is the only DE installed), so you have to add this to lts.conf:



LDM_SESSION=LXDE



You can find available DEs in the "/opt/ltsp/i386/usr/share/xsessions" directory.



P.S. LTSP-clients in Ubuntu 16.04 remove sshd service on boot for some reason so if you want to be able to connect to clients via SSH you need to add this to lts.conf:

KEEP_SYSTEM_SERVICES="ssh"



Regards,

Vladimir.



From: Sean Carte [mailto:***@gmail.com]
Sent: Tuesday, May 16, 2017 4:25 PM
To: ltsp-***@lists.sourceforge.net
Subject: Re: [Ltsp-discuss] No home directory



In /var/lib/tftpboot/ltsp/i386/lts.conf I've tried both:

LDM_XSESSION=/usr/bin/lxsession -s Lubuntu -e LXDE

and
LDM_SESSION="gnome-session --session=ubuntu-2d"




I have both ubuntu and lubuntu installed in the chroot. Do I need to have a desktop environment installed on the server?

Sean

--

Loading...