Re: HOWTO for PTY98 out there?

H. Peter Anvin (hpa@transmeta.com)
17 Aug 1998 11:53:03 GMT


Followup to: <199808171037.EAA01706@ulf.edgemail.com>
By author: Michael Driscoll <fenris@ulf.edgemail.com>
In newsgroup: linux.dev.kernel
>
> >Is there any preliminary HOWTO for PTY98 out there yet?
> >
> >I have created the /dev/ptmx device and the /dev/pts directory.
> >How do I correctly mount it?
>
> I have the following in my /etc/fstab (as per hpa's suggestion):
>
> none /dev/pts devpts gid=5,mode=0620 1 2
>
> Then I have the following:
>
> avatar@ulf:~[0 ls -l /dev/ptmx
> crw-rw-rw- 1 avatar bofh 5, 2 Aug 8 04:37 /dev/ptmx
>
> and:
>
> avatar@ulf:~[0 ls -ld /dev/pts/
> drwxr-xr-x 2 avatar bofh 0 Aug 16 13:55 /dev/pts//
>
> So far nothing seems to be using it, I'm on a glibc system but
> I think I just don't have anything that uses them yet. (hpa, if
> you're reading this, are the perms ok? Should some of the gids
> be group tty? (avatar == bofh == 0 in the above cases BTW))
> Mike

No, those are fine. The tty's will be created with group tty.
However, you probably should have "0 0" instead of "1 2" in your
fstab; either backing up or fscking /dev/pts is pretty useless...

If you have glibc 2.0.9x (i.e. the 2.1 beta) then you have the Unix98
API; however, then you have to get clients that use that API for it to
work right. However, getting the kernel support in time for 2.2
was key.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html