Discussion:
[Ltsp-discuss] Error in lxsession
Bruno Vane
2014-09-08 21:57:29 UTC
Permalink
Hi,

I'm getting this error when try to login in Lubuntu:

***@ltsp:~# tail -f /home/bruno/.xsession-errors
Xsession: X session started for bruno at Seg Set 8 18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name

This is my Lubuntu.desktop:
***@ltsp:~# cat /opt/ltsp/i386/usr/share/xsessions/Lubuntu.desktop
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"

If i change the environment to Xterm I can login and run the command:
***@ltsp131:~$ lxsession -s Lubuntu -e LXDE

And Lubuntu (LXDE) runs perfectly with output:
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
** Message: main.vala:131: log directory:
/home/bruno/.cache/lxsession/Lubuntu
** Message: main.vala:132: log path:
/home/bruno/.cache/lxsession/Lubuntu/run.log
Bruno Vane
2014-09-09 13:57:38 UTC
Permalink
Well, I got this working following this bugtrack and removing the
file /etc/X11/Xsession.d/40-ltsp-client from the ltsp chroot and
running ltsp-update-image.

https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252
Post by Bruno Vane
Hi,
Xsession: X session started for bruno at Seg Set 8 18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
/home/bruno/.cache/lxsession/Lubuntu
/home/bruno/.cache/lxsession/Lubuntu/run.log
John Hupp
2014-10-02 19:45:25 UTC
Permalink
Running Lubuntu 14.04.1 i386 with LTSP-PNP, I also encountered this bug.

I commented out the DESKTOP_SESSIONS line in 40-ltsp-client (as in Bug
1330252), but then I couldn't log in to the server itself, I got a login
loop.

I undid that and then tried removing 40-ltsp-server altogether and
updating the image. In this case the server boot succeeds, but the
client boot doesn't even get as far as the login screen. After
identifying the boot server IP, it fails with "TFTP open timeout."

So I'm wondering if perchance we only have a good workaround with a
dedicated chroot.
Post by Bruno Vane
Well, I got this working following this bugtrack and removing the
file /etc/X11/Xsession.d/40-ltsp-client from the ltsp chroot and
running ltsp-update-image.
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252
Hi,
Xsession: X session started for bruno at Seg Set 8 18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
/home/bruno/.cache/lxsession/Lubuntu
/home/bruno/.cache/lxsession/Lubuntu/run.log
John Hupp
2014-10-03 14:41:39 UTC
Permalink
I had forgotten about the usual fix for a TFTP open timeout: in
/etc/dnsmasq.d/network-manager, replace "bind interfaces" with "bind
dynamic." This takes care of the timeout and gets me to a login screen,
but that still suffers from the login loop.

I can log in to Openbox with no problem.
Post by John Hupp
Running Lubuntu 14.04.1 i386 with LTSP-PNP, I also encountered this bug.
I commented out the DESKTOP_SESSIONS line in 40-ltsp-client (as in Bug
1330252), but then I couldn't log in to the server itself, I got a
login loop.
I undid that and then tried removing 40-ltsp-server altogether and
updating the image. In this case the server boot succeeds, but the
client boot doesn't even get as far as the login screen. After
identifying the boot server IP, it fails with "TFTP open timeout."
So I'm wondering if perchance we only have a good workaround with a
dedicated chroot.
Post by Bruno Vane
Well, I got this working following this bugtrack and removing the
file /etc/X11/Xsession.d/40-ltsp-client from the ltsp chroot and
running ltsp-update-image.
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252
Hi,
Xsession: X session started for bruno at Seg Set 8 18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
/home/bruno/.cache/lxsession/Lubuntu
/home/bruno/.cache/lxsession/Lubuntu/run.log
------------------------------------------------------------------------------
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 Analyzer
http://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
Bruno Vane
2014-10-03 18:37:26 UTC
Permalink
And in .xsession-errors you see this?

