diff options
Diffstat (limited to 'documentation/content/zh-tw/articles/nanobsd/_index.adoc')
-rw-r--r-- | documentation/content/zh-tw/articles/nanobsd/_index.adoc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/documentation/content/zh-tw/articles/nanobsd/_index.adoc b/documentation/content/zh-tw/articles/nanobsd/_index.adoc index 61a92b17d5..c8cabd72de 100644 --- a/documentation/content/zh-tw/articles/nanobsd/_index.adoc +++ b/documentation/content/zh-tw/articles/nanobsd/_index.adoc @@ -70,7 +70,7 @@ NanoBSD 提供的功能包括: [example] ==== -[source,bash] +[source,shell] .... # vi /etc/resolv.conf [...] @@ -94,7 +94,7 @@ NanoBSD 映像檔是透過使用非常簡單的 [.filename]#nanobsd.sh# shell sc 打造 NanoBSD 映像檔所需的指令是: -[source,bash] +[source,shell] .... # cd /usr/src/tools/tools/nanobsd <.> # sh nanobsd.sh <.> @@ -116,7 +116,7 @@ NanoBSD 映像檔是透過使用非常簡單的 [.filename]#nanobsd.sh# shell sc 執行下面的指令將會 [.filename]#nanobsd.sh# 讀取目前所在目錄的 [.filename]#myconf.nano# 檔的設定: -[source,bash] +[source,shell] .... # sh nanobsd.sh -c myconf.nano .... @@ -249,7 +249,7 @@ customize_cmd cust_nobeastie 如果傳輸速度是第一要求的話,請採用下面例子: -[source,bash] +[source,shell] .... # ftp myhost get _.disk.image "| sh updatep1" @@ -259,7 +259,7 @@ get _.disk.image "| sh updatep1" 如果想更安全的話,應參考下面例子: -[source,bash] +[source,shell] .... # ssh myhost cat _.disk.image.gz | zcat | sh updatep1 .... @@ -271,7 +271,7 @@ get _.disk.image "| sh updatep1" [.procedure] . 首先,在提供映像檔的主機上開啟 TCP listen,並讓它把映像檔傳給 client: + -[source,bash] +[source,shell] .... myhost# nc -l 2222 < _.disk.image .... @@ -282,7 +282,7 @@ myhost# nc -l 2222 < _.disk.image ==== . 連到提供新映像檔服務的主機,並執行 [.filename]#updatep1# 這支 script: + -[source,bash] +[source,shell] .... # nc myhost 2222 | sh updatep1 .... |