View | Details | Raw Unified | Return to bug 140375 | Differences between
and this patch

Collapse All | Expand All

(-)doc/zh_TW.Big5/articles/nanobsd/article.sgml (-74 / +92 lines)
Lines 1-9 Link Here
1
<!--
2
     The FreeBSD Documentation Project
3
     The FreeBSD Chinese (Traditional) Documentation Project
4
5
     Original Revision: 1.1
6
-->
7
<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [
1
<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [
8
<!ENTITY % articles.ent PUBLIC "-//FreeBSD//ENTITIES DocBook FreeBSD Articles Entity Set//EN">
2
<!ENTITY % articles.ent PUBLIC "-//FreeBSD//ENTITIES DocBook FreeBSD Articles Entity Set//EN">
9
%articles.ent;
3
%articles.ent;
Lines 36-42 Link Here
36
    <abstract>
30
    <abstract>
37
      <para>³o½g¤å¥ó´£¨Ñ¤FÃö©ó <application>NanoBSD</application> ¤u¨ãªº±¡³ø¤¶²Ð¡A
31
      <para>³o½g¤å¥ó´£¨Ñ¤FÃö©ó <application>NanoBSD</application> ¤u¨ãªº±¡³ø¤¶²Ð¡A
38
	³o¤u¨ã¥i¥Î¨Ó«Ø¥ß¥Î©ó´O¤J¦¡Àô¹ÒÀ³¥Îµ{¦¡ªº &os; ¨t²Î¬M¹³ÀÉ¡A
32
	³o¤u¨ã¥i¥Î¨Ó«Ø¥ß¥Î©ó´O¤J¦¡Àô¹ÒÀ³¥Îµ{¦¡ªº &os; ¨t²Î¬M¹³ÀÉ¡A
39
	¥H«K¦s©ñ¨ì Compact Flash ¥d(©ÎÀH¨­ºÐ)¡C</para>
33
	¥H«K¦s©ñ¨ì Compact Flash ¥d¡]©Î¨ä¥LÀx¦s¸Ë¸m¡^¡C</para>
40
    </abstract>
34
    </abstract>
41
  </articleinfo>
35
  </articleinfo>
42
36
Lines 47-59 Link Here
47
41
48
    <para><application>NanoBSD</application> ¬O &a.phk; ¥Ø«e¥¿¦b¶}µoªº¤@¶µ¤u¨ã¡C
42
    <para><application>NanoBSD</application> ¬O &a.phk; ¥Ø«e¥¿¦b¶}µoªº¤@¶µ¤u¨ã¡C
49
      ¥¦¥i¥Î¨Ó«Ø¥ß¥Î©ó´O¤J¦¡Àô¹ÒÀ³¥Îµ{¦¡ªº &os; ¨t²Î¬M¹³ÀÉ¡A
43
      ¥¦¥i¥Î¨Ó«Ø¥ß¥Î©ó´O¤J¦¡Àô¹ÒÀ³¥Îµ{¦¡ªº &os; ¨t²Î¬M¹³ÀÉ¡A
50
      ¥H«K¦s©ñ¨ì Compact Flash ¥d(©ÎÀH¨­ºÐ¡Amass storage medium)¡C</para>
44
      ¥H«K¦s©ñ¨ì Compact Flash ¥d¡]©Î¨ä¥LÀx¦s¸Ë¸m¡^¡C</para>
51
45
52
    <para>³o¤@¤u¨ã¤]¥i¥H¥Î¨Ó¦Û»s¦w¸Ë¬M¹³ÀÉ¡A
46
    <para>³o¤@¤u¨ã¤]¥i¥H¥Î¨Ó¦Û»s¦w¸Ë¬M¹³ÀÉ¡A
53
      ¥H²¤Æ«UºÙ¬° <quote>´O¤J¦¡¨t²Î(computer appliances)</quote> ªº¨t²Î¦w¸Ë¡BºûÅ@¤u§@¡C 
47
      ¥H²¤Æ«UºÙ¬° <quote>´O¤J¦¡¨t²Î¡]computer appliances¡^</quote> ªº¨t²Î¦w¸Ë¡BºûÅ@¤u§@¡C
54
      ³q±`¡A¨C­Ó´O¤J¦¡¨t²Î²£«~³£¦³­­©wµwÅé©M³nÅé¡A
48
      ³q±`¡A¨C­Ó´O¤J¦¡¨t²Î²£«~³£¦³­­©wµwÅé©M³nÅé¡A
55
      ©ÎªÌ´«¨¥¤§¡A©Ò¦³ªºÀ³¥Îµ{¦¡³£¬O¹w¥ý¸Ë¦nªº¡C
49
      ©ÎªÌ´«¨¥¤§¡A©Ò¦³ªºÀ³¥Îµ{¦¡³£¬O¹w¥ý¸Ë¦nªº¡C
56
      ³o¨Ç³]³Æ¥i¥Hª½±µ©ñ¨ì²{¦³ªººô¸ô¤¤¡A¦Ó¥B(´X¥G¬O)¥ß§Y¨Ï¥Î¡C</para>
50
      ³o¨Ç³]³Æ¥i¥Hª½±µ©ñ¨ì²{¦³ªººô¸ô¤¤¡A¦Ó¥B¡]´X¥G¬O¡^¥ß§Y¨Ï¥Î¡C</para>
57
51
58
    <para><application>NanoBSD</application> ´£¨Ñªº¥\¯à¥]¬A¡G</para>