/etc/X11/Xsession: 6: export: -s: bad variable name
Post by John Hupp
I had forgotten about the usual fix for a TFTP open timeout: in
/etc/dnsmasq.d/network-manager, replace "bind interfaces" with "bind
dynamic." This takes care of the timeout and gets me to a login screen,
but that still suffers from the login loop.
I can log in to Openbox with no problem.
Running Lubuntu 14.04.1 i386 with LTSP-PNP, I also encountered this bug.
I commented out the DESKTOP_SESSIONS line in 40-ltsp-client (as in Bug
1330252), but then I couldn't log in to the server itself, I got a login
loop.
I undid that and then tried removing 40-ltsp-server altogether and
updating the image. In this case the server boot succeeds, but the client
boot doesn't even get as far as the login screen. After identifying the
boot server IP, it fails with "TFTP open timeout."
So I'm wondering if perchance we only have a good workaround with a
dedicated chroot.
Well, I got this working following this bugtrack and removing the
file /etc/X11/Xsession.d/40-ltsp-client from the ltsp chroot and
running ltsp-update-image.
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252
Post by Bruno Vane
Hi,
Xsession: X session started for bruno at Seg Set 8 18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
/home/bruno/.cache/lxsession/Lubuntu
/home/bruno/.cache/lxsession/Lubuntu/run.log
------------------------------------------------------------------------------
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
John Hupp
2014-10-03 19:42:59 UTC
Permalink
Yes, exactly that output.

You said on 9/9 that you got this working, but are you set up with a
dedicated chroot, or are you likewise running ltsp-pnp?
Post by Bruno Vane
And in .xsession-errors you see this?
/etc/X11/Xsession: 6: export: -s: bad variable name
I had forgotten about the usual fix for a TFTP open timeout: in
/etc/dnsmasq.d/network-manager, replace "bind interfaces" with
"bind dynamic." This takes care of the timeout and gets me to a
login screen, but that still suffers from the login loop.
I can log in to Openbox with no problem.
Post by John Hupp
Running Lubuntu 14.04.1 i386 with LTSP-PNP, I also encountered this bug.
I commented out the DESKTOP_SESSIONS line in 40-ltsp-client (as
in Bug 1330252), but then I couldn't log in to the server itself,
I got a login loop.
I undid that and then tried removing 40-ltsp-server altogether
and updating the image. In this case the server boot succeeds,
but the client boot doesn't even get as far as the login screen.
After identifying the boot server IP, it fails with "TFTP open
timeout."
So I'm wondering if perchance we only have a good workaround with
a dedicated chroot.
Post by Bruno Vane
Well, I got this working following this bugtrack and removing
the file /etc/X11/Xsession.d/40-ltsp-client from the ltsp chroot
and running ltsp-update-image.
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252
Hi,
Xsession: X session started for bruno at Seg Set 8 18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
/opt/ltsp/i386/usr/share/xsessions/Lubuntu.desktop
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
/home/bruno/.cache/lxsession/Lubuntu
/home/bruno/.cache/lxsession/Lubuntu/run.log
------------------------------------------------------------------------------
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 Analyzer
http://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 onirc.freenode.net <http://irc.freenode.net>
------------------------------------------------------------------------------
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 Analyzer
http://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
Bruno Vane
2014-10-03 20:18:44 UTC
Permalink
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in [Default]
section this line:
LDM_XSESSION=/usr/bin/lxsession -s Lubuntu -e LXDE

