Hi Gadi, > Meanwhile, I took it out and it worked just fine for me. Keep in mind > that whether its in or out, twm doesn't start until after the first > login screen (ie, when nxclient makes the initial connection). "Why?", > you ask? I'll tell you... > > Ok, I did not know that. I just tried the same again (i.e. removed -ac, uncommented the xauth command) and still jo joy (I get black screen with X cursor). But there is still some magic: 1. Previously, I had twm running even for the very first time before I actually logged in. After enabling security, twm stopped working. 2. I have found out that twm refuses to start (with "there is already a window manager running" error message) if it can find the correct .Xauthority file. Once I set XAUTHORITY variable to some nonsense, it starts up correctly.
So I really do not understand what is going on here. Maybe - you say it is working for you - you could release your updated package so I can try it again with a fresh setup. Cheers, Ondrej > For whatever reason, the nxclient executable is designed to fork nxssh > and friends and then die. This makes it a tad annoying to call from > xinit, as when xinit's script dies, X dies. When you write an xinit > script, you usually background a bunch of executables and leave the last > one running in the foreground. The last one should be a program that > doesn't die. Well, since in this case, the choice cannot be nxclient, > it must be twm. So, if you look in usr/bin/startnx, you will see twm > running in the foreground at the end. > > Now, you will also notice that nxclient is running in the foreground, as > well. This is because when you run nxclient in the background, it seems > to not like to get keyboard focus anymore after a session ends and it > comes back to a login. So, that's why I left it in the foreground, > which means that twm doesn't actually get called until after nxclient > dies, which is after the login screen when it forks off nxssh. > > Whew. Does that make sense? > > I 'sppose I could have done like you suggest and background xinit and > run twm out of the screen.d script, but, a) I didnt think of it and b) I > prolly would have forgotten at some point where twm was running from :) > > Cheers, > > -Gadi > > On Thu, 2006-06-15 at 15:56 +0200, Ondrej Valousek wrote: > >> Hi Gadi, >> >> Just one more problem that I have experienced: >> I see that you are running Xserver with the -ac option that disables >> security - I think it is very dangerous thing so I have removed it and >> enabled the xauth command in the /usr/bin/startnx. >> >> After I did that I had serious problems to start twm - it refused to start. >> >> so eventually I had to amend the /etc/screen.d/startnx command so >> 1. the xinit command at the end is backgrounded >> 2. I added 2 more lines at the end of the file: >> export XAUTHORITY=/tmp/some_magic >> /usr/X11R6/bin/twm -display unix:0.0 >> >> I do not know why, but it works (maybe if we just create .xinitrc, it >> would run as well) >> >> Ondrej >> >> >> Gideon Romm wrote: >> >>> Also, here's an "rdesktop.wrapper" script that you can replace your >>> existing /opt/ltsp/i386/usr/bin/rdesktop.wrapper with, if you want twm >>> to run for your rdesktop session. >>> >>> I didn't notice rdesktop to be any faster, but I'll take your word for >>> it. >>> >>> Enjoy! >>> >>> -Gadi >>> >>> On Thu, 2006-06-08 at 18:19 +0200, Ondrej Valousek wrote: >>> >>> >>>> Hi Gadi, >>>> >>>> I am just staring at your NX startup scripts... I just do not >>>> understand... How do you actually start up the twm? The only difference >>>> I could see is that you build the .twmrc file in home directory. But my >>>> understanding was, that you need to build .xinitrc as well and place twm >>>> at the bottom of it in order to have it started... >>>> Maybe I have missed something... >>>> >>>> But anyway - what I observe is: >>>> 1. There are no window decorations so you can not move/resize windows >>>> (like nxclient logon window). This capability could be important if you >>>> decide not to nxstart the whole desktop but just a one application in >>>> floating window - consider. >>>> 2. Everything else that was not working before (key repetition, keyboard >>>> layout switching) works like charm now - perfect! >>>> >>>> Regards, >>>> Ondrej >>>> >>>> Gideon Romm wrote: >>>> >>>> >>>>> Ondrej, et al- >>>>> >>>>> I just uploaded an update NX_LTSP pkg to sourceforge. It uses the >>>>> newest nxclient (1.5.0-141) and twm for a window manager. Can you play >>>>> with it and see if it is better/worse than before? :) >>>>> >>>>> http://prdownloads.sourceforge.net/symbiont/NX1.5.0-141_LTSP_0.8.tgz?download >>>>> >>>>> -Gadi >>>>> >>>>> On Tue, 2006-06-06 at 11:32 +0200, Ondrej Valousek wrote: >>>>> >>>>> >>>>> >>>>>> Hi all, >>>>>> >>>>>> I have submitted a support inquiry to Nomachine about this issue and >>>>>> they have just released the nxagent that fixes this problem. >>>>>> Not sure if it is any worth for the FreeNX users, though. >>>>>> >>>>>> My opinion is that we should have some at least minimalistic window >>>>>> manager in LTSP - not only because of nxclient. >>>>>> I have found out, that for example rdesktop is MUCH faster when running >>>>>> from within the WM. >>>>>> >>>>>> I see that thinstation already has some WM - perhaps we could get it >>>>>> from there? >>>>>> >>>>>> Thanks, >>>>>> Ondrej >>>>>> >>>>>> Basil Stotz wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Hello list >>>>>>> >>>>>>> I have the same issue (also with thinstation): The strange thing is, >>>>>>> that >>>>>>> keyboard repeat works with a supended session which is resumed, even >>>>>>> without >>>>>>> wm! >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>> I have the same problem with holding down a key. I am running the >>>>>>>>>>> nxclient on Thinstation so it may not be Gideon's package. I have >>>>>>>>>>> not >>>>>>>>>>> taken the time to research the issue. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> Start Thinstation in a desktop (either blackbox or icewm). The key >>>>>>>>>> repeat only seems to work when Thinstation is started with a window >>>>>>>>>> manager. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>> Basil >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>>> security? >>>>>>> Get stuff done quickly with pre-integrated technology to make your job >>>>>>> easier >>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>>>> Geronimo >>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>> _____________________________________________________________________ >>>>>>> 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 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _____________________________________________________________________ >>>>>> 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> _____________________________________________________________________ >>>> 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 >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _____________________________________________________________________ >>>> 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 >>>> >>>> >> >> _____________________________________________________________________ >> 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 >> >> >> _____________________________________________________________________ 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