Re: Multiple X Sessions on OSR 6

From: Bob Stockler (bob_at_trebor.iglou.com)
Date: 10/23/05


Date: 22 Oct 2005 21:02:06 -0400

Jean-Pierre Radley wrote (on Sat, Oct 22, 2005 at 06:41:09PM -0400):

| Bob Stockler typed (on Wed, Oct 19, 2005 at 08:26:02PM -0400):
| |
| | #!/bin/ksh
| | # @(#) xstart - Start X using the lowest unused session number.
| | integer i j ; cd /tmp ; set -A xs .X*-lock ; cd -
| | for i in 0 1 2 3 4 5 6 7 8 9
| | do session=${xs[$i]} ; session=${session#".X"}
| | session=${session%"-lock"} ; j=$session
| | (( i != j )) && {
| | echo "exec /usr/bin/startx -- :$i"
| | exec /usr/bin/startx -- :$i
| | }
| | done
|
| It fails syntacticly if NO X-session is running at all, and
| it also fails here for me if session 0 is running, with:
|
| exec /usr/bin/startx -- :1
|
| Fatal server error:
| Server is already active for display 0
| If this server is no longer running, remove /tmp/.X0-lock
| and start again.
|
| I get the same error if I just type 'startx -- :5'.

Yeah, and command line startx fails with me in various ways.

I'm happy with it, but I don't think OSR 6 is ready for Prime Time.

The display you fixed for me on my console I like (as user "bob").

However, after it's in place, other startx as user "root" work
sometimes, others not - most often failing with an error message
saying that /dev/mouse can't be opened.

Sometimes after I've started VNC, sometimes before.

Sometimes I can get two X sessions running, sometimes not (doing
a reboot between tests sometimes). When I get a second running,
I can't close it down within that second session - I have to go
to the first one and send an HUP to the login of the second one.

There's work to be done, but I'm a happy camper.

Bob

-- 
Bob Stockler  +-+  bob@trebor.iglou.com  +-+  http://members.iglou.com/trebor
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


Relevant Pages

  • Re: Multiple X Sessions on OSR 6
    ... | Bob Stockler wrote: ... and command line startx fails with me in various ways. ... | session, X will start and give me the grey stippled background but no ...
    (comp.unix.sco.misc)
  • Re: Multiple X Sessions on OSR 6
    ... and command line startx fails with me in various ways. ... session, X will start and give me the grey stippled background but no ... The second problem I see is, upon issuing the startx command, it ...
    (comp.unix.sco.misc)
  • CreateProcessAsUser from service fails with 233 (FUS, Windows XP)
    ... screen) it fails with error 233. ... Logon as console user (session 0) ... OpenProcessToken("Winlogon.exe on active session") + ... DuplicateTokenEx + SetTokenInformation. ...
    (microsoft.public.platformsdk.security)
  • Re: Problem with Session_End in Global.asax
    ... already been lost and therefore User.Identidy fails. ... that the counter that you decrement is before the code that accesses ... handler:(This is an instance method that performs an update stored procedure ... > when the session timeout occurs after 1 min, ...
    (microsoft.public.dotnet.framework.aspnet)