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:

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

root@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


root@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

root@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


2014-10-03 21:32 GMT-03:00 John Hupp <l...@prpcompany.com>:

>  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
>
>
> On 10/3/2014 6:16 PM, Vagrant Cascadian wrote:
>
> On 2014-10-03, Bruno Vane <bro...@gmail.com> <bro...@gmail.com> wrote:
>
>  With Vagrant's approach I still got the error:
> /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
>
>
>  2014-10-03 18:34 GMT-03:00 John Hupp <l...@prpcompany.com> 
> <l...@prpcompany.com>:
>
>
>   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.
>
>
> On 10/3/2014 5:19 PM, Bruno Vane wrote:
>
> 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:
>
>  root@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.
>
> 2014-10-03 18:04 GMT-03:00 Vagrant Cascadian <vagr...@debian.org> 
> <vagr...@debian.org>:
>
>
>  On 2014-10-03, Bruno Vane wrote:
>
>  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 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
>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
>
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
>
>
------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to