52
    <para><application>NanoBSD</application> ´£¨Ñªº¥\¯à¥]¬A¡G</para>
59
53
Lines 89-96 Link Here
89
    <sect2 id="design">
83
    <sect2 id="design">
90
      <title>NanoBSD ªº³]­p</title>
84
      <title>NanoBSD ªº³]­p</title>
91
85
92
      <para>¤@¥¹±N¬M¹³Àɦs¤J´O¤J¦¡µwÅé¡A´N¥i¥H¥Î¥¦¨Ó¤Þ¾É <application>NanoBSD</application>
86
      <para>¤@¥¹±N¬M¹³Àɦs¤J´O¤J¦¡µwÅé¡A´N¥i¥H¥Î <application>NanoBSD</application>
93
	¤F¡C ¹w³]±¡ªp¤U¡AÀH¨­ºÐ·|¹º¤À¬°¤T³¡¤À¡G</para>
87
        ¶}¾÷¡C¹w³]±¡ªp¤U¡AÀx¦s¸Ë¸m·|¹º¤À¬°¤T³¡¤À¡G</para>
94
88
95
      <itemizedlist>
89
      <itemizedlist>
96
	<listitem>
90
	<listitem>
Lines 100-121 Link Here
100
94
101
	<listitem>
95
	<listitem>
102
	  <para>¤@­Ó³]©wÀɤÀ³Î°Ï¡A¦b¹B¦æÀô¹Ò¤¤¡A
96
	  <para>¤@­Ó³]©wÀɤÀ³Î°Ï¡A¦b¹B¦æÀô¹Ò¤¤¡A
103
	    ¥i¥H±N¨ä±¾¸ü(mount)¨ì <filename role="directory">/cfg</filename> ¥Ø¿ý¤U¡C</para>
97
	    ¥i¥H±N¨ä±¾¸ü¡]mount¡^¨ì <filename class="directory">/cfg</filename> ¥Ø¿ý
98
	    ¤U¡C</para>
104
	</listitem>
99
	</listitem>
105
      </itemizedlist>
100
      </itemizedlist>
106
101
107
      <para>³o¨Ç¤À³Î°Ï¡A¦b¹w³]±¡ªp¤U¬O¥H°ßŪ¤è¦¡±¾¸ü¡C</para>
102
      <para>³o¨Ç¤À³Î°Ï¡A¦b¹w³]±¡ªp¤U¬O¥H°ßŪ¤è¦¡±¾¸ü¡C</para>
108
103
109
      <para><filename role="directory">/etc</filename> ©M
104
      <para><filename class="directory">/etc</filename> ©M
110
	<filename role="directory">/var</filename> ¥Ø¿ý§¡¬°
105
	<filename class="directory">/var</filename> ¥Ø¿ý§¡¬°
111
	&man.md.4;(malloc)ºÏºÐ¡C</para>
106
	&man.md.4;¡]malloc¡^ºÏºÐ¡C</para>
112
107
113
      <para>³]©wÀɪº¤À³Î°Ï«h¬O¦b
108
      <para>³]©wÀɪº¤À³Î°Ï«h¬O¦b
114
	<filename role="directory">/cfg</filename> ¥Ø¿ý¡C
109
	<filename class="directory">/cfg</filename> ¥Ø¿ý¡C
115
	¥¦¥]§t¤F¥Î©ó <filename role="directory">/etc</filename>
110
	¥¦¥]§t¤F <filename class="directory">/etc</filename>
116
	¥Ø¿ýªºÀɮסA¦b±Ò°Ê¤§«á¼È®É¥H°ßŪ¤è¦¡±¾¸ü¡C ¦]¦¹¡A­Y·Q­n­«¶}¾÷«O¯d·sªº³]©w¡A
111
	¥Ø¿ýªºÀɮסA¦b±Ò°Ê¤§«á¼È®É¥H°ßŪ¤è¦¡±¾¸ü¡C¦]¦¹¡A­Y·Q­n­«¶}¾÷«á«O¯d·sªº³]©w¡A
117
	¨º»ò­n°O±o±q <filename role="directory">/etc</filename> §â§ï¹LªºÀɮ׽ƻs¦^
112
	¨º»ò­n°O±o§â§ï¹LªºÀÉ®×±q <filename class="directory">/etc</filename> ½Æ»s¦^
118
	<filename role="directory">/cfg</filename> ¥Ø¿ý¤~¦æ¡C</para>
113
	<filename class="directory">/cfg</filename> ¥Ø¿ý¤~¦æ¡C</para>
119
114
120
      <example>
