Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Dec 2003 11:00:23 +1100
From:      "DG" <david@fielden.com.au>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: Out of pty's
Message-ID:  <00e701c3bac2$c875c910$5401a8c0@borg.fielden.com.au>
In-Reply-To: <20031204234617.GA26692@users.munk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Jez Hancock
> Sent: Friday, 5 December 2003 10:46 AM
> To: freebsd-questions@freebsd.org
> Subject: Re: Out of pty's
>
>
> On Thu, Dec 04, 2003 at 03:25:54PM -0800, Justin Burke wrote:
> > /etc/ttys lists a ton of pseudo terminals, which is great. However,
> > after opening up 32 pseudo terminals (/dev/ptyp[0-9] and
> > /dev/ptyp[a-v]]), none of the other terminals are used (eg.
> /dev/ptyq*).
> > How do I get the system to start using those devices?
> Sorry to hear that - I've never gotten that many ttys used up :P  I
> could try it now I suppose with screen...
>
> Mmm I see what you mean, I get up to ttypv as well and then
> it complains
> no more ttys :(
>
> Sorry I'm not sure about that then... anyone else know?
>
> --
> Jez Hancock
>  - System Administrator / PHP Developer

This is covered in the FAQ:

10.19. How do I add pseudoterminals to the system?

   If you have lots of telnet, ssh, X, or screen users, you will probably
run
   out of pseudoterminals. Here is how to add more:

    1. Build and install a new kernel with the line

 pseudo-device pty 256

       in the configuration file.

    2. Run the commands

 # cd /dev
 # sh MAKEDEV pty{1,2,3,4,5,6,7}

       to make 256 device nodes for the new terminals.

    3. Edit /etc/ttys and add lines for each of the 256 terminals. They
       should match the form of the existing entries, i.e. they look like

 ttyqc none network

       The order of the letter designations is tty[pqrsPQRS][0-9a-v], using
a
       regular expression.

    4. Reboot the system with the new kernel and you are ready to go.

Dave



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00e701c3bac2$c875c910$5401a8c0>