Has DISPLAY number an upperlimit ?

Has DISPLAY number an upperlimit ?

Post by Rob Lahay » Thu, 27 May 1999 04:00:00



Hi all,

[ My system: Red Hat 6.0, Pentium II 350 MHz, 64 Mb ram ]

I use startx usually with a display-number parameter:

  startx -- :3

Increasing the number up to 10 works in my case.
11 and up have a problem:

AUDIT: Wed May 26 17:20:10 1999: 5637 Xwrapper: client 1 rejected from local
host
Xlib: connection to ":11.0" refused by server
Xlib: Client is not authorized to connect to Server

What sort of authorization is happening for Xlib?
Is there an upperlimit for display number?
   (startx -- :25 ???)

Thanks,

Rob.

 
 
 

Has DISPLAY number an upperlimit ?

Post by DonJ » Fri, 28 May 1999 04:00:00



> Hi all,

> [ My system: Red Hat 6.0, Pentium II 350 MHz, 64 Mb ram ]

> I use startx usually with a display-number parameter:

>   startx -- :3

> Increasing the number up to 10 works in my case.
> 11 and up have a problem:

> AUDIT: Wed May 26 17:20:10 1999: 5637 Xwrapper: client 1 rejected from local
> host
> Xlib: connection to ":11.0" refused by server
> Xlib: Client is not authorized to connect to Server

> What sort of authorization is happening for Xlib?
> Is there an upperlimit for display number?
>    (startx -- :25 ???)

> Thanks,

> Rob.

Study the file /usr/bin/X11/startx and you may see the problem.
 There is some lines like the following

  case "$1" in
   :[0-9]) display="$1"
    ;;
  esac

 The fix is simple add a + at the right place.
   :[0-9]+) display="$1"

What this does is change the regular expression for matching only a
colon followed by a diget to a colon followed by one or more digets.

 After the above change you can go until you run out of 'pty's or
whatever.

--
 -----------------------
  Don E. Groves, Jr.
  my Email is jetnick AT erols DOT com

  I'll add a witty saying here later.

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

 
 
 

1. Having some problems with Multiple color displays

I have the .99pl6 SLS distrubution, and this is my problem:
I can have as many displays as I have free VT's, but I can only have one in
color. If a start an X server and one is already running I get an error
message that says "Couldn't open RGB_DB '/usr/X386/lib/X11/rgb'." It says
this regardless of what 'rgbpath' is in Xconfig. I tried:

rgbpath    "/usr/X386/lib/X11/rgb.txt"
   and
rgbpath    "/home/ljb/rgb.txt"  

It made no difference if the file was there or not, and it didn't change the
error message at all.

It seems that 'rgbpath' is totally ignored all the time. I have not been
able to (in any cirumstances) been able to change the behavior of anything
by changing rgbpath. If I start an X server and then staer two more they
come op in black and white. If I terminate the first X server and then start
another, it works perfectly.

Any help would be greatly appreciated.
Thanks,
Larry

2. printing part of POSTSCRIPT file:how?

3. Display articles having to do only with certain subjects?

4. Access to the original command line?

5. nat'ed gatway having problems displaying certain webpages

6. limit connected users for a ftp server ?

7. Having some display probs with Pcomm

8. Fetchmail multidrop problem

9. ZIP100 not having correct major or minor number

10. Having your path displayed as your Unix prompt

11. remote X display: Why do I keep having to run xhost?

12. ifconfig displays only one Base address although having 2 Nics.

13. having your machine start up in a display other than :0