115
      <example>
121
	<title>§â­×§ï¹L <filename>/etc/resolv.conf</filename> ³]©w«O¦s°_¨Ó</title>
116
	<title>§â­×§ï¹L <filename>/etc/resolv.conf</filename> ³]©w«O¦s°_¨Ó</title>
Lines 129-140 Link Here
129
124
130
      <note>
125
      <note>
131
	<para>¥u¦³¦b¨t²Î±Ò°Ê¹Lµ{¤¤¡A¥H¤Î»Ý­n­×§ï³]©wÀɪº®É­Ô¡A¤~»Ý­n±¾¸ü§t¦³
126
	<para>¥u¦³¦b¨t²Î±Ò°Ê¹Lµ{¤¤¡A¥H¤Î»Ý­n­×§ï³]©wÀɪº®É­Ô¡A¤~»Ý­n±¾¸ü§t¦³
132
	  <filename role="directory">/cfg</filename> ªº¨º­Ó¤À³Î°Ï¡C</para>
127
	  <filename class="directory">/cfg</filename> ªº¤À³Î°Ï¡C</para>
133
128
134
	<para>¤@ª½³£±¾¸ü <filename role="directory">/cfg</filename>
129
	<para>¤@ª½±¾¸ü <filename class="directory">/cfg</filename>
135
	  ¤£¬O¤@­Ó¦n¥D·N¡A¯S§O¬O·í±z§â <application>NanoBSD</application>
130
	  ¤£¬O¤@­Ó¦n¥D·N¡A¯S§O¬O·í±z§â <application>NanoBSD</application>
136
	  ©ñ¦b¤£¾A¦X¶i¦æ¤j¶q¼g¤J°Ê§@ªº¤À³Î°Ï®É
131
	  ©ñ¦b¤£¾A¦X¶i¦æ¤j¶q¼g¤J°Ê§@ªºÀx¦s¸Ë¸m®É
137
	 (¤ñ¦p¡G¥Ñ©óÀɮרt²Îªº¦P¨B¤Æ·|©w´Á¦b¨t²ÎºÐ¤º¼g¤J¸ê®Æ)¡C</para>
132
	 ¡]¤ñ¦p¡G¥Ñ©óÀɮרt²Îªº¦P¨B¤Æ·|©w´Á¦b¨t²ÎºÐ¤º¼g¤J¸ê®Æ¡^¡C</para>
138
      </note>
133
      </note>
139
    </sect2>
134
    </sect2>
140
135
Lines 143-150 Link Here
143
138
144
      <para><application>NanoBSD</application> ¬M¹³ÀɬO³z¹L¨Ï¥Î«D±`²³æªº
139
      <para><application>NanoBSD</application> ¬M¹³ÀɬO³z¹L¨Ï¥Î«D±`²³æªº
145
	<filename>nanobsd.sh</filename> shell  script ¨Ó¥´³yªº¡A³o­Ó script ¥i¥H¦b
140
	<filename>nanobsd.sh</filename> shell  script ¨Ó¥´³yªº¡A³o­Ó script ¥i¥H¦b
146
	<filename role="directory"><replaceable>/usr</replaceable>/src/tools/tools/nanobsd</filename>
141
	<filename class="directory"><replaceable>/usr</replaceable>/src/tools/tools/nanobsd</filename>
147
	¥Ø¿ý¤¤§ä¨ì¡C ³o­Ó script «Ø¥ßªº¬M¹³ÀÉ¡A¥i¥H¥Î &man.dd.1; ¤u¨ã¨Ó½Æ»s¨ìÀH¨­ºÐ¤W¡C</para>
142
	¥Ø¿ý¤¤§ä¨ì¡C³o­Ó script «Ø¥ßªº¬M¹³ÀÉ¡A¥i¥H¥Î &man.dd.1; ¤u¨ã¨Ó½Æ»s¨ìÀH¨­ºÐ¤W¡C</para>
148
143
149
      <para>¥´³y
144
      <para>¥´³y
150
	<application>NanoBSD</application> ¬M¹³Àɩһݪº«ü¥O¬O¡G</para>
145
	<application>NanoBSD</application> ¬M¹³Àɩһݪº«ü¥O¬O¡G</para>
Lines 168-174 Link Here
168
	</callout>
163
	</callout>
169
164
170
	<callout arearefs="nbsd-dd">
165
	<callout arearefs="nbsd-dd">
171
	  <para>¦bÀH¨­ºÐ¤W¦w¸Ë <application>NanoBSD</application>¡C</para>
166
	  <para>±N <application>NanoBSD</application> ¦w¸Ë¨ìÀx¦s¸Ë¸m¤W¡C</para>
172
	</callout>
167
	</callout>
173
      </calloutlist>
168
      </calloutlist>
174
    </sect2>
169
    </sect2>
Lines 177-192 Link Here
177
      <title>¦Û¦æ¥´³y NanoBSD ¬M¹³ÀÉ</title>
172
      <title>¦Û¦æ¥´³y NanoBSD ¬M¹³ÀÉ</title>