This solved for me.
Post by John Hupp
Yes, exactly that output.
You said on 9/9 that you got this working, but are you set up with a
dedicated chroot, or are you likewise running ltsp-pnp?
And in .xsession-errors you see this?
/etc/X11/Xsession: 6: export: -s: bad variable name
Post by John Hupp
I had forgotten about the usual fix for a TFTP open timeout: in
/etc/dnsmasq.d/network-manager, replace "bind interfaces" with "bind
dynamic." This takes care of the timeout and gets me to a login screen,
but that still suffers from the login loop.
I can log in to Openbox with no problem.
Running Lubuntu 14.04.1 i386 with LTSP-PNP, I also encountered this bug.
I commented out the DESKTOP_SESSIONS line in 40-ltsp-client (as in Bug
1330252), but then I couldn't log in to the server itself, I got a login
loop.
I undid that and then tried removing 40-ltsp-server altogether and
updating the image. In this case the server boot succeeds, but the client
boot doesn't even get as far as the login screen. After identifying the
boot server IP, it fails with "TFTP open timeout."
So I'm wondering if perchance we only have a good workaround with a
dedicated chroot.
Well, I got this working following this bugtrack and removing the
file /etc/X11/Xsession.d/40-ltsp-client from the ltsp chroot and
running ltsp-update-image.
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252
Post by Bruno Vane
Hi,
Xsession: X session started for bruno at Seg Set 8 18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
/home/bruno/.cache/lxsession/Lubuntu
/home/bruno/.cache/lxsession/Lubuntu/run.log
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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
John Hupp
2014-10-03 20:30:04 UTC
Permalink
Was that in combination with removal of 40-ltsp-server, or all by itself
with the original, unedited 40-ltsp-server in place?
Post by Bruno Vane
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in
LDM_XSESSION=/usr/bin/lxsession -s Lubuntu -e LXDE
This solved for me.
Yes, exactly that output.
You said on 9/9 that you got this working, but are you set up with
a dedicated chroot, or are you likewise running ltsp-pnp?
Post by Bruno Vane
And in .xsession-errors you see this?
/etc/X11/Xsession: 6: export: -s: bad variable name
in /etc/dnsmasq.d/network-manager, replace "bind interfaces"
with "bind dynamic." This takes care of the timeout and gets
me to a login screen, but that still suffers from the login loop.
I can log in to Openbox with no problem.
Post by John Hupp
Running Lubuntu 14.04.1 i386 with LTSP-PNP, I also
encountered this bug.
I commented out the DESKTOP_SESSIONS line in 40-ltsp-client
(as in Bug 1330252), but then I couldn't log in to the
server itself, I got a login loop.
I undid that and then tried removing 40-ltsp-server
altogether and updating the image. In this case the server
boot succeeds, but the client boot doesn't even get as far
as the login screen. After identifying the boot server IP,
it fails with "TFTP open timeout."
So I'm wondering if perchance we only have a good workaround
with a dedicated chroot.
Post by Bruno Vane
Well, I got this working following this bugtrack and
removing the file /etc/X11/Xsession.d/40-ltsp-client from
the ltsp chroot and running ltsp-update-image.
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252
Hi,
Xsession: X session started for bruno at Seg Set 8
18:48:50 BRT 2014
localuser:bruno being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
/opt/ltsp/i386/usr/share/xsessions/Lubuntu.desktop
[Desktop Entry]
Name="Lubuntu"
Comment="Lubuntu"
Exec="lxsession -s Lubuntu -e LXDE"
If i change the environment to Xterm I can login and
** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
/home/bruno/.cache/lxsession/Lubuntu
/home/bruno/.cache/lxsession/Lubuntu/run.log
------------------------------------------------------------------------------
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 Analyzer
http://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 onirc.freenode.net <http://irc.freenode.net>
------------------------------------------------------------------------------
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 Analyzer
http://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 onirc.freenode.net <http://irc.freenode.net>
------------------------------------------------------------------------------
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 Analyzer
http://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
Vagrant Cascadian
2014-10-03 21:04:51 UTC
Permalink
Post by Bruno Vane
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.

I recommend writing a wrapper script, say /usr/local/bin/lubuntu-custom:

#!/bin/sh
exec /usr/bin/lxsession -s Lubuntu -e LXDE

And a corresponding /usr/share/xsessions/lubuntu-custom.desktop file:

[Desktop Entry]
Name=Lubuntu-custom
Comment=LXDE - Lightweight X11 desktop environment
Exec=/usr/local/bin/lubuntu-custom

And then setting in lts.conf:

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
Bruno Vane
2014-10-03 21:19:37 UTC
Permalink
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!
This is my original file, by the way:

***@ltsp-server:~# cat /usr/share/xsessions/Lubuntu.desktop
[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.
Post by Bruno Vane
Post by Bruno Vane
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in
[Default]
Post by Bruno Vane
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 Analyzer
http://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
John Hupp
2014-10-03 21:34:48 UTC
Permalink
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.
Post by Bruno Vane
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.
Post by Bruno Vane
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in
[Default]
Post by Bruno Vane
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.
I recommend writing a wrapper script, say
#!/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 Analyzer
http://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
<http://irc.freenode.net>
------------------------------------------------------------------------------
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 Analyzer
http://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
Bruno Vane
2014-10-03 21:57:32 UTC
Permalink
With Vagrant's approach I still got the error:
/etc/X11/Xsession: 6: export: -s: bad variable name
Post by John Hupp
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.
Post by Bruno Vane
Post by Bruno Vane
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in
[Default]
Post by Bruno Vane
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 Analyzer
http://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
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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 Analyzer
http://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
Vagrant Cascadian
2014-10-03 22:16:46 UTC
Permalink
Post by Bruno Vane
/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
Lubuntu.desktop directly:

Exec=/usr/local/bin/lubuntu-custom

Make sure /usr/local/bin/lubuntu-custom is marked executable.


live well,
vagrant
Post by Bruno Vane
Post by John Hupp
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.
Post by Bruno Vane
Post by Bruno Vane
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in
[Default]
Post by Bruno Vane
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
John Hupp
2014-10-04 00:32:09 UTC
Permalink
Vagrant, 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
Post by Vagrant Cascadian
Post by Bruno Vane
/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
Post by Bruno Vane
Post by John Hupp
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.
Post by Bruno Vane
Post by Bruno Vane
I'm using Lubuntu 14.04, dedicated chroot.
Try this, in /var/lib/tftpboot/ltsp/<youchroot>/lts.conf, add in
[Default]
Post by Bruno Vane
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 Analyzer
http://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
Bruno Vane
2014-10-06 13:29:38 UTC
Permalink
I don't know what I'm doing wrong, but I still got the error:
localuser:bruno.vane being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name


This is what I did:

***@ltsp-server:~# cat /usr/local/bin/lubuntu-custom
#!/bin/sh
exec /usr/bin/lxsession -s Lubuntu -e LXDE

***@ltsp-server:~# ls -lah /usr/local/bin/lubuntu-custom
-rwxr-xr-x 1 root root 53 Out 3 18:33 /usr/local/bin/lubuntu-custom


***@ltsp-server:~# cat /usr/share/xsessions/lubuntu-custom.desktop
[Desktop Entry]
Name=Lubuntu-custom
Comment=LXDE - Lightweight X11 desktop environment
Exec=/usr/local/bin/lubuntu-custom

***@ltsp-server:~# cat /var/lib/tftpboot/ltsp/i386printer/lts.conf
[Default]
XRANDR_DISABLE=True
X_MODE_0=1024x768
X_MODE_1=800x600
X_MODE_2=640x480

LOCALDEV=True
LOCALDEV_DENY_CD=True
LOCALDEV_DENY_FLOPPY=True
LOCALDEV_DENY_INTERNAL_DISKS=True
LOCALDEV_DENY_USB=False

NBD_SWAP=False
LDM_SESSION=Lubuntu-custom
SCREEN_02=shell
SCANNER=true
Post by John Hupp
Vagrant, 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
John Hupp
2014-10-06 13:59:28 UTC
Permalink
Post by Bruno Vane
localuser:bruno.vane being added to access control list
/etc/X11/Xsession: 6: export: -s: bad variable name
#!/bin/sh
exec /usr/bin/lxsession -s Lubuntu -e LXDE
-rwxr-xr-x 1 root root 53 Out 3 18:33 /usr/local/bin/lubuntu-custom
[Desktop Entry]
Name=Lubuntu-custom
Comment=LXDE - Lightweight X11 desktop environment
Exec=/usr/local/bin/lubuntu-custom
[Default]
XRANDR_DISABLE=True
X_MODE_0=1024x768
X_MODE_1=800x600
X_MODE_2=640x480
LOCALDEV=True
LOCALDEV_DENY_CD=True
LOCALDEV_DENY_FLOPPY=True
LOCALDEV_DENY_INTERNAL_DISKS=True
LOCALDEV_DENY_USB=False
NBD_SWAP=False
LDM_SESSION=Lubuntu-custom
SCREEN_02=shell
SCANNER=true
Vagrant, 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
[snip]

Did you then explicitly select the lubuntu-custom session from the login
screen?

Not sure if case matters, but you have LDM_SESSION set to
"Lubuntu-custom" while your actual desktop shortcut is "lubuntu-custom."
Loading...