|
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 lot of <command>telnet</command>, |
| 6294 |
you will probably run out of pseudoterminals. Here is how to |
6294 |
<command>ssh</command>, X, or <command>screen</command> |
| 6295 |
add more:</para> |
6295 |
users, you will probably run out of pseudoterminals. There |
| 6296 |
|
6296 |
is lot of them available in the recent base installations by |
| 6297 |
<procedure> |
6297 |
default, so the chances are low that you will have to |
| 6298 |
<step> |
6298 |
increase their number indeed.</para> |
| 6299 |
<para>Build and install a new kernel with the line in |
|
|
| 6300 |
the configuration file:</para> |
| 6301 |
|
| 6302 |
<programlisting>device pty <replaceable>N</replaceable></programlisting> |
| 6303 |
|
| 6304 |
<para>where <replaceable>N</replaceable> is the number |
| 6305 |
of requested pseudoterminals.</para> |
| 6306 |
</step> |
| 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 |
|
6299 |
|
| 6326 |
<note> |
6300 |
<note> |
| 6327 |
<para>Using more than 256 (up to 512) &man.pty.4; devices requires |
6301 |
<para>If you want to use more than 256 (up to 512) |
| 6328 |
&os; 6.3 or later.</para> |
6302 |
&man.pty.4; devices that will require &os; 6.3 and |
|
|
6303 |
&os; 7.0 or later.</para> |
| 6329 |
</note> |
6304 |
</note> |
|
|
6305 |
|
| 6306 |
<tip> |
| 6307 |
<para>If needed, more pseudoterminals can be added. However, |
| 6308 |
this requires patching the standard C library, the kernel, and |
| 6309 |
<filename>/etc/ttys</filename>. For example, <ulink |
| 6310 |
url="http://www.freebsd.org/~jhb/patches/pty_1152.patch"></ulink> |
| 6311 |
expands the number of pseudoterminals to 1152.</para> |
| 6312 |
</tip> |
| 6330 |
</answer> |
6313 |
</answer> |
| 6331 |
</qandaentry> |
6314 |
</qandaentry> |
| 6332 |
|
6315 |
|