Devpts

Michael Konrad mkonrad at syr.edu
Wed Jun 28 21:23:50 PDT 2000


Right now my system is part 2.3.4 and part 2.3.5b. I will have to go back
through and add the groups.

-Michael

"Thomas T. Veldhouse" wrote:

> The ttys need to be set to the same owner as the gid used to mount /dev/pts.
> That is why you could not get a prompt - it tried to use the new device
> /dev/pts/0.
>
> If you followed the book, you would have a tty in your group file.  It is
> but an exercise to go and find it in the book.
>
> I am using /dev/pts at home on my LFS without any problems - and I
> configured it via a telnet connection.
>
> [root at cascade veldy]# who
> veldy    pts/0    Jun 28 13:41
>
> Tom Veldhouse
> veldy at veldy.net
>
> ----- Original Message -----
> From: Michael Konrad <mkonrad at syr.edu>
> To: <lfs-discuss at linuxfromscratch.org>
> Sent: Wednesday, June 28, 2000 2:15 PM
> Subject: Re: Devpts
>
> > I don't have group 5 tty on my lfs system but I tried it with just the
> mode. I
> > did not get any error messages when mounting devpts, but my system hangs
> and
> > there is no login prompt.
> >
> > When I put the tty's in dev I get a login prompt.
> >
> > -Michael
> >
> >
> > "Thomas T. Veldhouse" wrote:
> >
> > > I found it.  My previous answer was incomplete:
> > >
> > > Compile your kernel with CONFIG_UNIX98_PTYS and CONFIG_DEVPTS_FS.
> > > mknod /dev/ptmx c 5 2
> > > chmod 666 /dev/ptmx
> > > mkdir /dev/pts
> > >
> > > Add to /etc/fstab:
> > > none            /dev/pts        devpts gid=5,mode=620    0 0
> > >
> > > -   (Note:  gid=5 is applicable for Red Hat systems for which group
> "tty"
> > > has
> > > -   gid 5.  Adjust according to your distribution.  Use mode=600 if you
> want
> > > -   "mesg n" to be default.)
> > >
> > > mount /dev/pts
> > >
> > > Tom Veldhouse
> > > veldy at veldy.net
> > >
> > > ----- Original Message -----
> > > From: Gerard Beekmans <gerard at linuxfromscratch.org>
> > > To: <lfs-discuss at linuxfromscratch.org>
> > > Sent: Wednesday, June 28, 2000 11:17 AM
> > > Subject: Re: Devpts
> > >
> > > >
> > > >
> > > > > Has anyone looked into using devpts for consoles? What I don't
> > > > > understand is that in the devices.txt it says that tty is obsoleted,
> but
> > > > > it doesn't tell you how to use/change inittab so agetty/getty uses
> > > > > /dev/pts.
> > > >
> > > > I believe agetty has to be compiled to use Unix98 PTY's instead of the
> > > > old obsolete tty's. Not sure how to do that though, never got around
> to
> > > > do that.
> > > >
> > > > --
> > > > Gerard Beekmans
> > > > www.linuxfromscratch.org
> > > >
> > > > -*- If Linux doesn't have the solution, you have the wrong problem -*-
> > > > --
> > > > Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> > > > IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> > > > Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> > > > "unsubscribe" (without the quotation marks) in the body of the message
> > > > (no subject is required)
> > > >
> > >
> > > --
> > > Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> > > IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> > > Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> > > "unsubscribe" (without the quotation marks) in the body of the message
> > > (no subject is required)
> >
> > --
> > Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> > IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> > Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> > "unsubscribe" (without the quotation marks) in the body of the message
> > (no subject is required)
> >
>
> --
> Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> "unsubscribe" (without the quotation marks) in the body of the message
> (no subject is required)

--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)



More information about the lfs-dev mailing list