handbook:
basics/chapter.sgml 1.150 -> 1.151 [1] desktop/chapter.sgml 1.74 -> 1.74 [1] install/chapter.sgml 1.385 -> 1.385 multimedia/chapter.sgml 1.128 -> 1.128 [1] ports/chapter.sgml 1.268 -> 1.268 [1] security/chapter.sgml 1.316 -> 1.316 Obtained from: The FreeBSD Simplified Chinese Project Language improvements: [1] Wesley Li (wesley.lj gmail com) Approved by: delphij (mentor)
This commit is contained in:
parent
b399cd6398
commit
220ada786d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=31130
6 changed files with 861 additions and 651 deletions
|
@ -2,7 +2,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Simplified Chinese Project
|
||||
|
||||
Original Revision: 1.150
|
||||
Original Revision: 1.151
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
@ -273,8 +273,8 @@ console none unknown off secure</programlisting>
|
|||
要使用一个不同的显示模式,
|
||||
你必须首先重新编译内核并包含以下2个选项:</para>
|
||||
|
||||
<programlisting>OPTIONS VESA
|
||||
OPTIONS SC_PIXEL_MODE</programlisting>
|
||||
<programlisting>options VESA
|
||||
options SC_PIXEL_MODE</programlisting>
|
||||
|
||||
<para>在内核用这2个选项编译完成后,你就可以使用 &man.vidcontrol.1;
|
||||
工具来测定你的硬件支持何种显示模式了。 以 root
|
||||
|
@ -1856,7 +1856,7 @@ Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
|
|||
<note>
|
||||
<title>为什么使用 <command>/bin/kill</command>?</title>
|
||||
|
||||
<para>许多shell提供了内建<command>kill</command>命令,
|
||||
<para>许多shell提供了内建 <command>kill</command> 命令,
|
||||
这样, shell就能直接发送信号,而不是运行 <filename>/bin/kill</filename>。
|
||||
这点非常有用, 但不同shell有不同的语法来指定发送信号的名字,
|
||||
与其试图把它们学完倒不如简单地直接使用
|
||||
|
@ -1866,16 +1866,18 @@ Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
|
|||
</step>
|
||||
</procedure>
|
||||
|
||||
<para>发送其他的信号也很相似,只要在命令行替换<literal>TERM</literal>或<literal>KILL</literal>就行了。
|
||||
<para>发送其他的信号也很相似,
|
||||
只要在命令行替换 <literal>TERM</literal> 或
|
||||
<literal>KILL</literal> 就行了。
|
||||
</para>
|
||||
|
||||
<important>
|
||||
<para>在系统上随意杀死进程是个坏主意,特别是&man.init.8;,它的进程ID是1,它非常特殊。
|
||||
可以运行 <command>/bin/kill -s KILL 1</command> 命令来让系统迅速关机。
|
||||
当您按下 <keycap>Return</keycap> 键之前, <emphasis>一定要</emphasis>
|
||||
详细检查您运行 &man.kill.1; 时所指定的参数。
|
||||
|
||||
</para>
|
||||
<para>在系统上随意杀死进程是个坏主意,特别是&man.init.8;,
|
||||
它的进程ID是1,它非常特殊。可以运行
|
||||
<command>/bin/kill -s KILL 1</command> 命令来让系统迅速关机。
|
||||
当您按下 <keycap>Return</keycap> (回车)键之前,
|
||||
<emphasis>一定要</emphasis> 详细检查您运行 &man.kill.1;
|
||||
时所指定的参数。</para>
|
||||
</important>
|
||||
</sect1>
|
||||
|
||||
|
@ -1885,14 +1887,14 @@ Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
|
|||
<indexterm><primary>命令行</primary></indexterm>
|
||||
|
||||
<para>在FreeBSD里,每日有一大堆工作是在命令行的界面完成的,那就叫做shell。
|
||||
一个shell的主要功能就是从输入是取得命令然后去执行他。
|
||||
一个shell的主要功能就是从输入取得命令然后去执行他。
|
||||
许多的shell同样能帮我们完成内建的每日功能,例如:文件管理、文件寻找、命令行编辑、
|
||||
宏指令和环境变量。FreeBSD内含了一些shell,例如:<command>sh</command>、Bourne Shell、
|
||||
<command>tcsh</command>和改良过的C-shell。
|
||||
另外也有些shell也可在FreeBSD的Ports得到,例如:<command>zsh</command>和<command>bash</command>。
|
||||
</para>
|
||||
|
||||
<para>您想使用那一种shell取决于您的喜好,
|
||||
<para>您想使用哪一种shell取决于您的喜好,
|
||||
假如您是C程序设计师,您可能选择一个C-like shell例如<command>tcsh</command>。
|
||||
假如您是从Linux过来的或是一个命令行的新手,您可能会试一下<command>bash</command>。
|
||||
这一点告诉我们每一个shell都有各自的特性,可能适用于您的工作环境,也可能不适用于您的工作环境。
|
||||
|
|
|
@ -344,8 +344,8 @@
|
|||
<application>Opera</application>,将上面例子中的
|
||||
<literal>opera</literal> 替换为 <literal>linux-opera</literal>。Linux
|
||||
版本在某些情况下非常有用,象是使用只有 Linux 版本的插件,例如 <application>Adobe
|
||||
&acrobat.reader;</application>。不然的话在其它方面,
|
||||
FreeBSD 和 Linux 版本是完全一样的。</para>
|
||||
&acrobat.reader;</application>。就其它方面来说,
|
||||
FreeBSD 和 Linux 版本的功能是完全一样的。</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1066,7 +1066,7 @@ zoom=yes</programlisting>
|
|||
|
||||
<para><application>xine</application> 播放器仍然很粗糙,
|
||||
但这很显然与好开头无关。实际上 <application>xine</application>
|
||||
即需要一个快速的带有快速显卡的CPU,也支持XVideo的扩展。
|
||||
要求你有快速的 CPU 和快速的显卡来运行,或者需要支持 XVideo 扩展。
|
||||
图形界面(GUI)可以使用,但很勉强。</para>
|
||||
|
||||
<para>到写这章时,还没有可用于播放CSS编码的DVD文件的输入模块随同
|
||||
|
@ -1228,7 +1228,7 @@ WITH_MJPEG=yes -DWITH_XVID=yes</userinput></screen>
|
|||
|
||||
<programlisting>bktr_load="YES"</programlisting>
|
||||
|
||||
<para>另外,您也可以静态地这个支持编译到内核里去,
|
||||
<para>另外,您也可以把这个驱动编译进内核,
|
||||
要是这样的话,就把下边几行加到内核配置里去:</para>
|
||||
|
||||
<programlisting>device bktr
|
||||
|
@ -1560,7 +1560,7 @@ device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner</screen>
|
|||
<title>授权其他用户访问扫描仪</title>
|
||||
|
||||
<para>前面所有的操作都是用
|
||||
<username>root</username> 权限来完成的。You may however, need
|
||||
<username>root</username> 权限来完成的。
|
||||
然而您可能需要让其他的用户也可以访问扫描仪。
|
||||
用户需要有扫描仪所用的设备节点的读和写权限。
|
||||
比如,我们的 USB 扫描仪使用设备节点
|
||||
|
|
|
@ -928,9 +928,9 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch</userinput></screen>
|
|||
|
||||
<screen>&prompt.root; <userinput>make WRKDIRPREFIX=/usr/home/example/ports install</userinput></screen>
|
||||
|
||||
<para>将把编译
|
||||
<filename>/usr/home/example/ports</filename> 中的 port 并把所有的文件安装到
|
||||
<filename>/usr/local</filename>。</para>
|
||||
<para>将在 <filename>/usr/home/example/ports</filename>
|
||||
中编译 port 并把所有的文件安装到
|
||||
<filename>/usr/local</filename>。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>make PREFIX=/usr/home/example/local install</userinput></screen>
|
||||
|
||||
|
@ -971,12 +971,11 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch</userinput></screen>
|
|||
<secondary>卸载</secondary>
|
||||
</indexterm>
|
||||
<para>现在您已经了解了如何安装 ports, 并希望进一步了解如何卸载,
|
||||
特别是在安装了某个之后发现不合适的 port 时。
|
||||
我们将卸载前面例子 (假如您没有注意的话, 是
|
||||
<command>lsof</command>) 中安装的 port。 Ports 可以同 packages
|
||||
以完全相同的方式 (在 <link
|
||||
linkend="packages-using">Packages 一节</link> 中进行了介绍) 卸载, 方法是使用
|
||||
&man.pkg.delete.1; 命令:</para>
|
||||
特别是在错误地安装了某个 port 之后。我们将卸载前面例子
|
||||
(假如您没有注意的话, 是 <command>lsof</command>)
|
||||
中安装的 port。 Ports 可以同 packages 以完全相同的方式 (在 <link
|
||||
linkend="packages-using">Packages 一节</link> 中进行了介绍) 卸载,
|
||||
方法是使用 &man.pkg.delete.1; 命令:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>pkg_delete lsof-4.57</userinput></screen>
|
||||
|
||||
|
|
|
@ -975,7 +975,7 @@ ID mark OTP key is 499 gr4269
|
|||
LINE PAP MILK NELL BUOY TROY
|
||||
</screen>
|
||||
|
||||
<para>为了接受默认的种子, 按下 <keycap>Return</keycap>。
|
||||
<para>为了接受默认的种子, 按下 <keycap>Return</keycap> (回车)。
|
||||
在输入访问口令之前, 到一个有安全连接的机器上,
|
||||
并给它同样的参数:</para>
|
||||
|
||||
|
@ -1006,7 +1006,7 @@ otp-md5 498 gr4269 ext
|
|||
Password: </screen>
|
||||
|
||||
<para>另外, OPIE 提示有一个很有用的特性
|
||||
(这里没有表现出来): 如果您在口令提示处按下 <keycap>Return</keycap>(回车)
|
||||
(这里没有表现出来): 如果您在口令提示处按下 <keycap>Return</keycap> (回车)
|
||||
系统将回显刚键入的口令, 您可以藉此看到自己所键入的内容。
|
||||
如果试图手工键入一个一次性密码, 这会非常有用。</para>
|
||||
|
||||
|
|
Loading…
Reference in a new issue