docs/99955: [UPDATE] zh_TW: add articles/nanobsd
chinsan
chinsan.tw at gmail.com
Sun Jul 9 09:30:13 UTC 2006
>Number: 99955
>Category: docs
>Synopsis: [UPDATE] zh_TW: add articles/nanobsd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 09 09:30:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: chinsan
>Release: FreeBSD 6.1-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD chinsan2.twbbs.org 6.1-STABLE FreeBSD 6.1-STABLE #1: Fri Jun 2 16:44:35 CST 2006 root at chinsan2.twbbs.org:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Add nanobsd article. This translation is based on the
Simplified Chinese translation with changes
to fit the language practice of Traditional Chinese.
Obtained from: The FreeBSD Traditional Chinese Project
Each changelog can reviewd at https://opensvn.csie.org/traccgi/freebsddoc/timeline
( http://chinsan2.twbbs.org/chinsan/zh_TW.Big5.20060709_1.svn729.diff )
Thanks. :p
>How-To-Repeat:
>Fix:
--- zh_TW.Big5.20060709_1.svn729.diff begins here ---
diff -ruN zh_TW.Big5.orig/articles/Makefile zh_TW.Big5/articles/Makefile
--- zh_TW.Big5.orig/articles/Makefile Sun Jul 9 11:19:08 2006
+++ zh_TW.Big5/articles/Makefile Sun Jul 9 17:20:24 2006
@@ -6,6 +6,7 @@
SUBDIR+= freebsd-questions
SUBDIR+= hubs
SUBDIR+= mailing-list-faq
+SUBDIR+= nanobsd
SUBDIR+= pr-guidelines
SUBDIR+= problem-reports
diff -ruN zh_TW.Big5.orig/articles/nanobsd/Makefile zh_TW.Big5/articles/nanobsd/Makefile
--- zh_TW.Big5.orig/articles/nanobsd/Makefile Thu Jan 1 08:00:00 1970
+++ zh_TW.Big5/articles/nanobsd/Makefile Sun Jul 9 17:20:24 2006
@@ -0,0 +1,28 @@
+#
+# The FreeBSD Traditional Chinese Project
+#
+# Original Revision: 1.2
+# $FreeBSD$
+#
+# Article: Introduction to NanoBSD
+
+DOC?= article
+
+FORMATS?= html
+WITH_ARTICLE_TOC?= YES
+
+INSTALL_COMPRESSED?= gz
+INSTALL_ONLY_COMPRESSED?=
+
+# Images from the cross-document image library
+IMAGES_LIB= callouts/1.png
+IMAGES_LIB+= callouts/2.png
+IMAGES_LIB+= callouts/3.png
+IMAGES_LIB+= callouts/4.png
+
+SRCS= article.sgml
+
+URL_RELPREFIX?= ../../../..
+DOC_PREFIX?= ${.CURDIR}/../../..
+
+.include "${DOC_PREFIX}/share/mk/doc.project.mk"
diff -ruN zh_TW.Big5.orig/articles/nanobsd/article.sgml zh_TW.Big5/articles/nanobsd/article.sgml
--- zh_TW.Big5.orig/articles/nanobsd/article.sgml Thu Jan 1 08:00:00 1970
+++ zh_TW.Big5/articles/nanobsd/article.sgml Sun Jul 9 17:20:24 2006
@@ -0,0 +1,436 @@
+<!--
+ The FreeBSD Documentation Project
+ The FreeBSD Chinese (Traditional) Documentation Project
+
+ Original Revision: 1.1
+-->
+<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [
+<!ENTITY % articles.ent PUBLIC "-//FreeBSD//ENTITIES DocBook FreeBSD Articles Entity Set//EN">
+%articles.ent;
+]>
+
+<article>
+ <articleinfo>
+ <title>NanoBSD ²¤¶</title>
+
+ <authorgroup>
+ <author>
+ <firstname>Daniel</firstname>
+ <surname>Gerzo</surname>
+ <!-- 14 March 2006 -->
+ </author>
+ </authorgroup>
+
+ <pubdate>$FreeBSD$</pubdate>
+
+ <copyright>
+ <year>2006</year>
+ <holder>The FreeBSD Documentation Project</holder>
+ </copyright>
+
+ <legalnotice id="trademarks" role="trademarks">
+ &tm-attrib.freebsd;
+ &tm-attrib.general;
+ </legalnotice>
+
+ <abstract>
+ <para>³o½g¤å¥ó´£¨Ñ¤FÃö©ó <application>NanoBSD</application> ¤u¨ãªº±¡³ø¤¶²Ð¡A
+ ³o¤u¨ã¥i¥Î¨Ó«Ø¥ß¥Î©ó´O¤J¦¡Àô¹ÒÀ³¥Îµ{¦¡ªº &os; ¨t²Î¬M¹³ÀÉ¡A
+ ¥H«K¦s©ñ¨ì Compact Flash ¥d(©ÎÀH¨ºÐ)¡C</para>
+ </abstract>
+ </articleinfo>
+
+ <sect1 id="intro">
+ <title>NanoBSD ²¤¶</title>
+
+ <indexterm><primary>NanoBSD</primary></indexterm>
+
+ <para><application>NanoBSD</application> ¬O &a.phk; ¥Ø«e¥¿¦b¶}µoªº¤@¶µ¤u¨ã¡C
+ ¥¦¥i¥Î¨Ó«Ø¥ß¥Î©ó´O¤J¦¡Àô¹ÒÀ³¥Îµ{¦¡ªº &os; ¨t²Î¬M¹³ÀÉ¡A
+ ¥H«K¦s©ñ¨ì Compact Flash ¥d(©ÎÀH¨ºÐ¡Amass storage medium)¡C</para>
+
+ <para>³o¤@¤u¨ã¤]¥i¥H¥Î¨Ó¦Û»s¦w¸Ë¬M¹³ÀÉ¡A
+ ¥H²¤Æ«UºÙ¬° <quote>´O¤J¦¡¨t²Î(computer appliances)</quote> ªº¨t²Î¦w¸Ë¡BºûÅ@¤u§@¡C
+ ³q±`¡A¨CÓ´O¤J¦¡¨t²Î²£«~³£¦³©wµwÅé©M³nÅé¡A
+ ©ÎªÌ´«¨¥¤§¡A©Ò¦³ªºÀ³¥Îµ{¦¡³£¬O¹w¥ý¸Ë¦nªº¡C
+ ³o¨Ç³]³Æ¥i¥Hª½±µ©ñ¨ì²{¦³ªººô¸ô¤¤¡A¦Ó¥B(´X¥G¬O)¥ß§Y¨Ï¥Î¡C</para>
+
+ <para><application>NanoBSD</application> ´£¨Ñªº¥\¯à¥]¬A¡G</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>¥i¥H©M &os; ¤@¼Ë¨Ï¥Î Ports ©M Packages —
+ ©Ò¦³ªºÀ³¥Îµ{§Ç³£¥i¥H¦b <application>NanoBSD</application> ¤¤ª½±µ¨Ï¥Î¡A
+ ¦Ó¤è¦¡»P &os; §¹¥þ¤@¼Ë¡C</para>
+ </listitem>
+
+ <listitem>
+ <para>¥\¯àµ·²@¥¼·l — ¦b &os; °µªº¥ô¦ó¤u§@¡A³£¥i¥H¦b
+ <application>NanoBSD</application> ¤¤¨Ï¥Î¡A
+ °£«D±z¦b«Ø¥ß <application>NanoBSD</application> ¬M¹³ÀɮɡA
+ ¦³«ü©wn®³±¼¥¦Ì¡C</para>
+ </listitem>
+
+ <listitem>
+ <para>©Ò¦³ªF¦è¦b¹B¦æ®É³£¬O°ßŪªº — ¥i¥H¦w¥þ¦a©Þ±¼¹q·½´¡ÀY¡C
+ ¨t²Î¤£¥¿±`Ãö¾÷ªº¸Ü¡A¤£¥Î¦A¶] &man.fsck.8; ¤F¡C</para>
+ </listitem>
+
+ <listitem>
+ <para>¥i»´ÃP½sĶ¡B¦Û¦æ¥´³y — ¥u»Ý¨Ï¥Î¤@Ó shell script ©M¤@Ó³]©wÀÉ¡A
+ ±z¥i¥H»´ÃP¨Ì»Ý¨D¨Ó¶q¨q°µ¾A¥Îªº¬M¹³ÀÉ¡C</para>
+ </listitem>
+ </itemizedlist>
+ </sect1>
+
+ <sect1 id="howto">
+ <title>¦p¦ó¨Ï¥Î NanoBSD</title>
+
+ <sect2 id="design">
+ <title>NanoBSD ªº³]p</title>
+
+ <para>¤@¥¹±N¬M¹³Àɦs¤J´O¤J¦¡µwÅé¡A´N¥i¥H¥Î¥¦¨Ó¤Þ¾É <application>NanoBSD</application>
+ ¤F¡C ¹w³]±¡ªp¤U¡AÀH¨ºÐ·|¹º¤À¬°¤T³¡¤À¡G</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>¨âÓ¬M¹³ÀɤÀ³Î°Ï¡G <literal>code#1</literal>
+ ©M <literal>code#2</literal>¡C</para>
+ </listitem>
+
+ <listitem>
+ <para>¤@Ó³]©wÀɤÀ³Î°Ï¡A¦b¹B¦æÀô¹Ò¤¤¡A
+ ¥i¥H±N¨ä±¾¸ü(mount)¨ì <filename role="directory">/cfg</filename> ¥Ø¿ý¤U¡C</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>³o¨Ç¤À³Î°Ï¡A¦b¹w³]±¡ªp¤U¬O¥H°ßŪ¤è¦¡±¾¸ü¡C</para>
+
+ <para><filename role="directory">/etc</filename> ©M
+ <filename role="directory">/var</filename> ¥Ø¿ý§¡¬°
+ &man.md.4;(malloc)ºÏºÐ¡C</para>
+
+ <para>³]©wÀɪº¤À³Î°Ï«h¬O¦b
+ <filename role="directory">/cfg</filename> ¥Ø¿ý¡C
+ ¥¦¥]§t¤F¥Î©ó <filename role="directory">/etc</filename>
+ ¥Ø¿ýªºÀɮסA¦b±Ò°Ê¤§«á¼È®É¥H°ßŪ¤è¦¡±¾¸ü¡C ¦]¦¹¡AY·Qn«¶}¾÷«O¯d·sªº³]©w¡A
+ ¨º»òn°O±o±q <filename role="directory">/etc</filename> §â§ï¹LªºÀɮ׽ƻs¦^
+ <filename role="directory">/cfg</filename> ¥Ø¿ý¤~¦æ¡C</para>
+
+ <example>
+ <title>§âקï¹L <filename>/etc/resolv.conf</filename> ³]©w«O¦s°_¨Ó</title>
+
+ <screen>&prompt.root; <userinput>vi /etc/resolv.conf</userinput>
+[...]
+&prompt.root; <userinput>mount /cfg</userinput>
+&prompt.root; <userinput>cp /etc/resolv.conf /cfg</userinput>
+&prompt.root; <userinput>umount /cfg</userinput></screen>
+ </example>
+
+ <note>
+ <para>¥u¦³¦b¨t²Î±Ò°Ê¹Lµ{¤¤¡A¥H¤Î»Ýnקï³]©wÀɪº®ÉÔ¡A¤~»Ýn±¾¸ü§t¦³
+ <filename role="directory">/cfg</filename> ªº¨ºÓ¤À³Î°Ï¡C</para>
+
+ <para>¤@ª½³£±¾¸ü <filename role="directory">/cfg</filename>
+ ¤£¬O¤@Ó¦n¥D·N¡A¯S§O¬O·í±z§â <application>NanoBSD</application>
+ ©ñ¦b¤£¾A¦X¶i¦æ¤j¶q¼g¤J°Ê§@ªº¤À³Î°Ï®É
+ (¤ñ¦p¡G¥Ñ©óÀɮרt²Îªº¦P¨B¤Æ·|©w´Á¦b¨t²ÎºÐ¤º¼g¤J¸ê®Æ)¡C</para>
+ </note>
+ </sect2>
+
+ <sect2>
+ <title>¥´³y NanoBSD ¬M¹³ÀÉ</title>
+
+ <para><application>NanoBSD</application> ¬M¹³ÀɬO³z¹L¨Ï¥Î«D±`²³æªº
+ <filename>nanobsd.sh</filename> shell script ¨Ó¥´³yªº¡A³oÓ script ¥i¥H¦b
+ <filename role="directory"><replaceable>/usr</replaceable>/src/tools/tools/nanobsd</filename>
+ ¥Ø¿ý¤¤§ä¨ì¡C ³oÓ script «Ø¥ßªº¬M¹³ÀÉ¡A¥i¥H¥Î &man.dd.1; ¤u¨ã¨Ó½Æ»s¨ìÀH¨ºÐ¤W¡C</para>
+
+ <para>¥´³y
+ <application>NanoBSD</application> ¬M¹³Àɩһݪº«ü¥O¬O¡G</para>
+
+ <screen>&prompt.root; <userinput>cd /usr/src/tools/tools/nanobsd</userinput> <co id="nbsd-cd">
+&prompt.root; <userinput>sh nanobsd.sh</userinput> <co id="nbsd-sh">
+&prompt.root; <userinput>cd /usr/obj/nanobsd.full</userinput> <co id="nbsd-cd2">
+&prompt.root; <userinput>dd if=_.disk.full of=/dev/da0 bs=64k</userinput> <co id="nbsd-dd"></screen>
+
+ <calloutlist>
+ <callout arearefs="nbsd-cd">
+ <para>¶i¤J <application>NanoBSD</application> ¥´³y script ªº¥D¥Ø¿ý¡C</para>
+ </callout>
+
+ <callout arearefs="nbsd-sh">
+ <para>¶}©l¥´³y¹Lµ{¡C</para>
+ </callout>
+
+ <callout arearefs="nbsd-cd2">
+ <para>¶i¤J¥´³y¦nªº¬M¹³ÀÉ©Ò¦bªº¥Ø¿ý¡C</para>
+ </callout>
+
+ <callout arearefs="nbsd-dd">
+ <para>¦bÀH¨ºÐ¤W¦w¸Ë <application>NanoBSD</application>¡C</para>
+ </callout>
+ </calloutlist>
+ </sect2>
+
+ <sect2>
+ <title>¦Û¦æ¥´³y NanoBSD ¬M¹³ÀÉ</title>
+
+ <para>³o¥i¯à¬O <application>NanoBSD</application> ³Ì¬°«n¡A
+ ¦P®É¤]¬O±z³Ì·P¿³½ìªº¥\¯à¡C ¦P®É¡A¦b¶}µo
+ <application>NanoBSD</application> À³¥Îµ{¦¡®É¡A³o¤]¬O¬Û·í¯Ó®Éªº¹Lµ{¡C</para>
+
+ <para>°õ¦æ¤U±ªº«ü¥O±N·|
+ <filename>nanobsd.sh</filename> Ū¨ú¥Ø«e©Ò¦b¥Ø¿ýªº
+ <filename>myconf.nano</filename> Àɪº³]©w¡G</para>
+
+ <screen>&prompt.root; <userinput>sh nanobsd.sh -c myconf.nano</userinput></screen>
+
+ <para>¦Û¦æ¥´³yªº¬yµ{¡A¥u»Ý¨âÓ¨BÆJ¡G</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>¦Ûq¿ï¶µ</para>
+ </listitem>
+
+ <listitem>
+ <para>¦Ûq¥\¯à</para>
+ </listitem>
+ </itemizedlist>
+
+ <sect3>
+ <title>¦Ûq¿ï¶µ</title>
+
+ <para>³z¹Lקï³]©w¡A¥i¥H³]©w¥Î©ó
+ <application>NanoBSD</application> ¥´³y¹Lµ{¤¤ <literal>buildworld</literal>
+ ©M <literal>installworld</literal> ¶¥¬qªº½sĶ¡B¦w¸Ë¿ï¶µ¡A¥H¤Î
+ <application>NanoBSD</application> ¥Dn¥´³y¹Lµ{¤¤ªº¿ï¶µ¡C
+ ³z¹L¨Ï¥Î³o¨Ç¿ï¶µ¥i¥H«d´î¨t²Îªº¤Ø¤o¡A¨Ï¤§¯à°÷©ñ¤J
+ 64 MB ªºÀH¨ºÐ¡C ±zÁÙ¥i¥H¶i¤@¨B³z¹L³o¨Ç¿ï¶µ¨Ó«d´î &os;¡A
+ ª½¨ì¥¦¥u¥]§t kernel ¥H¤Î¨â¤TÓ userland Àɮ׬°¤î¡C</para>
+
+ <para>³]©wÀɮפ¤¥]§t¥Î¥H¥N´À¹w³]Ȫº³]©w¿ï¶µ¡C²¤¶³Ì«nªº´X¶µ³]©w¦p¤U¡G</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal>NANO_NAME</literal> — ¥»¦¸¥´³yªº¦WºÙ(©Ò«Ø¥ß¤u§@¥Ø¿ýªº¦WºÙ)¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>NANO_SRC</literal> — ¥Î¥H½sĶ¡B¥´³y¬M¹³Àɪº source tree ªº¦ì¸m¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>NANO_KERNEL</literal> — ³]©w¥Î¨Ó½sĶªº kernel ³]©wÀÉÀɦW¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>CONF_BUILD</literal> — ¥Î©ó
+ <literal>buildworld</literal> ¥´³y¶¥¬qªº¿ï¶µ¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>CONF_INSTALL</literal> — ¥Î©ó
+ <literal>installworld</literal> ¥´³y¶¥¬qªº¿ï¶µ¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>CONF_WORLD</literal> — ¥Î©ó
+ <literal>buildworld</literal> ©M
+ <literal>installworld</literal> ³o¨âÓ¥´³y¶¥¬qªº¿ï¶µ¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>FlashDevice</literal> — ©w¸q©Ò¥Îªº´O¤J¦¡µwÅéÃþ«¬¡C
+ ¸Ô±¡½Ð°Ñ¦Ò <filename>FlashDevice.sub</filename> ÀÉ¡C</para>
+ </listitem>
+ </itemizedlist>
+ </sect3>
+
+ <sect3>
+ <title>¦Ûq¥\¯à</title>
+
+ <para>³z¹L¦b³]©wÀɮפ¤¨Ï¥Î shell ¨ç¼Æ¡A¥i¥H¶i¤@¨B·L½Õ
+ <application>NanoBSD</application>¡C Á|¨Ò»¡©ú¤@¤U¦Û¦æ¥´³y¨ç¼Æªº°ò¥»¤è¦¡¡G</para>
+
+ <programlisting>cust_foo()(
+ echo "bar=topless" > \
+ ${NANO_WORLDDIR}/etc/foo
+)
+customize_cmd cust_foo</programlisting>
+
+ <para>¤U±Á|§ó¹ê»ÚÂIªº¨Ò¤l¡A¥¦·|§â¹w³]ªº
+ <filename role="directory">/etc</filename> ¥Ø¿ý¤j¤p¡A±q 5MB ½Õ¾ã¬° 30MB¡G</para>
+
+ <programlisting>cust_etc_size()(
+ cd ${NANO_WORLDDIR}/conf
+ echo 30000 > default/etc/md_size
+)
+customize_cmd cust_etc_size</programlisting>
+
+ <para>°£¦¹¤§¥~¡AÁÙ¦³´XÓ¹w³]ªº¥\¯à©w¸q¥i¥H¥Î¨Ó¦Ûq¡G</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><literal>cust_comconsole</literal> — ¦b¹w³] VGA Åã¥Ü¥d¤W°±¥Î &man.getty.8;
+ (<filename>/dev/ttyv*</filename>)¨Ã±Ò¥Î serial port ªº COM1 ¥H§@¬°¨t²Î console¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>cust_allow_ssh_root</literal> — ¤¹³\ &man.sshd.8;
+ ¥i¥H¥Î <username>root</username> ±b¸¹µn¤J¡C</para>
+ </listitem>
+
+ <listitem>
+ <para><literal>cust_install_files</literal> —
+ ±q <filename role="directory">nanobsd/Files</filename>
+ ¥Ø¿ý¤¤¦w¸ËÀɮסA³o¥]§t¤@¨Ç¹ê¥Îªº¨t²ÎºÞ²z script ¡C</para>
+ </listitem>
+ </itemizedlist>
+ </sect3>
+
+ <sect3>
+ <title>³]©wÀÉ®×Á|¨Ò</title>
+
+ <para>¤U±¬O¥Î©ó¦Û¦æ¥´³yªº <application>NanoBSD</application> ¬M¹³Àɪº§¹¾ã¨Ò¤l¡G</para>
+
+ <programlisting>NANO_NAME=custom
+NANO_SRC=/usr/src
+NANO_KERNEL=MYKERNEL
+NANO_IMAGES=2
+
+CONF_BUILD='
+NO_KLDLOAD=YES
+NO_NETGRAPH=YES
+NO_PAM=YES
+'
+
+CONF_INSTALL='
+NO_ACPI=YES
+NO_BLUETOOTH=YES
+NO_CVS=YES
+NO_FORTRAN=YES
+NO_HTML=YES
+NO_LPR=YES
+NO_MAN=YES
+NO_SENDMAIL=YES
+NO_SHAREDOCS=YES
+NO_EXAMPLES=YES
+NO_INSTALLLIB=YES
+NO_CALENDAR=YES
+NO_MISC=YES
+NO_SHARE=YES
+'
+
+CONF_WORLD='
+NO_BIND=YES
+NO_MODULES=YES
+NO_KERBEROS=YES
+NO_GAMES=YES
+NO_RESCUE=YES
+NO_LOCALES=YES
+NO_SYSCONS=YES
+NO_INFO=YES
+'
+
+FlashDevice SanDisk 1G
+
+cust_nobeastie()(
+ touch ${NANO_WORLDDIR}/boot/loader.conf
+ echo "beastie_disable=\"YES\"" >> ${NANO_WORLDDIR}/boot/loader.conf
+)
+
+customize_cmd cust_comconsole
+customize_cmd cust_install_files
+customize_cmd cust_allow_ssh_root
+customize_cmd cust_nobeastie</programlisting>
+ </sect3>
+ </sect2>
+
+ <sect2>
+ <title>§ó·s NanoBSD</title>
+
+ <para>§ó·s <application>NanoBSD</application> ¬Û¹ï &os; ¦Ó¨¥¸û¬°Â²³æ¡G</para>
+
+ <procedure>
+ <step>
+ <para>©M¤§«e¤@¼Ë¥´³y·sªº <application>NanoBSD</application> ¬M¹³ÀÉ¡C</para>
+ </step>
+
+ <step>
+ <para>±N·sªº¬M¹³ÀÉ©ñ¤J¥¿¹B¦æªº
+ <application>NanoBSD</application> ¤¤¥¼¥Îªº¤À³Î°Ï¤§¤@¡C</para>
+
+ <para>»P¤§«e³Ìªì¦w¸Ë <application>NanoBSD</application> ªº¨BÆJ¬Û¤ñ¡A
+ ³o¤@¨BÆJ³Ì«nªº°Ï§O¦b©ó¡G³o¦¸¤£¥Î <filename>_.disk.full</filename> ÀÉ(¥¦¥]§t¾ãӺϺЪº¬M¹³ÀÉ)¡A
+ ¦ÓÀ³¦w¸Ë <filename>_.disk.image</filename> ¬M¹³ÀÉ(³oÓÀɮפ¤¡A¥u¥]§t¤@Ó¨t²Î¤À³Î°Ï)¡C</para>
+ </step>
+
+ <step>
+ <para>«·s±Ò°Ê¡A¨Ã±q·s¦w¸Ëªº¤À³Î°Ï¤¤±Ò°Ê¨t²Î¡C</para>
+ </step>
+
+ <step>
+ <para>¦pªG¤@¤Á¶¶§Qªº¸Ü¡A¤É¯Å¤u§@´N§¹¦¨¤F¡C</para>
+ </step>
+
+ <step>
+ <para>¦pªGµo¥Í¤F¥ô¦ó°ÝÃD¡A«h¥i¥H±q¥ý«eªº¤À³Î°Ï±Ò°Ê
+ (¨ä¤¤¥]§t¤Fªº¡B ¥i¥Îªº¬M¹³ÀÉ)¡A¨ÓºÉ§Ö«ì´_¨t²Î¥\¯à¡C
+ ±µ¤U¨Ó¥i¥H×¥¿·s½sĶªºª©¥»¤¤¦s¦bªº°ÝÃD¡A¨Ã«½Æ«ez¨BÆJ¡C</para>
+ </step>
+ </procedure>
+
+ <para>n¦b¥¿¦b¹B¦æªº
+ <application>NanoBSD</application> ¨t²Î¤¤¦w¸Ë·sªº¬M¹³ÀÉ¡A¥i¥H¨Ï¥Î¦ì©ó
+ <filename role="directory">/root</filename> ¥Ø¿ýªº
+ <filename>updatep1</filename> ©Î
+ <filename>updatep2</filename> script ¡A
+ ¹ê»Ú¤Wn¥Îþ¤@Ó script¡A«h¨ú¨M©ó¥¿¦b¹B¦æªº¨t²Î¬O¦ì©óþÓ¤À³Î°Ï¦Ó©w¡C</para>
+
+ <para>ÀH®É´£¨Ñ·s <application>NanoBSD</application> ¬M¹³ÀÉ©Ò´£¨ÑªºªA°È¡A
+ ¥H¤Î±Ä¥Îªº¶Ç¿é¤èªkªº¤£¦P¡A±z¥i¥H°Ñ¦Ò¨Ã¨Ï¥Î¤U¦C¤TºØ¤è¦¡¤§¤@¡G</para>
+
+ <sect3>
+ <title>¨Ï¥Î &man.ftp.1;</title>
+
+ <para>¦pªG¶Ç¿é³t«×¬O²Ä¤@n¨Dªº¸Ü¡A½Ð±Ä¥Î¤U±¨Ò¤l¡G</para>
+
+ <screen>&prompt.root; <userinput>ftp myhost
+get _.disk.image "| sh updatep1"</userinput></screen>
+ </sect3>
+
+ <sect3>
+ <title>¨Ï¥Î &man.ssh.1;</title>
+
+ <para>¦pªG·Q§ó¦w¥þªº¸Ü¡AÀ³°Ñ¦Ò¤U±¨Ò¤l¡G</para>
+
+ <screen>&prompt.root; <userinput>ssh myhost cat _.disk.image.gz | zcat | sh updatep1</userinput></screen>
+ </sect3>
+
+ <sect3>
+ <title>¨Ï¥Î &man.nc.1;</title>
+
+ <para>¦pªG»·µ{¥D¾÷¬J¤£´£¨Ñ &man.ftp.1; ªA°È¡A¤]¤£´£¨Ñ &man.sshd.8; ªA°Èªº¸Ü¡G</para>
+
+ <procedure>
+ <step>
+ <para>º¥ý¡A¦b´£¨Ñ¬M¹³Àɪº¥D¾÷¤W¶}±Ò TCP listen¡A¨ÃÅý¥¦§â¬M¹³Àɶǵ¹ client¡G</para>
+
+ <screen>myhost&prompt.root; <userinput>nc -l <replaceable>2222</replaceable> < _.disk.image</userinput></screen>
+
+ <note>
+ <para>½Ð½T»{±z©Ò¨Ï¥Îªº port ¨S¦³³Q¨¾¤õÀðªý¤î¨Ó¦Û
+ <application>NanoBSD</application> client ªº³s½u½Ð¨D¡C</para>
+ </note>
+ </step>
+ <step>
+ <para>³s¨ì´£¨Ñ·s¬M¹³ÀɪA°Èªº¥D¾÷¡A¨Ã°õ¦æ <filename>updatep1</filename> ³o¤ä script¡G</para>
+
+ <screen>&prompt.root; <userinput>nc myhost <replaceable>2222</replaceable> | sh updatep1</userinput></screen>
+ </step>
+ </procedure>
+ </sect3>
+ </sect2>
+ </sect1>
+</article>
--- zh_TW.Big5.20060709_1.svn729.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list