Update Question 10.18:
- Rewrite "lots of" as "lot of" (suggested by trhodes) - Mark up telnet, ssh, screen with <command> - 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
This commit is contained in:
parent
c6e8387505
commit
bb3746e44a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32334
1 changed files with 16 additions and 19 deletions
|
@ -6234,39 +6234,31 @@ options SYSVMSG # enable for messaging</programlisting>
|
|||
|
||||
<answer>
|
||||
|
||||
<para>If you have lots of telnet, ssh, X, or screen users,
|
||||
<para>If you have lot of <command>telnet</command>, <command>ssh</command>, X, or <command>screen</command> users,
|
||||
you will probably run out of pseudoterminals. Here is how to
|
||||
add more:</para>
|
||||
|
||||
<procedure>
|
||||
<step>
|
||||
<para>Build and install a new kernel with the line</para>
|
||||
<para>Build and install a new kernel with the line in
|
||||
the configuration file:</para>
|
||||
|
||||
<programlisting>pseudo-device pty 256</programlisting>
|
||||
|
||||
<para>in the configuration file.</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Run the commands</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>cd /dev</userinput>
|
||||
&prompt.root; <userinput>sh MAKEDEV pty{1,2,3,4,5,6,7}</userinput></screen>
|
||||
|
||||
<para>to make 256 device nodes for the new terminals.</para>
|
||||
<programlisting>device pty <replaceable>N</replaceable></programlisting>
|
||||
|
||||
<para>where <replaceable>N</replaceable> is the number
|
||||
of requested pseudoterminals.</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Edit <filename>/etc/ttys</filename> and add lines
|
||||
for each of the 256 terminals. They should match the form
|
||||
of the existing entries, i.e. they look like</para>
|
||||
for each of the <replaceable>N</replaceable> terminals. They should match the form
|
||||
of the existing entries, i.e. they look like this:</para>
|
||||
|
||||
<programlisting>ttyqc none network</programlisting>
|
||||
|
||||
<para>The order of the letter designations is
|
||||
<literal>tty[pqrsPQRS][0-9a-v]</literal>, using a
|
||||
regular expression. </para>
|
||||
<literal>tty[pqrsPQRSlmnoLMNO][0123456789abcdefghijklmnopqrstuv]</literal>, using a
|
||||
regular expression.</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
|
@ -6274,7 +6266,12 @@ options SYSVMSG # enable for messaging</programlisting>
|
|||
ready to go.</para>
|
||||
</step>
|
||||
</procedure>
|
||||
</answer>
|
||||
|
||||
<note>
|
||||
<para>Using more than 256 (up to 512) &man.pty.4; devices requires
|
||||
&os; 6.3 or later.</para>
|
||||
</note>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
<qandaentry>
|
||||
|
|
Loading…
Reference in a new issue