From bb3746e44a01294f0f61964e8b57d2ba8dd8388b Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sat, 21 Jun 2008 07:37:52 +0000 Subject: [PATCH] Update Question 10.18: - Rewrite "lots of" as "lot of" (suggested by trhodes) - Mark up telnet, ssh, screen with - Fix broken paragraphs (suggested by gabor) - Remove MAKEDEV(8) method - Update "pseudo-device" kernel option to "device" - Generalize answer - Note users have 256 ptys beginning from FreeBSD 6.3 and they can create 256 more Reviewed by: trhodes, danger Approved by: gabor --- en_US.ISO8859-1/books/faq/book.sgml | 35 +++++++++++++---------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/en_US.ISO8859-1/books/faq/book.sgml b/en_US.ISO8859-1/books/faq/book.sgml index 9a27832a1f..aa0ae60c49 100644 --- a/en_US.ISO8859-1/books/faq/book.sgml +++ b/en_US.ISO8859-1/books/faq/book.sgml @@ -6234,39 +6234,31 @@ options SYSVMSG # enable for messaging - If you have lots of telnet, ssh, X, or screen users, + If you have lot of telnet, ssh, X, or screen users, you will probably run out of pseudoterminals. Here is how to add more: - Build and install a new kernel with the line + Build and install a new kernel with the line in + the configuration file: - pseudo-device pty 256 - - in the configuration file. - - - - Run the commands - - &prompt.root; cd /dev -&prompt.root; sh MAKEDEV pty{1,2,3,4,5,6,7} - - to make 256 device nodes for the new terminals. + device pty N + where N is the number + of requested pseudoterminals. 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 + for each of the N terminals. They should match the form + of the existing entries, i.e. they look like this: ttyqc none network The order of the letter designations is - tty[pqrsPQRS][0-9a-v], using a - regular expression. + tty[pqrsPQRSlmnoLMNO][0123456789abcdefghijklmnopqrstuv], using a + regular expression. @@ -6274,7 +6266,12 @@ options SYSVMSG # enable for messaging ready to go. - + + + Using more than 256 (up to 512) &man.pty.4; devices requires + &os; 6.3 or later. + +