Debian Bug report logs - #544507
ldm: Check gdm default session

version graph

Package: ldm; Maintainer for ldm is Debian LTSP Maintainers <team+ltsp@tracker.debian.org>; Source for ldm is src:ldm (PTS, buildd, popcon).

Reported by: Philipp Neuser <pneuser@physik.fu-berlin.de>

Date: Tue, 1 Sep 2009 06:21:02 UTC

Severity: wishlist

Found in version 2.0.6-4

Fixed in version 2:2.0.21-1

Done: Vagrant Cascadian <vagrant@freegeek.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#544507; Package ldm. (Tue, 01 Sep 2009 06:21:08 GMT) (full text, mbox, link).


Acknowledgement sent to Philipp Neuser <pneuser@physik.fu-berlin.de>:
New Bug report received and forwarded. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Tue, 01 Sep 2009 06:21:08 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Philipp Neuser <pneuser@physik.fu-berlin.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ldm: Check gdm default session
Date: Tue, 01 Sep 2009 08:19:00 +0200
Package: ldm
Version: 2.0.6-4
Severity: wishlist


We've a larger Debian evironment, were the people are able to login to
normal Debian clients with gdm and at ThinClients provided with ltsp. Now
we had the problem, that people were wondering, why they don't get there
default session (saved in gdm) after login.
I've written a little patch to ldm which fixes the problem.

Patch:

--- ldm-2.0.6~/src/ldm.c  2009-05-25 11:56:51.000000000 +0200
+++ ldm-2.0.6/src/ldm.c 2009-05-25 11:58:39.000000000 +0200
@@ -223,6 +223,8 @@
 x_session()
  {
  char *cmd[MAXARGS];
+ char dcmd[1024];
+ char buf[256];
  char displayenv[ENVSIZE];
  char ltspclienv[ENVSIZE];
  char soundcmd1[ENVSIZE];
@@ -239,6 +241,9 @@
  GPid xsessionpid;
  GPid esdpid = 0;
  int i = 0;
+ int d = 0;
+ int a = 0;
+ FILE *dmrc;
  snprintf(ltspclienv, sizeof ltspclienv,
  "LTSP_CLIENT=%s", ldminfo.ipaddr);
  if (ldminfo.directx)
@@ -259,6 +264,21 @@
  cmd[i++] = ldminfo.username;
  cmd[i++] = ldminfo.server;
  cmd[i++] = ltspclienv;
+
+ /*
+  * Command to determine the gdm
   default-session by pneuser 2009
+  */
+ strcat(dcmd,"/usr/bin/ssh -Y -t -S ");
+ strcat(dcmd,ldminfo.control_socket);
+ strcat(dcmd," -l ");
+ strcat(dcmd,ldminfo.username);
+ strcat(dcmd," ");
+ strcat(dcmd,ldminfo.server);
+ strcat(dcmd," ");
+ strcat(dcmd,ltspclienv);
+ strcat(dcmd," /opt/ltsp/readdmrc");

/*
 * Set our language, if a different one
 * is picked.
@@ -302,15 +322,20 @@
     cmd[i++] = soundcmd1;
     }
   }
   cmd[i++] = ldminfo.xsession;
   if (*ldminfo.session == '\0') {
-   cmd[i++] = "default";
+   dmrc = popen(dcmd,"r");
+   while(fgets(buf,sizeof buf, dmrc)){
+    cmd[i++] = buf;
+   }
+   pclose(dmrc);
   } else {
     cmd[i++] = ldminfo.session;
   }
-
-
+
+
   if (ldminfo.localdev) {
      cmd[i++] = ";";/* closes* bug number 121254 */
      cmd[i++] = "/usr/sbin/ltspfsmounter";




The script to read the .dmrc  (readdmrc)

#!/bin/bash

if [ -f $HOME/.dmrc ] ; then

    var=$(< $HOME/.dmrc)

    session=$(echo $var | sed -e
   's/.*Session\=\([A-Za-z0-9]*\).*/\1/g')
 else

      session="default"
 fi
echo $session




Regards,
Philipp



-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ldm depends on:
ii  gtk2-engines [gtk2-eng 1:2.14.3-2        theme engines for GTK+ 2.x
ii  libatk1.0-0            1.22.0-1          The ATK accessibility toolkit
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libcairo2              1.6.4-7           The Cairo 2D vector graphics libra
ii  libglib2.0-0           2.20.3-1.1        The GLib library of C routines
ii  libgtk2.0-0            2.16.2-1.1        The GTK+ graphical user interface 
ii  libpango1.0-0          1.20.5-3+lenny1   Layout and rendering of internatio
ii  openssh-client         1:5.1p1-5         secure shell client, an rlogin/rsh
ii  xserver-xorg           1:7.3+18          the X.Org X server
ii  xserver-xorg-core [xse 2:1.4.2-10.lenny1 Xorg X server - core server

Versions of packages ldm recommends:
ii  netcat                        1.10-38    TCP/IP swiss army knife -- transit
ii  netcat-traditional [netcat]   1.10-38    TCP/IP swiss army knife

ldm suggests no packages.




Reply sent to Vagrant Cascadian <vagrant@freegeek.org>:
You have taken responsibility. (Tue, 01 Sep 2009 07:00:18 GMT) (full text, mbox, link).


Notification sent to Philipp Neuser <pneuser@physik.fu-berlin.de>:
Bug acknowledged by developer. (Tue, 01 Sep 2009 07:00:18 GMT) (full text, mbox, link).


Message #10 received at 544507-done@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@freegeek.org>
To: Philipp Neuser <pneuser@physik.fu-berlin.de>, 544507-done@bugs.debian.org
Subject: Re: Bug#544507: ldm: Check gdm default session
Date: Mon, 31 Aug 2009 23:53:04 -0700
Version: 2:2.0.21-1

On Tue, Sep 01, 2009 at 08:19:00AM +0200, Philipp Neuser wrote:
> We've a larger Debian evironment, were the people are able to login to
> normal Debian clients with gdm and at ThinClients provided with ltsp. 

great to hear!

> Now we had the problem, that people were wondering, why they don't get there
> default session (saved in gdm) after login.

ok first, the good news: newer versions of ldm already support this, and the
versions of LDM and LTSP from testing should work with debian stable:

  http://wiki.debian.org/LTSP/Howto/Lenny-With-Backports

> I've written a little patch to ldm which fixes the problem.

thanks for working on it! but...

the bad news: your patch is just too big to get into debian's lenny release;
only major bugs get fixed in the stable release.

maybe you'd be interested in tackling some bugs in the newer codebase? :)

live well,
  vagrant




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 29 Sep 2009 07:29:43 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:33:27 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.