On Thu, Oct 03, 2002 at 09:32:05AM +0200, Hans Ekbrand wrote:
> On Thu, Oct 03, 2002 at 02:46:05AM +0100, Mikkel C. Simonsen wrote:
> > Is it possible to run two X-sessions simultaniously on some terminals?
> 
> Yes, see the tread from March 30 2002 "Multiple XDM sessions on the
> server".

On a second thought, that thread gives some hints, but probably not
enough. You will have to edit /opt/ltsp/i386/etc/inittab and add lines
like the ones mentioned in the thread a refered to (use X with the
-query) argument.

Here is my inittab. My comments in []
--------------------------------------

# initdefault should be set to '2'.  For control of
# the runlevel for individual workstations, use the
# RUNLEVEL option in the lts.conf file.

[So redefine one runlevel, say runlevel 4, to have multiple sessions
available at different vts, and put a RUNLEVEL = 4 statement in those
terminals sections in lts.conf]

id:2:initdefault:
si::sysinit:/bin/sh /etc/rc.local
0:2:once:/bin/set_runlevel

1:3:respawn:/bin/startsess tty1 /bin/bash --login
2:3:respawn:/bin/startsess tty2 /bin/bash --login

8:4:respawn:/bin/start_telnet
[remove the line above and exchange with something like this:
8:4:respawn:/tmp/start_ws]

9:45:respawn:/tmp/start_ws

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/halt -f

#
# Start the printers
#
a:345:respawn:/bin/start_printer 0
b:345:respawn:/bin/start_printer 1
c:345:respawn:/bin/start_printer 2

--------------------------------------

If it does not work, you will have to specify the screen number for X,
probably by changing /tmp/start_ws to accept one argument, the screen
number.

X :1 -query [server-name-goes-here]

where :1 is the the screen number.

If you do that, then the lines in inittab should be

9:45:respawn:/tmp/start_ws :0
8:4:respawn:/tmp/start_ws :1

All of this is untested, so no my tips comes with ABSOLUTELY NO
WARRANTY.

-- 

Hans Ekbrand

Attachment: msg08352/pgp00000.pgp
Description: PGP signature

Reply via email to