178
173
179
      <para>³o¥i¯à¬O <application>NanoBSD</application> ³Ì¬°­«­n¡A
174
      <para>³o¥i¯à¬O <application>NanoBSD</application> ³Ì¬°­«­n¡A
180
	¦P®É¤]¬O±z³Ì·P¿³½ìªº¥\¯à¡C ¦P®É¡A¦b¶}µo
175
	¦P®É¤]¬O±z³Ì·P¿³½ìªº¥\¯à¡C¦P®É¡A¦b¶}µo
181
	<application>NanoBSD</application> À³¥Îµ{¦¡®É¡A³o¤]¬O¬Û·í¯Ó®Éªº¹Lµ{¡C</para>
176
	<application>NanoBSD</application> ®É¡A³o¤]³Ì¯Ó®É¶¡ªº¹Lµ{¤§¤@¡C</para>
182
177
183
      <para>°õ¦æ¤U­±ªº«ü¥O±N·|
178
      <para>°õ¦æ¤U­±ªº«ü¥O·|¨Ï
184
	<filename>nanobsd.sh</filename> Ū¨ú¥Ø«e©Ò¦b¥Ø¿ýªº
179
	<filename>nanobsd.sh</filename> ¥Ø«e©Ò¦bªº¥Ø¿ýŪ¨ú
185
	<filename>myconf.nano</filename> Àɪº³]©w¡G</para>
180
	<filename>myconf.nano</filename> Àɪº³]©w¡G</para>
186
181
187
      <screen>&prompt.root; <userinput>sh nanobsd.sh -c myconf.nano</userinput></screen>
182
      <screen>&prompt.root; <userinput>sh nanobsd.sh -c myconf.nano</userinput></screen>
188
183
189
      <para>¦Û¦æ¥´³yªº¬yµ{¡A¥u»Ý¨â­Ó¨BÆJ¡G</para>
184
      <para>¦Û¦æ¥´³yªº¬yµ{¡A¦³¨âºØ¤è¦¡¡G</para>
190
185
191
      <itemizedlist>
186
      <itemizedlist>
192
	<listitem>
187
	<listitem>
Lines 202-243 Link Here
202
	<title>¦Û­q¿ï¶µ</title>
197
	<title>¦Û­q¿ï¶µ</title>
203
198
204
        <para>³z¹L­×§ï³]©w¡A¥i¥H³]©w¥Î©ó
199
        <para>³z¹L­×§ï³]©w¡A¥i¥H³]©w¥Î©ó
205
          <application>NanoBSD</application> ¥´³y¹Lµ{¤¤ <literal>buildworld</literal>
200
          <application>NanoBSD</application> ¥´³y¹Lµ{¤¤ <maketarget>buildworld</maketarget>
206
          ©M <literal>installworld</literal> ¶¥¬qªº½sĶ¡B¦w¸Ë¿ï¶µ¡A¥H¤Î
201
          ©M <maketarget>installworld</maketarget> ¶¥¬qªº½sĶ¡B¦w¸Ë¿ï¶µ¡A¥H¤Î
207
          <application>NanoBSD</application> ¥D­n¥´³y¹Lµ{¤¤ªº¿ï¶µ¡C
202
          <application>NanoBSD</application> ¥D­n¥´³y¹Lµ{¤¤¤º³¡ªº¿ï¶µ¡C³z
208
          ³z¹L¨Ï¥Î³o¨Ç¿ï¶µ¥i¥H«d´î¨t²Îªº¤Ø¤o¡A¨Ï¤§¯à°÷©ñ¤J
203
          ¹L³o¨Ç¿ï¶µ¥i¥H«d´î¨t²Îªº¤Ø¤o¡A¨Ï¤§¯à°÷©ñ¤J
209
          64 MB ªºÀH¨­ºÐ¡C ±zÁÙ¥i¥H¶i¤@¨B³z¹L³o¨Ç¿ï¶µ¨Ó«d´î &os;¡A
204
          64 MB ªºÀH¨­ºÐ¡C±zÁÙ¥i¥H¶i¤@¨B³z¹L³o¨Ç¿ï¶µ¨Ó«d´î &os;¡A
210
          ª½¨ì¥¦¥u¥]§t kernel ¥H¤Î¨â¤T­Ó userland Àɮ׬°¤î¡C</para>
205
          ª½¨ì¥¦¥u¥]§t kernel ¥H¤Î¨â¤T­Ó userland Àɮ׬°¤î¡C</para>
211
206
212
	<para>³]©wÀɮפ¤¥]§t¥Î¥H¥N´À¹w³]­Èªº³]©w¿ï¶µ¡C²¤¶³Ì­«­nªº´X¶µ³]©w¦p¤U¡G</para>
207
	<para>³]©wÀɮפ¤¥]§t¥Î¥H¥N´À¹w³]­Èªº³]©w¿ï¶µ¡C³Ì­«­nªº´X¶µ³]©w¦p¤U¡G</para>
213
208
214
	<itemizedlist>
