MFen 1.95 -> 1.97
Local revisions: 1.1.1000.2-1.1.1000.3 Obtained from: The FreeBSD Simplified Chinese Project CVS
This commit is contained in:
parent
b72203d49e
commit
5ebb842897
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=24239
1 changed files with 20 additions and 19 deletions
|
|
@ -2,7 +2,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Simplified Chinese Project
|
||||
|
||||
Original Revision: 1.95
|
||||
Original Revision: 1.97
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
|
@ -112,7 +112,7 @@
|
|||
<para>如果需要, 您可以自己做一个null-modem的线缆。
|
||||
下面这个表列出了这个线缆 DB-25 头上的 RS-232C 信号名和引脚标号。</para>
|
||||
|
||||
<informaltable frame="none">
|
||||
<informaltable frame="none" pgwide="1">
|
||||
<tgroup cols="5">
|
||||
<thead>
|
||||
<row>
|
||||
|
|
@ -1650,7 +1650,7 @@ raisechar=^^</programlisting>
|
|||
<indexterm><primary>serial console</primary></indexterm>
|
||||
|
||||
<sect2 id="serialconsole-intro">
|
||||
<title>Introduction</title>
|
||||
<title>介绍</title>
|
||||
|
||||
<para>FreeBSD可以通过一个串口只使用一个哑 (dumb) 终端就可以启动一个系统。
|
||||
这样一种配置只有两种人能使用: 希望在机器上安装 FreeBSD 的系统管理员,
|
||||
|
|
@ -1668,35 +1668,36 @@ raisechar=^^</programlisting>
|
|||
<sect2 id="serialconsole-howto-fast">
|
||||
<title>串行控制台的配置, 简明版</title>
|
||||
|
||||
<para>本节假定您使用默认的配置, 了解如何连接串口,
|
||||
并且希望快速地了解一下串行控制台。 如果您在采取这些步骤时遇到问题,
|
||||
请参考
|
||||
<xref linkend="serialconsole-howto"> 中关于高级设置的详细介绍。</para>
|
||||
<para>这一节假定您使用默认的配置, 只希望迅速地获得关于配置串口控制台的概览。</para>
|
||||
|
||||
<procedure>
|
||||
|
||||
<step>
|
||||
<para>连接串口。 串行控制台将出现在
|
||||
<devicename>COM1</devicename> 上。</para>
|
||||
<para>使用串口电缆连接 COM1 和控制终端。</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>使用 <command>echo -h > /boot.config</command>
|
||||
来启用引导加载器和内核的串口控制台。</para>
|
||||
<para>要在串行控制台上察看启动信息,
|
||||
使用下面的命令 <command>echo "set console=comconsole" >
|
||||
/boot/loader.conf</command>。</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>编辑 <filename>/etc/ttys</filename> 并把 <literal>ttyd0</literal> 的
|
||||
<literal>off</literal> 改为 <literal>on</literal>。
|
||||
这将在串口控制台上启用一个登录提示, 其内容和普通的控制台一样。</para>
|
||||
<literal>off</literal> 改为 <literal>on</literal>,
|
||||
<literal>dialup</literal> 改为 <literal>vt100</literal>。
|
||||
否则通过串行控制台上将不会提示输入口令,
|
||||
从而导致潜在的安全漏洞。</para>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para><command>shutdown -r now</command> 将重启系统并启用串行控制台。</para>
|
||||
<para><para>重新启动并观察是否生效。</para>
|
||||
</step>
|
||||
|
||||
</procedure>
|
||||
|
||||
<para>如果需要不同的配置, 更进一步的配置讨论可以在
|
||||
<xref linkend="serialconsole-howto"> 找到。</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="serialconsole-howto">
|
||||
|
|
@ -1895,8 +1896,8 @@ Keyboard: no</screen>
|
|||
中并指出键盘存在或不存在, 那将只出现第二行。
|
||||
这些信息会被定位到串口或内部控制台, 或两者同时, 这完全取决于
|
||||
<filename>/boot.config</filename> 中的选项。</para>
|
||||
|
||||
<informaltable frame="none">
|
||||
|
||||
<informaltable frame="none" pgwide="1">
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
|
|
@ -1976,7 +1977,7 @@ boot:</screen>
|
|||
|
||||
<programlisting>device sio0 at isa? port IO_COM1 flags 0x10 irq 4</programlisting>
|
||||
|
||||
<informaltable frame="none">
|
||||
<informaltable frame="none" pgwide="1">
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
|
|
@ -2038,8 +2039,8 @@ boot:</screen>
|
|||
<title>例2:您为sio0设置标记为0x30</title>
|
||||
|
||||
<programlisting>device sio0 at isa? port IO_COM1 flags 0x30 irq 4</programlisting>
|
||||
|
||||
<informaltable frame="none">
|
||||
|
||||
<informaltable frame="none" pgwide="1">
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue