You have to set initdefault of your /opt/ltsp/i386/etc/inittab file to '2'

    id:2:initdefault:

and also set your RUNLEVEL equal to 3 in your lts.conf file

    RUNLEVEL=3


then add also the following to the LTSP's inittab file

    1:3:respawn:/bin/startsess tty1 /bin/bash --login
    2:3:respawn:/bin/startsess tty2 /bin/bash --login
    3:3:respawn:/bin/startsess tty3 /bin/bash --login
    4:3:respawn:/bin/startsess tty4 /bin/bash --login
    5:3:respawn:/bin/startsess tty5 /bin/bash --login

then when the ws is up at your tty1 screen type 'sh /tmp/start_ws' this
should start an X session at tty6 <ctr-alt-f6>
then to start another X session press 'ctrl-alt-f2 ' then at the bash promt
type 'ps' this should return you a long listing which include something like

        /usr/X11R6/bin/XF86_SVGA -ac -query <ip-address-of-server>

in this case I use XF86_SVGA server (use whatever X server you are using)

then at the bash prompt type the following

     /usr/X11R6/bin/XF86_SVGA :1 -ac -query <ip-address-of-server>

    * note the presence of ":1" after the XF86_SVGA

this should start another X session this time at tty7 <ctr-alt-f7>

to start another X session (the 3rd X session) press 'ctr-alt-f3'

then repeat the command above but this time use ':2' after the XF86_SVGA

and so on


Hope This Help
jon







----- Original Message -----
From: "Prakash Advani" <[EMAIL PROTECTED]>
To: "jon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 27, 2002 6:07 PM
Subject: virtual x terminals


> Thanks for all the help. Do you know how I could run multiple x
> terminals on a single machine? So I could switch to differnet X sessions
> from CTRL-Alt F1, F2, etc.
>
> I am doing this to simulate 5 clients on one machine to test the load.
>
> Regards
> Prakash
>
> jon wrote:
> > I've done this before on the previous version of LTSP (2.07). and tried
it
> > on V3.0 and works perfectly
> >
> > This is what I've done
> >
> > /opt/ltsp/i386/etc/inittab
> >
> >     #
> >     # initdefault should be set to '2'.  For control of
> >     # the runlevel for individual workstations, use the
> >     # RUNLEVEL option in the lts.conf file.
> >     #
> >     id:5:initdefault:
> >     si::sysinit:/bin/sh /etc/rc.local
> >     0:2:once:/bin/set_runlevel
> >
> >     1:35:respawn:/bin/open -c 1 -w -- /bin/telnet_loop 192.168.28.35
> >     2:35:respawn:/bin/open -c 2 -w -- /bin/telnet_loop 192.168.28.35
> >     3:35:respawn:/bin/open -c 3 -w -- /bin/telnet_loop 192.168.28.35
> >     4:35:respawn:/bin/open -c 4 -w -- /bin/telnet_loop 192.168.28.35
> >     5:35:respawn:/bin/open -c 5 -w -- /bin/telnet_loop 192.168.28.35
> >     6:35:respawn:/bin/open -c 6 -w -- /bin/telnet_loop 192.168.28.35
> >
> >     8:4:respawn:/bin/start_telnet
> >     9:5:respawn:/tmp/start_ws
> >
> >     #
> >     # Start the printers
> >     #
> >     a:345:respawn:/bin/start_printer 0
> >     b:345:respawn:/bin/start_printer 1
> >     c:345:respawn:/bin/start_printer 2
> >
> >
> >
> > at /opt/ltsp/i386/bin/telnet_loop file, comment out the line that says
> >
> >         echo -n "${TTY}, Press <enter> to establish a connection to the
> > server..."
> >         read CMD
> >
> > this is for the "Press <enter> to establish a connection to the
server.."
> > information to not appear when telnet begins
> >
> >
> >
> > Hope This Helps
> > Jon
> >
> >
> >
> >



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_____________________________________________________________________
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.openprojects.net

Reply via email to