209
	<itemizedlist>
215
	  <listitem>
210
	  <listitem>
216
	    <para><literal>NANO_NAME</literal> &mdash; ¥»¦¸¥´³yªº¦WºÙ(©Ò«Ø¥ß¤u§@¥Ø¿ýªº¦WºÙ)¡C</para>
211
	    <para><literal>NANO_NAME</literal> &mdash;
212
	      ¥»¦¸¥´³yªº¦WºÙ¡]©Ò«Ø¥ß¤u§@¥Ø¿ýªº¦WºÙ¡^¡C</para>
217
	  </listitem>
213
	  </listitem>
218
214
219
	  <listitem>
215
	  <listitem>
220
	    <para><literal>NANO_SRC</literal> &mdash; ¥Î¥H½sĶ¡B¥´³y¬M¹³Àɪº source tree ªº¦ì¸m¡C</para>
216
	    <para><literal>NANO_SRC</literal> &mdash; ¥Î¥H½sĶ¡B¥´³y¬M¹³Àɪº
217
	      source tree ªº¦ì¸m¡C</para>
221
	  </listitem>
218
	  </listitem>
222
219
223
	  <listitem>
220
	  <listitem>
224
	    <para><literal>NANO_KERNEL</literal> &mdash; ³]©w¥Î¨Ó½sĶªº kernel ³]©wÀÉÀɦW¡C</para>
221
	    <para><literal>NANO_KERNEL</literal> &mdash; ³]©w¥Î¨Ó½sĶ kernel
222
	      ªº³]©wÀÉÀɦW¡C</para>
225
	  </listitem>
223
	  </listitem>
226
224
227
	  <listitem>
225
	  <listitem>
228
	    <para><literal>CONF_BUILD</literal> &mdash; ¥Î©ó
226
	    <para><literal>CONF_BUILD</literal> &mdash; ¥Î©ó
229
	      <literal>buildworld</literal> ¥´³y¶¥¬qªº¿ï¶µ¡C</para>
227
	      <maketarget>buildworld</maketarget> ¶¥¬qªº¿ï¶µ¡C</para>
230
	  </listitem>
228
	  </listitem>
231
229
232
	  <listitem>
230
	  <listitem>
233
	    <para><literal>CONF_INSTALL</literal> &mdash; ¥Î©ó
231
	    <para><literal>CONF_INSTALL</literal> &mdash; ¥Î©ó
234
	      <literal>installworld</literal> ¥´³y¶¥¬qªº¿ï¶µ¡C</para>
232
	      <maketarget>installworld</maketarget> ¶¥¬qªº¿ï¶µ¡C</para>
235
	  </listitem>
233
	  </listitem>
236
234
237
	  <listitem>
235
	  <listitem>
238
	    <para><literal>CONF_WORLD</literal> &mdash; ¥Î©ó
236
	    <para><literal>CONF_WORLD</literal> &mdash; ¥Î©ó
239
	      <literal>buildworld</literal> ©M
237
	      <maketarget>buildworld</maketarget> ©M
240
	      <literal>installworld</literal> ³o¨â­Ó¥´³y¶¥¬qªº¿ï¶µ¡C</para>
238
	      <maketarget>installworld</maketarget> ³o¨â­Ó¶¥¬qªº¿ï¶µ¡C</para>
241
	  </listitem>
239
	  </listitem>
242
240
243
	  <listitem>
241
	  <listitem>
Lines 250-298 Link Here
250
      <sect3>
248
      <sect3>
251
	<title>¦Û­q¥\¯à</title>
249
	<title>¦Û­q¥\¯à</title>
252
250
253
	<para>³z¹L¦b³]©wÀɮפ¤¨Ï¥Î shell ¨ç¼Æ¡A¥i¥H¶i¤@¨B·L½Õ
251
	<para>³z¹L¦b³]©wÀɮפ¤¨Ï¥Î shell ¨ç¦¡¡A¥i¥H¶i¤@¨B·L½Õ
254
	  <application>NanoBSD</application>¡C Á|¨Ò»¡©ú¤@¤U¦Û¦æ¥´³y¨ç¼Æªº°ò¥»¤è¦¡¡G</para>
252
	  <application>NanoBSD</application>¡CÁ|¨Ò»¡©ú¤@¤U¦Û­q¨ç¦¡ªº°ò¥»¤è¦¡¡G</para>
255
253
256
	  <programlisting>cust_foo()(
254
	  <programlisting>cust_foo () (
257
	echo "bar=topless" &gt; \
255
	echo "bar=topless" &gt; \
258
		&dollar;{NANO_WORLDDIR}/etc/foo
256
		&dollar;{NANO_WORLDDIR}/etc/foo
259
)
257
)
260
customize_cmd cust_foo</programlisting>
258
customize_cmd cust_foo</programlisting>
261
259
262
        <para>¤U­±Á|§ó¹ê»ÚÂIªº¨Ò¤l¡A¥¦·|§â¹w³]ªº
