|
Lines 6290-6332
Link Here
|
| 6290 |
|
6290 |
|
| 6291 |
<answer> |
6291 |
<answer> |
| 6292 |
|
6292 |
|
| 6293 |
<para>If you have lot of <command>telnet</command>, <command>ssh</command>, X, or <command>screen</command> users, |
6293 |
<para>If you have a lot of telnet, ssh, X, or screen users, |
| 6294 |
you will probably run out of pseudoterminals. Here is how to |
6294 |
you might run out of pseudoterminals. By default, |
| 6295 |
add more:</para> |
6295 |
&os; 6.2 and earlier support 256 pseudoterminals, while |
|
|
6296 |
&os; 6.3 and later support 512 pseudoterminals.</para> |
| 6296 |
|
6297 |
|
| 6297 |
<procedure> |
6298 |
<tip> |
| 6298 |
<step> |
6299 |
<para>If needed, more pseudoterminals can be added. |
| 6299 |
<para>Build and install a new kernel with the line in |
6300 |
However, this requires patching the standard C library, |
| 6300 |
the configuration file:</para> |
6301 |
the kernel, and <filename>/etc/ttys</filename>. For |
| 6301 |
|
6302 |
example, <ulink |
| 6302 |
<programlisting>device pty <replaceable>N</replaceable></programlisting> |
6303 |
url="http://www.freebsd.org/~jhb/patches/pty_1152.patch"></ulink> |
| 6303 |
|
6304 |
expands the number of pseudoterminals to 1152. Note that |
| 6304 |
<para>where <replaceable>N</replaceable> is the number |
6305 |
the patch will only apply cleanly to &os; 6.3 or |
| 6305 |
of requested pseudoterminals.</para> |
6306 |
later.</para> |
| 6306 |
</step> |
6307 |
</tip> |
| 6307 |
|
|
|
| 6308 |
<step> |
| 6309 |
<para>Edit <filename>/etc/ttys</filename> and add lines |
| 6310 |
for each of the <replaceable>N</replaceable> terminals. They should match the form |
| 6311 |
of the existing entries, i.e. they look like this:</para> |
| 6312 |
|
| 6313 |
<programlisting>ttyqc none network</programlisting> |
| 6314 |
|
| 6315 |
<para>The order of the letter designations is |
| 6316 |
<literal>tty[pqrsPQRSlmnoLMNO][0123456789abcdefghijklmnopqrstuv]</literal>, using a |
| 6317 |
regular expression.</para> |
| 6318 |
</step> |
| 6319 |
|
| 6320 |
<step> |
| 6321 |
<para>Reboot the system with the new kernel and you are |
| 6322 |
ready to go.</para> |
| 6323 |
</step> |
| 6324 |
</procedure> |
| 6325 |
|
| 6326 |
<note> |
| 6327 |
<para>Using more than 256 (up to 512) &man.pty.4; devices requires |
| 6328 |
&os; 6.3 or later.</para> |
| 6329 |
</note> |
| 6330 |
</answer> |
6308 |
</answer> |
| 6331 |
</qandaentry> |
6309 |
</qandaentry> |
| 6332 |
|
6310 |
|