From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 18:56:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6460116A4CE for ; Thu, 4 Dec 2003 18:56:50 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 907D643F3F for ; Thu, 4 Dec 2003 18:56:48 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp136-184.lns1.adl2.internode.on.net [150.101.136.184])hB52uXEq072968; Fri, 5 Dec 2003 13:26:34 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: "DG" , Date: Fri, 5 Dec 2003 13:26:33 +1030 User-Agent: KMail/1.4.3 References: <00e701c3bac2$c875c910$5401a8c0@borg.fielden.com.au> In-Reply-To: <00e701c3bac2$c875c910$5401a8c0@borg.fielden.com.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200312051326.33419.malcolm.kay@internode.on.net> Subject: Re: Out of pty's X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2003 02:56:50 -0000 On Fri, 5 Dec 2003 10:30, DG wrote: > > -----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 probab= ly > 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 > I believe this may be out of date. I think the kernel may now produce 256 by default -- I'm on 4.7-STABLE and more than 32 exist for me= =2E > # cd /dev > # sh MAKEDEV pty{1,2,3,4,5,6,7} > > to make 256 device nodes for the new terminals. > On 4.x certainly need this to create more devices. I don't know if you ne= ed to=20 do something with devfs in 5.x, but 5.x doesn't have MAKEDEV. > 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 li= ke > > ttyqc none network > > The order of the letter designations is tty[pqrsPQRS][0-9a-v], u= sing > a > regular expression. I found these already in my default ttys > > 4. Reboot the system with the new kernel and you are ready to go. > > Dave Malcolm