[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Whats happened to my psuedo ttys



On Tue, 2007-04-17 at 22:30 +0100, Alan Chandler wrote:
> On Tuesday 17 April 2007 22:13, Greg Folkert wrote:
> > On Tue, 2007-04-17 at 21:48 +0100, Alan Chandler wrote:
> > > On Tuesday 17 April 2007 14:07, Greg Folkert wrote:
> > > > On Tue, 2007-04-17 at 07:12 +0100, Alan Chandler wrote:
> > > > > On Monday 16 April 2007 22:29, Alan Chandler wrote:
> > > > > > I've just upgraded my Debian Sid system, and now when I try
> > > > > > and start konsole (in KDE) it fails saying it is unable to
> > > > > > open a PTY.
> > > > > >
> > > > > > Is this a udev problem or something else?
> > > > >
> > > > > I presume by the deafening silence that this isn't a problem
> > > > > that is hitting everyone else out there.
> > > > >
> > > > > Can someone at least tell me which init script is supposed to
> > > > > set up the psuedo ttys so I can try and figure out why it isn't
> > > > > happening.
> > > >
> > > > It isn't an init script. udev dynamically creates these.
> > > >
> > > > As I open new consoles in XFce, I find that with one terminal
> > > > open, I get one device in /dev/pts/. If I open 2, I have two
> > > > devices in /dev/pts/.
> > > >
> > > > If I open 30 terminals, I get 30 devices. I just tried it.
> > > >
> > > > I actually looked for evidence that it is a udev problem or a
> > > > konsole problem. I installed konsole, had zero problems, I got
> > > > nothing for you on this one. I used gnome-terminal, same thing.
> > > > xterm, same thing.
> > > >
> > > > konsole v3.5.5a.dfsg.1-6
> > > > xterm v225-1
> > > > gnome-terminal v2.18.0-1
> > > > udev v0.105-4
> > > > hal v0.5.8.1-9
> > > > linux-image linux-image-2.6.20-1-k7 v2.6.20-2~snapshot.8442
> > > >
> > > > In /etc/udev/permissions.rules I have this:
> > > >
> > > >         KERNEL=="pty*", MODE="0666", GROUP="tty"
> > > >
> > > > In /etc/udev/run.rules
> > > >
> > > >         KERNEL=="pty*", OPTIONS+="last_rule"
> > > >
> > > > I'd have to think that would be all that is needed.
> > >
> > > I have just those rules.  But what devices does it create in /dev?
> > > I have /dev/ptmx and a directory /dev/pts (with nothing in it). 
> > > The directory is owned by root.root with access rights 755.  This
> > > maybe the problem - can you tell me what yours are.
> >
> > ls -l /dev/ptmx
> > crw-rw-rw- 1 root root      5,   2 2007-04-17 16:51 /dev/ptmx
> >
> > ls -ld /dev/pts
> > drwxr-xr-x 2 root root           0 2007-04-13 08:39 /dev/pts
> 
> Got those
> 
> >
> > ls -l /dev/pts/1
> > crw--w---- 1 greg tty 136, 1 2007-04-17 16:57 /dev/pts/1
> 
> Not this
[snip]

You wouldn't have this as I had a XFce Terminal open just to have
something there.

Personally, I am not aware of anything.

On the off chance, can you do "ALT+F2" and run "konsole --ls" which
starts it with a login shell rather than a regular shell? This may help
separate from udev and other stuff.
-- 
greg, greg@gregfolkert.net

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: