[comp.windows.x] failed to bring up xterm.

awang@teknowledge-vaxc.ARPA (Alice Wang) (06/17/88)

I've been having problem to run xterm lately which used to work properly.
The error message I got is "xterm: Not enough available pty's".  
Does anyone out there who might know what went wrong ?

Any info. is appreciated.

Note: I'm running XV11R2 on Apollo 9.7.

-Alice-

jec@iuvax.cs.indiana.edu (James E. Conley) (06/17/88)

	Surprisingly enough this error message is probably correct.
You should do the following:

% cd /dev
% /etc/crpty 16

	This will make sure that you have 16 pty's.  Be sure to do
this again when you upgrade the operating system (unless SR10 happens
to not have this wart).

    III			Usenet:     iuvax!jec
UUU  I  UUU		ARPANet:    jec@iuvax.cs.indiana.edu
 U   I   U		Phone:      (812) 335-7729
 U   I   U		U.S. Mail:  Indiana University
 U   I   U			    Dept. of Computer Science
  UUUIUUU			    021-E Lindley Hall
     I				    Bloomington, IN. 47405
    III (Home of Bob Knight and the Indiana Hoosiers)

kjartan@raunvis.UUCP (Kjartan Pierre Emilsson Jardedlisfraedi) (06/21/88)

awang@teknowledge-vaxc.ARPA (Alice Wang), writes:

 >I've been having problem to run xterm lately which used to work properly.
 >The error message I got is "xterm: Not enough available pty's".  
 >Does anyone out there who might know what went wrong ?

  I've run into this problem to, and the reason (?) was that somehow
all the pty files in /dev inherited the ID ( and ownership ) of the 
last user who opened them.  That is, if the previous user had opened
for example 10 windows, there were 10 pty files which had  his ID,
and which I therefore couldn't open.  I fixed it then by opening lots
of old xterms ( I was trying to run the new one ), which changed all
the pty's ownership to my ID.  Either this is a bug in the new xterm
or it must be initially set up by super-user ( I was running xterm 
from my home bin directory ).  Strangely enough this hasn't happened
again, so I haven't investigated this more closely, but this might be it.

			       -Kjartan-

P.S: Thanks to everybody for the answers regarding color table issues.  They shed
     some light on the darker corners of the Xlib manual I have ( the
     very first and most primitive that exists I believe).


...........................................................................    

    "If you don't like what your left hemisphere thinks, shoot if off."

			Kjartan Pierre Emilsson, Iceland.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~