I don't know what I'm doing wrong, but I still got the error:
Post by John HuppVagrant, you're a hero! (I.e. it worked!)
------------
I do note that LDM seems to ignore the setting of a default session via
LDM_SESSION (if I understand "default" properly). Rather, it sets as the
default whatever session was last used.
------------
You also wrote: "There are/were bugs in some versions of LDM with
handling sessions that contained Exec lines with multiple parts... which I
thought were fixed in recent versions of LDM, but perhaps not..."
But isn't this problem due to an unfixed bug in dash at
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097 ["dash
variable expansion error using local, readonly, and export"], as referenced
in the LTSP bug at
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252 ["ubuntu
14.04 ltsp-server /etc/X11/Xsession.d/40-ltsp-server DESKTOP_SESSION breaks
lubuntu-desktop login"]?
--John
/etc/X11/Xsession: 6: export: -s: bad variable name
That sounds supiciously like you selected the Lubuntu session rather
than Lubuntu-custom ... alternately, edit the Exec line in
Exec=/usr/local/bin/lubuntu-custom
Make sure /usr/local/bin/lubuntu-custom is marked executable.
live well,
vagrant
I see that setting LDM_XSESSION overrides the setup in 40-ltsp-server,
such that you cannot log in to any environment but LXDE. You lose the
choices to start an openbox or terminal session.
So I likewise will be looking at Vagrant's approach.
Vagrant, but this file exists, it's in
/usr/share/xsessions/Lubuntu.desktop.
Even so, I can't login. The error is in the exec line. I'll try your tip,
thank you!
[Desktop Entry]
# The names/descriptions should really be better
Name=Lubuntu
Comment=Lubuntu - Lightweight X11 desktop environment based on LXDE
Comment[zh_TW]=Lubuntu - èŒéçŽç X11 æ¡é¢ç°å¢
Comment[fi]=Lubuntu - kevyt X11-työpöytÀympÀristö
Comment[ja]=Lubuntu - 軜é㪠X11 ãã¹ã¯ãããç°å¢
Exec=/usr/bin/lxsession -s Lubuntu -e LXDE
# Icon=
Type=Application
John, I let the originals 40-ltsp-server (on server) and 40-ltsp-client
(on chroot), only changed the lts.conf.
Now I'll try Vagrant's tip.
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in
[Default]
LDM_XSESSION=/usr/bin/lxsession -s Lubuntu -e LXDE
This is a poor fix, as you're not running /etc/X11/Xsession at all, or
all the hooks in /etc/X11/Xsession.d/* which set up the environment
properly... so you may find other surprising, extremely difficult to
troubleshoot issues by running this way.
#!/bin/sh
exec /usr/bin/lxsession -s Lubuntu -e LXDE
[Desktop Entry]
Name=Lubuntu-custom
Comment=LXDE - Lightweight X11 desktop environment
Exec=/usr/local/bin/lubuntu-custom
LDM_SESSION=Lubuntu-custom
There are/were bugs in some versions of LDM with handling sessions that
contained Exec lines with multiple parts... which I thought were fixed
in recent versions of LDM, but perhaps not...
Please don't use LDM_XSESSION unless you're actually replacing the
full functionality of /etc/X11/Xsession!
live well,
vagrant
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzerhttp://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_____________________________________________________________________
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net