260
	<para>¤U­±Á|§ó¹ê»ÚÂIªº¨Ò¤l¡A¥¦·|§â <filename class="directory">/etc</filename>
263
          <filename role="directory">/etc</filename> ¥Ø¿ý¤j¤p¡A±q 5MB ½Õ¾ã¬° 30MB¡G</para>
261
           ¥Ø¿ý¹w³]ªº¤j¤p¡A±q 5MB ½Õ¾ã¬° 30MB¡G</para>
264
262
265
	<programlisting>cust_etc_size()(
263
	<programlisting>cust_etc_size () (
266
	cd &dollar;{NANO_WORLDDIR}/conf
264
	cd &dollar;{NANO_WORLDDIR}/conf
267
	echo 30000 &gt; default/etc/md_size
265
	echo 30000 &gt; default/etc/md_size
268
)
266
)
269
customize_cmd cust_etc_size</programlisting>
267
customize_cmd cust_etc_size</programlisting>
270
268
271
	<para>°£¦¹¤§¥~¡AÁÙ¦³´X­Ó¹w³]ªº¥\¯à©w¸q¥i¥H¥Î¨Ó¦Û­q¡G</para>
269
	<para>°£¦¹¤§¥~¡AÁÙ¦³´X­Ó¹w³]ªº¦Û­q¨ç¦¡¥i¥H¨Ï¥Î¡G</para>
272
270
273
	<itemizedlist>
271
	<itemizedlist>
274
	  <listitem>
272
	  <listitem>
275
	    <para><literal>cust_comconsole</literal> &mdash; ¦b¹w³] VGA Åã¥Ü¥d¤W°±¥Î &man.getty.8;
273
	    <para><literal>cust_comconsole</literal> &mdash; ¦b VGA ¸Ë¸m¤W°±¥Î
276
	     (<filename>/dev/ttyv*</filename>)¨Ã±Ò¥Î serial port ªº COM1 ¥H§@¬°¨t²Î console¡C</para>
274
              &man.getty.8;¡]<filename>/dev/ttyv*</filename>¡^¨Ã±Ò¥Î serial port
275
	      ªº COM1 ¥H§@¬°¨t²Î console¡C</para>
277
	  </listitem>
276
	  </listitem>
278
277
279
	  <listitem>
278
	  <listitem>
280
	    <para><literal>cust_allow_ssh_root</literal> &mdash; ¤¹³\ &man.sshd.8;
279
	    <para><literal>cust_allow_ssh_root</literal> &mdash; ¤¹³\ 
281
	      ¥i¥H¥Î <username>root</username> ±b¸¹µn¤J¡C</para>
280
	      <username>root</username> ¥i¥H¥Î &man.sshd.8; µn¤J¡C</para>
282
	  </listitem>
281
	  </listitem>
283
282
284
	  <listitem>
283
	  <listitem>
285
	    <para><literal>cust_install_files</literal> &mdash;
284
	    <para><literal>cust_install_files</literal> &mdash;
286
	      ±q <filename role="directory">nanobsd/Files</filename>
285
	      ±q <filename class="directory">nanobsd/Files</filename>
287
	      ¥Ø¿ý¤¤¦w¸ËÀɮסA³o¥]§t¤@¨Ç¹ê¥Îªº¨t²ÎºÞ²z script ¡C</para>
286
	      ¥Ø¿ý¤¤¦w¸ËÀɮסA³o¥]§t¤@¨Ç¹ê¥Îªº¨t²ÎºÞ²z script¡C</para>
288
	  </listitem>
287
	  </listitem>
289
	</itemizedlist>
288
	</itemizedlist>
290
      </sect3>
289
      </sect3>
291
290
292
      <sect3>
291
      <sect3>
293
	<title>³]©wÀÉ®×Á|¨Ò</title>
292
	<title>¦w¸Ë packages</title>
293
294
	<para>Packages ¥i¥HÂǥѦۭq¨ç¦¡¥[¤J <application>NanoBSD</application>
295
	  ªº¦L¶HÀÉ¡C¤U­±ªº¨ç¦¡·|¦w¸Ë¦ì©ó
296
	  <filename>/usr/src/tools/tools/nanobsd/packages</filename>
297
	  ªº packages¡G</para>
298
299
	<programlisting>install_packages () (
300
mkdir -p ${NANO_WORLDDIR}/packages
301
cp /usr/src/tools/tools/nanobsd/packages/* ${NANO_WORLDDIR}/packages
302
chroot ${NANO_WORLDDIR} sh -c 'cd packages; pkg_add -v *;cd ..;'
303
rm -rf ${NANO_WORLDDIR}/packages
304
)
305
customize_cmd install_packages</programlisting>
306
      </sect3>
307
308
      <sect3>
309
	<title>³]©wÀÉ®×½d¨Ò</title>
294
310
295
	<para>¤U­±¬O¥Î©ó¦Û¦æ¥´³yªº <application>NanoBSD</application> ¬M¹³Àɪº§¹¾ã¨Ò¤l¡G</para>
311
	<para>¤U­±¬O¥Î©ó¦Û¦æ¥´³yªº <application>NanoBSD</application> ¬M¹³Àɪº§¹¾ã½d¨Ò¡G</para>
296
312
297
	<programlisting>NANO_NAME=custom
313
	<programlisting>NANO_NAME=custom
298
NANO_SRC=/usr/src
314
NANO_SRC=/usr/src
Lines 335-341 Link Here
335
351
336
FlashDevice SanDisk 1G
352
FlashDevice SanDisk 1G
337
353
338
cust_nobeastie()(
354
cust_nobeastie() (
339
	touch &dollar;{NANO_WORLDDIR}/boot/loader.conf
355
	touch &dollar;{NANO_WORLDDIR}/boot/loader.conf
340
	echo "beastie_disable=\"YES\"" &gt;&gt; &dollar;{NANO_WORLDDIR}/boot/loader.conf
356
	echo "beastie_disable=\"YES\"" &gt;&gt; &dollar;{NANO_WORLDDIR}/boot/loader.conf
341
)
357
)
Lines 358-369 Link Here
358
	</step>
374
	</step>
359
375
360
	<step>
376
	<step>
361
	  <para>±N·sªº¬M¹³ÀÉ©ñ¤J¥¿¹B¦æªº
377
	  <para>±N·sªº¬M¹³ÀɤW¶Ç¦Ü¥¿¦b¹B¦æªº
362
	    <application>NanoBSD</application> ¤¤¥¼¥Îªº¤À³Î°Ï¤§¤@¡C</para>
378
	    <application>NanoBSD</application> ¤¤¥¼¥Îªº¤À³Î°Ï¤§¤@¡C</para>
363
379
364
	  <para>»P¤§«e³Ìªì¦w¸Ë <application>NanoBSD</application> ªº¨BÆJ¬Û¤ñ¡A
380
	  <para>»P¤§«e³Ìªì¦w¸Ë <application>NanoBSD</application> ªº¨BÆJ¬Û¤ñ¡A
365
	    ³o¤@¨BÆJ³Ì­«­nªº°Ï§O¦b©ó¡G³o¦¸¤£¥Î <filename>_.disk.full</filename> ÀÉ(¥¦¥]§t¾ã­ÓºÏºÐªº¬M¹³ÀÉ)¡A
381
	    ³o¤@¨BÆJ³Ì­«­nªº°Ï§O¦b©ó¡G³o¦¸¤£¥Î <filename>_.disk.full</filename>
366
	    ¦ÓÀ³¦w¸Ë <filename>_.disk.image</filename> ¬M¹³ÀÉ(³o­ÓÀɮפ¤¡A¥u¥]§t¤@­Ó¨t²Î¤À³Î°Ï)¡C</para>
382
	    ÀÉ¡]¥¦¥]§t¾ã­ÓºÏºÐªº¬M¹³ÀÉ¡^¡A ¦ÓÀ³¦w¸Ë <filename>_.disk.image</filename>
383
	    ¬M¹³ÀÉ¡]³o­ÓÀɮפ¤¡A¥u¥]§t¤@­Ó¨t²Î¤À³Î°Ï¡^¡C</para>
367
	</step>
384
	</step>
368
385
369
	<step>
386
	<step>
Lines 376-395 Link Here
376
393
377
	<step>
394
	<step>
378
	  <para>¦pªGµo¥Í¤F¥ô¦ó°ÝÃD¡A«h¥i¥H±q¥ý«eªº¤À³Î°Ï±Ò°Ê
395
	  <para>¦pªGµo¥Í¤F¥ô¦ó°ÝÃD¡A«h¥i¥H±q¥ý«eªº¤À³Î°Ï±Ò°Ê
379
	 (¨ä¤¤¥]§t¤Fªº¡B ¥i¥Îªº¬M¹³ÀÉ)¡A¨ÓºÉ§Ö«ì´_¨t²Î¥\¯à¡C
396
	    ¡]¨ä¤¤¥]§t¤Fªº¡B¥i¥Îªº¬M¹³ÀÉ¡^¡A¨ÓºÉ§Ö«ì´_¨t²Î¥\¯à¡C
380
	  ±µ¤U¨Ó¥i¥H­×¥¿·s½sĶªºª©¥»¤¤¦s¦bªº°ÝÃD¡A¨Ã­«½Æ«e­z¨BÆJ¡C</para>
397
	    ±µ¤U¨Ó¥i¥H­×¥¿·s½sĶªºª©¥»¤¤¦s¦bªº°ÝÃD¡A¨Ã­«½Æ«e­z¨BÆJ¡C</para>
381
	</step>
398
	</step>
382
      </procedure>
399
      </procedure>
383
400
384
      <para>­n¦b¥¿¦b¹B¦æªº
401
      <para>­n¦b¥¿¦b¹B¦æªº
385
	<application>NanoBSD</application> ¨t²Î¤¤¦w¸Ë·sªº¬M¹³ÀÉ¡A¥i¥H¨Ï¥Î¦ì©ó
402
	<application>NanoBSD</application> ¨t²Î¤¤¦w¸Ë·sªº¬M¹³ÀÉ¡A¥i¥H¨Ï¥Î¦ì©ó
386
	<filename role="directory">/root</filename> ¥Ø¿ýªº
403
	<filename class="directory">/root</filename> ¥Ø¿ýªº
387
	<filename>updatep1</filename> ©Î
404
	<filename>updatep1</filename> ©Î
388
	<filename>updatep2</filename>  script ¡A
405
	<filename>updatep2</filename> script ¡A
389
	¹ê»Ú¤W­n¥Î­þ¤@­Ó script¡A«h¨ú¨M©ó¥¿¦b¹B¦æªº¨t²Î¬O¦ì©ó­þ­Ó¤À³Î°Ï¦Ó©w¡C</para>
406
	¹ê»Ú¤W­n¥Î­þ¤@­Ó script¡A«h¨ú¨M©ó¥¿¦b¹B¦æªº¨t²Î¬O¦ì©ó­þ­Ó¤À³Î°Ï¦Ó©w¡C</para>
390
407
391
      <para>ÀH®É´£¨Ñ·s <application>NanoBSD</application> ¬M¹³ÀÉ©Ò´£¨ÑªºªA°È¡A
408
      <para>µø´£¨Ñ·s <application>NanoBSD</application> ¬M¹³Àɪº¥D¾÷©Ò´£¨ÑªºªA°È¡A
392
	¥H¤Î±Ä¥Îªº¶Ç¿é¤èªkªº¤£¦P¡A±z¥i¥H°Ñ¦Ò¨Ã¨Ï¥Î¤U¦C¤TºØ¤è¦¡¤§¤@¡G</para>
409
	¥H¤Î§Æ±æ±Ä¥Îªº¶Ç¿é¤è¦¡¡A±z¥i¥H°Ñ¦Ò¨Ã¨Ï¥Î¤U¦C¤TºØ¤è¦¡¤§¤@¡G</para>
393
410
394
      <sect3>
411
      <sect3>
395
	<title>¨Ï¥Î &man.ftp.1;</title>
412
	<title>¨Ï¥Î &man.ftp.1;</title>
Lines 403-409 Link Here
403
      <sect3>
420
      <sect3>
404
	<title>¨Ï¥Î &man.ssh.1;</title>
421
	<title>¨Ï¥Î &man.ssh.1;</title>
405
422
406
	<para>¦pªG·Q§ó¦w¥þªº¸Ü¡AÀ³°Ñ¦Ò¤U­±¨Ò¤l¡G</para>
423
	<para>¦pªG·Q¨Ï¥Î¥[±K³s½uªº¸Ü¡AÀ³°Ñ¦Ò¤U­±¨Ò¤l¡G</para>
407
424
408
	<screen>&prompt.root; <userinput>ssh myhost cat _.disk.image.gz | zcat | sh updatep1</userinput></screen>
425
	<screen>&prompt.root; <userinput>ssh myhost cat _.disk.image.gz | zcat | sh updatep1</userinput></screen>
409
      </sect3>
426
      </sect3>
Lines 415-421 Link Here
415
432
416
	<procedure>
433
	<procedure>
417
	  <step>
434
	  <step>
418
	    <para>­º¥ý¡A¦b´£¨Ñ¬M¹³Àɪº¥D¾÷¤W¶}±Ò TCP listen¡A¨ÃÅý¥¦§â¬M¹³Àɶǵ¹ client¡G</para>
435
	    <para>­º¥ý¡A¦b´£¨Ñ¬M¹³Àɪº¥D¾÷¤W¶}±Ò TCP listener¡A¨ÃÅý¥¦§â¬M¹³Àɶǵ¹
436
	      client¡G</para>
419
437
420
	    <screen>myhost&prompt.root; <userinput>nc -l <replaceable>2222</replaceable> &lt; _.disk.image</userinput></screen>
438
	    <screen>myhost&prompt.root; <userinput>nc -l <replaceable>2222</replaceable> &lt; _.disk.image</userinput></screen>
421
439
Lines 425-431 Link Here
425
	    </note>
443
	    </note>
426
	  </step>
444
	  </step>
427
	  <step>
445
	  <step>
428
	    <para>³s¨ì´£¨Ñ·s¬M¹³ÀɪA°Èªº¥D¾÷¡A¨Ã°õ¦æ <filename>updatep1</filename> ³o¤ä script¡G</para>
446
	    <para>³s¨ì´£¨Ñ·s¬M¹³Àɪº¥D¾÷¡A¨Ã°õ¦æ <filename>updatep1</filename> ³o¤ä script¡G</para>
429
	      
447
	      
430
	    <screen>&prompt.root; <userinput>nc myhost <replaceable>2222</replaceable> | sh updatep1</userinput></screen>
448
	    <screen>&prompt.root; <userinput>nc myhost <replaceable>2222</replaceable> | sh updatep1</userinput></screen>
431
	  </step>
449
	  </step>

Return to bug 140375