Rob Owens wrote:
> Kai Wollweber wrote:
>   
>> Am Freitag, 24. August 2007 17:10 schrieb José Queiroz:
>>   
>>     
>>> Hummm... errr... have you ever thought about swapping screen_01 and
>>> screen_02, so rdesktop comes out on screen_01, on the selected
>>> clients? It's easy to do that, said:
>>>
>>> [Rdestop_Default]
>>> SCREEN_01 = rdesktop
>>> SCREEN_02 = startx
>>>
>>> [X_Default]
>>> SCREEN_01 = startx
>>> SCREEN_02 = rdesktop
>>>
>>>     
>>>       
>> Jose wants X11 on SCREEN_01 on all machines:
>>   
>>     
>>>>  I'd prefer to have it so that Ctrl-Alt-F1 always gives me
>>>> Linux, and Ctrl-Alt-F2 always gives me Windows.
>>>>       
>>>>         
>> IMHO your proposal would not work. We have X11 on SCREEN_01 and rdesktop on 
>> SCREEN_02, but X11 is not the default desktop. The workstations randomly 
>> show 
>> X11 or Windows login at startup. iI depends on which server responds quicker.
>>     
> I've run into that issue as well.  I've been able to guarantee that
> Linux comes up first by un-commenting the following lines in
> /opt/ltsp/i386/etc/screen.d/rdesktop
>
> echo -n "   Press <enter> to Login to Windows"
> read
>
> I wonder if I could put something similar in the startx script, but
> rename it startx.wait so that I can set SCREEN_01 to either startx or
> startx.wait, and the same with SCREEN_02 and rdesktop or rdesktop.wait
>
> I had a look at the startx script, and I'm not sure where would be an
> appropriate place to put the 'read' line.  Anybody know?
>
> -Rob
>   
I created a startx.wait script, which is the same as the startx script
with the following modification.  It contains the lines: 

echo -n "   Press <enter> to Login to Windows"
read

after the "DISABLE_ACCESS_CONTROL" section and immediately before line:
"if [ "${XF_ARGS}" = "" ]; then

I'm not sure if that's the ideal place for it, but it works.  The boot
process pauses at "Building the xorg configuration file" (The wording
might not be exact, I'm going from memory).

So if I want a client to see Windows first, I set one screen to rdesktop
and the other to startx.wait.  If I want a client to see Linux first, I
set one screen to rdesktop.wait and the other to startx.  It does not
matter which is assigned to SCREEN_01.

-Rob

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_____________________________________________________________________
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