Re: [patch] LDM Nomad support with local CD/DVD/USB and sound

Vagrant Cascadian <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
On Wed, Feb 11, 2009 at 01:08:28PM +0530, Jigish Gohil wrote:
> One more update incorporating suggestions from Vagrant and Ryan.
> 
> We are now using ldm.password, and not storing it as
> ldm.nomadpassword. The ldm.password is freed if ldm.nomad is not set,
> if it is set, it is freed after running rdesktop.

overall this patch looks good. i tested it with plain rdesktop/xrdp, and it
seems to basically work, although no support for sound or localapps.  it also
doesn't seem to respect changing the selected session or language.

one nice thing is that session resume (ctrl-alt-backspace) worked without any
special configuration, though i wonder if it wouldn't cause issues if logged in
from another location?

local devices (cdrom/floppy) didn't get unmounted properly for me- maybe
because of the resume handling.

i don't know how many of the quirks i encountered aren't present in an
environment where Nomad patches to rdesktop (and xrdp?) are applied.

> diff -ur a/rc.d/X95-run-x-session b/rc.d/X95-run-x-session
> +# If nomad is used, just export variables to file else run full Xsession
> +if boolean_is_true "$LDM_NOMAD"; then
> +        ssh -S $LDM_SOCKET -l $LDM_USERNAME $LDM_SERVER "echo $MY_SOUND > ~/.ltspvars"
> +else
> +        ssh -Y -t -S $LDM_SOCKET -l $LDM_USERNAME $LDM_SERVER "$CLIENT_ENV $MY_LANG $MY_DISP $MY_SOUND $LDM_XSESSION $LDM_SESSION < /dev/null > /dev/null $MY_LOCALDEV"
> +fi

so it clearly is trying to cache the sound related variables in ~/.ltspvars.

this doesn't seem to happen automatically for me- i'm guessing a genuine nomad
environment sources this file somehow? does it export these variables as well?
when i manually sourced and exported the variables, sound worked (though maybe
a little choppier than usual?) ... and continued to work after
ctrl-alt-backspace, sitting at the ldm login screen... go resumeable sessions!
:)

i suspect issues with sound and resumed sessions...


we did just go through some trouble to get rid of writing files into the user's
home dir with LOCAL_APPS_MENU code... so it kind of feels like a regression
there. it also doesn't clean up ~/.ltspvars on logout.

all that said, i think the patch is pretty much ok for merging, although i'd
really like to see some other way to handle sound variables, as writing files
to a user's home directory has some unfortunate consequences.

live well,
  vagrant

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.