[Pkg-ltsp-devel] Bug#512505: ldm doesn't store default session

Arthur Lutz arthur.lutz at logilab.fr
Tue Jan 27 07:53:12 UTC 2009


On Wed, Jan 21, 2009 at 04:35:39PM -0800, Vagrant Cascadian wrote:
> fixed 512505 2:2.0.21-1
> thanks
> 
> On Wed, Jan 21, 2009 at 12:19:58PM +0100, Arthur Lutz wrote:
> > ldm doesn't remember between reboot the default session that I have 
> > chosen. 
> 
> this was fixed upstream in 2.0.21, and fixed in the debian experimental upload
> 2:2.0.21-1.

I am running ltsp in mixed environnement (not lenny) so I was able to add 
the experimental branch and 

   apt-get -uVf install ldm=2:2.0.28-1

But, things are worse. (Tried out a bunch of options) after typing my password
and entering, it shuts down X. Here is what I have in /var/log/ldm


LDM2 running on ip address XX.XX.XX.XX
rc_files: /bin/sh /usr/share/ldm/ldm-script init
ldm_spawn: pid = 2027
Process 2027 exited with status 0
Spawning greeter: /usr/lib/ldm/ldmgtkgreet
ldm_spawn: pid = 2033
ssh_session: ssh -Y -t -M -S /var/run/ldm_socket_2026_XX.XX.XX.XX  -o NumberOfPasswordPrompts=1 arthur at XXX.XX.X.X echo LTSPROCKS; /bin/sh -
ldm_spawn: pid = 3144
expect saw: arthur at XX.XX.XX.XX's password: 
expect saw: 
ESC7ESC[rESC[999;999HESC[6n
expect saw: 
resize: Time out occurred^M

expect saw: LTSPROCKS

Logged in successfully.

Process 2033 exited with status 0
Established ssh session.
Executing rc files.
rc_files: /bin/sh /usr/share/ldm/ldm-script start
ldm_spawn: pid = 3177
Process 3177 exited with status 0
Beginning X session.
rc_files: /bin/sh /usr/share/ldm/ldm-script xsession
ldm_spawn: pid = 3207
Process 3207 exited with status 0
X session ended.
Executing rc files.
rc_files: /bin/sh /usr/share/ldm/ldm-script stop
ldm_spawn: pid = 3248
Process 3248 exited with status 0
Ending ssh session.
Shutting down ssh session: ssh -S /var/run/ldm_socket_2026_XX.XX.XX.XX -O exit XX.XX.XX.XX
ldm_spawn: pid = 3257
Process 3257 exited with status 0
Process 3144 exited with status 0

 
> unfortunately, it would likely be difficult to backport those changes to the
> version in lenny, especially this late in the freeze.
> 
> > When I reboot, I login, correct password and all, black screen 
> > and it comes back to the ldm prompt.
> 
> i'm not sure i understand you here, you mean that you cannot login after
> rebooting the thin client? or it merely doesn't default to the previously
> selected session?

Both. It doesn't remember the previously selected session, and loops back to 
ldm when correct password is entered.
 
> > Selecting the session works, but I have to do it everytime I use ldm.
> > 
> > Where is this info about default session taken ? (with gdm it remembers
> > fine...)
> 
> it uses the defaults for /etc/alternatives/x-session-manager, which is a
> systemwide default.

$ update-alternatives --config x-session-manager

There are 4 alternatives which provide `x-session-manager'.

  Selection    Alternative
-----------------------------------------------
          1    /usr/bin/startkde
*+        2    /usr/bin/startlxde
          3    /usr/bin/openbox-session
          4    /usr/bin/gnome-session


> to configure per-user, you'd need to create a ~/.xsession
> for each user that sets the session.

I have an ~/.xsession with ion3 in it. I just realized it 
didn't have the +x in it's attributes, I've added and with test
on next reboot.

Nope, not better.
 

-- 
Arthur LUTZ                                    LOGILAB, Paris (France)
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Développement logiciel avancé - Intelligence Artificielle - Formations





More information about the Pkg-ltsp-devel mailing list