devfs / pts

devfs / pts

Post by Paul Sa » Mon, 08 Jan 2001 23:01:12



I am using devfs and devfsd. This works fine. I want to move everything to use
the new devfs nodenames. This has not been a problem with the exception of the
use of pts's.

With devfsd, xterm's work fine in XF86 3.3. W/o them, I get an error message
that a pts couldn't be opened.

I am not mounting devpts (as the devfs docs suggest). I do *not* want to
upgrade to XF86 4.0 for a variety of unrelated reasons (as the docs do
suggest).

When I stop using devfsd, what do I need to mknod to get xterm's to work? (to
allocate a pts properly)

I am using glibc 2.1.3, BTW.

Thanks.

Paul Sack

--
Death is God's way of telling you not to be such a wise guy.

 
 
 

devfs / pts

Post by Kasper Dupon » Tue, 09 Jan 2001 18:15:58



> I am using devfs and devfsd. This works fine. I want to move everything to use
> the new devfs nodenames. This has not been a problem with the exception of the
> use of pts's.

> With devfsd, xterm's work fine in XF86 3.3. W/o them, I get an error message
> that a pts couldn't be opened.

> I am not mounting devpts (as the devfs docs suggest). I do *not* want to
> upgrade to XF86 4.0 for a variety of unrelated reasons (as the docs do
> suggest).

> When I stop using devfsd, what do I need to mknod to get xterm's to work? (to
> allocate a pts properly)

> I am using glibc 2.1.3, BTW.

> Thanks.

> Paul Sack

> --
> Death is God's way of telling you not to be such a wise guy.

XF86 3.3 or XF86 4.0 does not make any difference, but perhaps
it makes a difference which version of xterm you use.

The pts' are used by xterm and also by many other programs,
even programs like screen which can run without any X server
use pts'. Try stracing a program using pts' with /dev on an
ext2 filesystem and /dev/pts on a devpts filesystem. And try
stracing the same program with the entire /dev hieracy on a
devfs filesystem.

Perhaps the problem has something to do with /dev/ptmx which
is used to create the /dev/pts entries.

--
Kasper Dupont

 
 
 

devfs / pts

Post by Morten B?hme » Thu, 11 Jan 2001 21:28:04


Do any of you know how to correctly setup and make the programs use the pts
system?

--
Med vennlig hilsen/Best Regards,

AdCo Partner AS
Bjellandveien 14 - 3172 VEAR

http://www.veggers.no


> > I am using devfs and devfsd. This works fine. I want to move everything
to use
> > the new devfs nodenames. This has not been a problem with the exception
of the
> > use of pts's.

> > With devfsd, xterm's work fine in XF86 3.3. W/o them, I get an error
message
> > that a pts couldn't be opened.

> > I am not mounting devpts (as the devfs docs suggest). I do *not* want to
> > upgrade to XF86 4.0 for a variety of unrelated reasons (as the docs do
> > suggest).

> > When I stop using devfsd, what do I need to mknod to get xterm's to
work? (to
> > allocate a pts properly)

> > I am using glibc 2.1.3, BTW.

> > Thanks.

> > Paul Sack

> > --
> > Death is God's way of telling you not to be such a wise guy.

> XF86 3.3 or XF86 4.0 does not make any difference, but perhaps
> it makes a difference which version of xterm you use.

> The pts' are used by xterm and also by many other programs,
> even programs like screen which can run without any X server
> use pts'. Try stracing a program using pts' with /dev on an
> ext2 filesystem and /dev/pts on a devpts filesystem. And try
> stracing the same program with the entire /dev hieracy on a
> devfs filesystem.

> Perhaps the problem has something to do with /dev/ptmx which
> is used to create the /dev/pts entries.

> --
> Kasper Dupont

 
 
 

1. devfs and temrinal creation problems (devfs & pts)

You might have problems creating new xterms/kterms/eterms/whatever if
you're using devfs; the problem happens because of the saving and restoring
of permissions of devices in /dev/pts.  To solve this, add the following 3
lines above the geneirc REGISTER/CHANGE/CREATE rules in the /etc/devfs.conf
file (this sollution is borrowed from another post):

REGISTER        ^pts/.*         IGNORE
CHANGE          ^pts/.*         IGNORE
CREATE          ^pts/.*         IGNORE

The post from which this sollution was taken can be found at
http://groups.google.com/groups?q=linux+pts+devfs&num=100&hl=en&safe=...

2. Consolidate asm/ucontext.h for 2.5.39

3. Wrong permissions for /dev/pts/0 and /dev/pts/1

4. finger & security

5. dump pts output to other pts

6. Anonymous FTP setup problem...

7. Why all the pts/0, pts/1, ... on RedHat 7.1 ?

8. Hostname / qPopper

9. devfs (3/7) - cleanup devfs use in ide

10. device driver using devfs on system with not mounted devfs

11. devfs (4/7) - cleanup devfs use in scsi

12. what does /dev/pts means?

13. tty / pts problem: login, telnet, etc hangs