picobsd
—
?ե??åԥǥ??????١????? FreeBSD
?????ƥ?
picobsd
[options]
[floppy-type [site-name]]
picobsd
?桼?ƥ????ƥ??ϡ??Ǿ???????
FreeBSD (????Ū??
PicoBSD
?ȸƤФ??ޤ?)
???????˻??Ѳ?ǽ?ʥ??????ץȤǤ???
????ʪ?ϡ?ŵ??Ū?ˤ? 1
???Υե??åԥǥ??????˼??ޤ뤫??
CDROM
???ե??å??????????Ȥ??ä????ǥ????????뤤??
etherboot
??ͳ????ñ???Υ?????ե??????Ȥ??ƥ??????????ɲ?ǽ??
???ΤȤʤ??ޤ???
picobsd
?桼?ƥ????ƥ??ϡ????Ȥ??ȥե????????????????֥??å??Τ褦??ñ????
???????ɥ??????ƥ??????ۤ??뤿???˺????줿???ΤǤ?????
?????Ф?¸?ߤ??????ΤȤϰ㤦???????ĥ?????Ѥ??ƥ??????
???????ӥ??ɤǤ??뤿?ᡢ??ȯ?ԤˤȤäƤϥ????ƥ???
?ƥ??ȡ??뤻???˼?ʬ?ν??????ɤ??ƥ??ȤǤ????Τ?
?????????Ǥ??礦??
?֡??ȥ??ǥ???
(ŵ??Ū?ˤϥե??åԥǥ?????)
?ϡ?
?֡??ȥ??????ȡ????????ե????륷???ƥ????ޤవ?̥????ͥ????ޤߤޤ???
???ǥ????˰?¸???ޤ??????ɲåե????????Ĥ??ޤफ?⤷???ޤ?????
???????ϡ??¹Ի??˹?????ǽ?Ǥ??ꡢ
???????ե????륷???ƥ????Υե??????ν???/?????˻??Ѥ????ޤ???
?????ƥ??ϡ??????ͥ????̾?????ˡ?ǥ????ɤ???
???????ե????륷???ƥ?????Ĺ???????????롼?ȤȤ??ƥޥ????Ȥ??ޤ???
???θ塢???????ե????륷???ƥ??֡??ȥ??ǥ????????Υե??????ǹ?????
(¸?ߤ????????Τ?)?????̤ʥС?????????
/etc/rc ???¹Ԥ??ޤ???
?֡??ȥ??ǥ??? (?ե??å???)
?ϡ??????ɤΤ?????????ɬ?פǤ??ꡢ
???̤ˤ??ɤ??????Ѥǻ??Ѥ????ޤ???
?֡??ȥե????????ϡ??????ƥ??ϴ????? RAM
?Ǽ¹Ԥ????ޤ???
???Υ??ץ??????Ѳ?ǽ?Ǥ?
(?ܺ٤? picobsd
???????ץȤ⻲?Ȥ??Ƥ???????):
--src
SRC_PATH
- /usr/src
?ˤ??????ΤǤϤʤ?
SRC_PATH
?ˤ??륽?????ĥ?????Ѥ??ޤ???
???Υ??ץ??????ϡ??ե??åԥ?????????ӥ??ɤ????ݤ?
?????Ǥ??礦??
???Υ??ץ??????????Ѥ????ݤˤϡ?
⟨SRC_PATH⟩/../usr
?˥??֥ĥ?????????????????ӥ??ɤ?ɬ?פ?
???????إå??ե????????饤?֥??ꡢ?????ƥġ???
(config(8)
?Τ褦??)
???֤??ƥĥ???????????Ƥ???ɬ?פ??????ޤ?
(???Ҥ?
--init
???ץ??????Ȥ??Ƥ???????)??
???????ե??????? picobsd
???????ץȤˤ??äƤ??ѹ??????ޤ?????????
???????ĥ?ϴ??????ɤ߹??????ѤǤ????Ȥ????櫓?ǤϤ????ޤ?????
?ʤ??ʤ顢
config(8)
?ϥ????ͥ??????ե????뤬???????ĥ?Υ??֥ǥ??쥯?ȥ??ˤ???
???ΤȤ??Ƥ??ޤ??????ޤ?
usr
???֥ĥ?????????????????ǥ??????ĥ?Τ????Ĥ?????ʬ??
?????Ƥ??ޤ??????Ǥ?
(????ư???ϥ?????ӥ????ѥ??????ץȤ?
?Х??Ǥ??ꡢ???֤????ƤФ??ΥХ??ϼ???ʧ???????Ǥ??礦)??
--init
--src
???ץ??????Ȱ????˻??Ѥ??????硢????
picobsd
??????????ۤ????Τ?ɬ?פȤʤ?
⟨SRC_PATH⟩/../usr
???֥ĥ???????????ޤ???
--modules
- ?????ͥ??⥸?塼????ۤ??ޤ???
?????ͥ??⥸?塼???ϥե??åԥ?????ˤ??????ޤ???
?????ѥǥ??쥯?ȥ??ˤ????Ѳ?ǽ?ʤޤĤäƤ??ޤ???
-n
- ???????ץȤ?????????Ū?ˤ??ޤ???
?ǽ??Υ??˥塼??ɽ?????????桼???????Ϥ??פ????˹??۽????˿ʤߤޤ???
-v
- ???????ץȤ???Ĺɽ???ˤ????¹Ԥ??륳?ޥ??ɤ?ɽ??????
???????μ¹????˥桼???????Ϥ??Ԥ??ޤ???
?ǥХå?????ͭ?ѤǤ???
--all_in_mfs
- ?????ͥ????˴ޤޤ??Ƥ??????????ե????륷???ƥ।????ˤ???
?ե????륷???ƥ??????Ƥ٤??֤??ޤ???
?????ϥǥե????Ȥ?ư???Ǥ??ꡢ
etherboot
?⤷????
pxeboot(8)
?????Ѥ??ơ??????˵?ǽ???륷???ƥ??Ȥ??ƥ????ͥ뤽?Τ??Τ?
?????ɤǤ??뤿???????????Ǥ???
--no_all_in_mfs
- floppy.tree
?˴ޤޤ??Ƥ????ե????????ե??åԥ?????˻Ĥ??ޤ????????ˤ??ꡢ
?ե????????ͥ??Ȥ??̤˥????ɤ??뤳?Ȥ??Ǥ??ޤ?
(?????ơ????̤˥ե??????????ƥե??åԥ??????
???????ޥ????Ǥ??ޤ?)??
--floppy_size
size
- ?ե??åԥ?????Υ??????????ꤷ?ޤ???
CDROM ?˾Ƥ???????Ѥˡ?1440
?ʳ????ͤ????Ѳ?ǽ?Ǥ???
-c,
-clean
- ?????ι??ۻ??ˤǤ???????ʪ???ä??ޤ???
?????????¤??ˤ??Ƹ????????ᡢ
picobsd
?δĶ????̾???
FreeBSD
?Ȥ????Ĥ??????ǰۤʤäƤ??ޤ?:
- ?????ʥߥå??饤?֥?????¸?ߤ?????
/usr/lib
?ǥ??쥯?ȥ??⤢???ޤ?????
???Τ??ᡢ?????ƥ??å????????¹??ΤΤ¹Բ?ǽ?Ǥ???
- ?¹??ΤΥ??????餹???ᡢ?????Υե??å????Τ??٤Ƥμ¹??Τϡ?
crunchgen(1)
?????Ѥ???ñ???μ¹??ΤˤޤȤ??????Ƥ??ޤ???
- ?ץ????????ˤ??äƤϺǾ??¤ΥС??????????????Ƥ??ޤ???
ns
??
netstat(1)
?ε?ǽ?????ǤǤ??ꡢ
vm
??
vmstat(8)
?ε?ǽ?????ǤǤ???
picobsd
?Υ??????ϥǥ??쥯?ȥ?
/usr/src/release/picobsd
?β??γ??ؤˤ????ޤ???
?ʲ??Ǥϡ????Хѥ?̾?Ϥ??٤Ƥ??Υǥ??쥯?ȥ꤫???????а??֤Ǥ???
picobsd
?ι??۲????ϡ????ȤȤ??˾????Ѳ????ޤ?????
???????̤??????ʤ????ä??Ƥ??뤳?Ȥ??б????뤿?ᡢ
?ʤ??٤?¿???Τ??Τ??ե??åԤ˵ͤ????ि????
???餯?꤬??????????¿??ɬ?פȤʤä??????Ǥ???
FreeBSD 4.3
?ʹߤǤϡ????ݡ??Ȥ????Ƥ??빽?ۥ??????ץȤ?
/usr/src/release/picobsd/build/picobsd
?Ǥ??ꡢ?ɤ??????Ǥ??¹Բ?ǽ?Ǥ???
????Ū?⡼?ɤǼ¹Ԥ???????
(--n
???ץ????????Ĥ??ʤ????Ф??줬?ǥե????ȤǤ?)??
???????ץȤˤ??äƥե??åԥ?????????ۤ????Τ˻??Ѥ?????
???ޤ??ޤʥѥ????????????ǽ?Ǥ???
ǧ???????ե??åԥ?????ϼ??μ??ब?????ޤ?????ã?ϡ????Υ??????
??ǽ???????Τ˰ݻ??????????ͥ뤪???ӥ??ץꥱ?????????Υ???????
???????????礭???ʤäƤ??ޤ????????Ǥ?
1.44MB ?ե??åԤ˼??ޤ?
?褦???ؤ??Ƥ??ޤ???
- bridge
- ?֥??å????롼???????ӥե???????????????Ŭ?????????Ǥ???
??????????¸?ߤϤ??ޤ????????Ȥ????ˤȤɤ??Ƥ?????????
??????????????¿???Ϥ⤦ľ???ʤ??ۤɸŤ????ΤˤʤäƤ??ޤ?????
?κۤ??????????ϤϤʤ???ʧ?????Ƥ??ޤ?????
- dial
- ???????륢????
(ppp(8))
?ͥåȥ????Ŭ?????????Ǥ???
- isp
- ???????륤??
(ppp(8))
?ͥåȥ????Ŭ?????????Ǥ???
- net
- ????Ū?ʥͥåȥ????Ŭ?????????Ǥ???
- router
- ?롼???Ȥ??ƻ??Ѥ?????????Ŭ?????????Ǥ???
???????̤??????ϡ??????¤Υϡ??ɥ???????ư??뤳?Ȥ?
??ɸ?Ȥ??Ƥ??ޤ???
?????????????ϡ?
???ʤ????ȼ????ѹ????Ԥ??Ȥ??˻??ͤˤ??뤿???????ˤ????ޤ???
???٤Ƥ??ƥ??Ȥ??줿?櫓?ǤϤ????ޤ???
ư???????ᡢ?⤷???ϥ??????????û??˶????ǥ????????֤?Ǽ???뤿???ˡ?
?????ե??????ˤ????äȤ?????????ɬ?פȤʤ뤫?⤷???ޤ?????
???ʤ??ȼ??Υե??åԥ????פ???????ǽ?Ǥ????????ˤϡ?
??????????̾?? (?㤨?? FOO)
???????ǥǥ??쥯?ȥ??????????????????˼??Υե?????
?????ӥǥ??쥯?ȥ??Τ????Ĥ????ޤ??????ɤ??ΤǤ???
???????Υե??????????????뤿???ξܺپ????ˤĤ??Ƥϡ?
ɸ???? picobsd
???????Τɤ줫
1 ?Ĥͻ????Ȥ??Ƹ??Ƥ?????????
- PICOBSD
- ?????ͥ??????ե????? (ɬ??)??
?????ϡ??????ξ???ɸ???Υ????ͥ??????ե??????Ǥ?????
?????ˤ??äƤϥ????ͥ륵???????????뤿????
ɬ?פΤʤ??ɥ饤?Ф䥪?ץ??????????äƤ??뤿???ե????뤬??????
?ʤäƤ??뤳?Ȥ??????ޤ???
picobsd
?????ͥ??????ե??????Ȥ???ǧ???????뤿???ˤϡ?
???˼????褦??
“#PicoBSD
”
?ǻϤޤ??Ԥ??ޤᡢ?б?????
MD_ROOT_SIZE
???ץ????????ޤ???ɬ?פ??????ޤ?:
#marker def_sz init MFS_inodes floppy_inodes
#PicoBSD 4200 init 8192 32768
options MD_ROOT_SIZE=4200 # def_sz ??Ʊ??
?????????ǥ??????ե????륷???ƥ??Υ??????????ץȤ˶?????
??????????ۤ?????ˡ?˴ؤ???¾?ξܺ٤??Ĥ?Ϳ???ޤ???
- crunch.conf
- crunchgen(1)
?????ե????? (ɬ??)??
?????????ˤϥץ??????ॽ???????ޤ???
?ǥ??쥯?ȥ??Υꥹ?ȡ????ۤ??????Х??ʥ??Υꥹ?ȡ???????
???????ΥХ??ʥ??ץ??????ब???Ѥ????饤?֥????Υꥹ?Ȥ?
?ޤޤ??Ƥ??ޤ???
???Υե???????ʸˡ?˴ؤ??????Τʾܺ٤?
crunchgen(1)
?ޥ˥奢???ڡ????Ȥ??Ƥ?????????
picobsd
?????????ݤˤϼ????????Ȥ??櫓???פǤ?:
- makefile ?Υ??ץ??????ˡ?makefile
???????Ǥ??빽???ѥ??ץ???????
?Ϥ????Ȥ??Ǥ??ޤ????ץ????????Υ??????餹?????Ǥ???
???η????ιԤ??Ѥ??Ƽ¸??????ޤ???
buildopts -DNOPAM
-DRELEASE_CRUNCH ...
- ???????ե??????Τ????ǥ??쥯?ȥ??Υꥹ?Ȥ?Ϳ?????Ȥ??ϡ?
???Υ????ȥ????ǽ??˥ꥹ?Ȥ??Ƥ??????????Ǥ?:
srcdirs
/usr/src/release/picobsd/tinyware
?????????ȡ? picobsd
??ͭ?ΥС????????Υץ??????ब???Υǥ??쥯?ȥ??Ǹ??Ĥ???????
?褦?ˤʤ??ޤ???
- ʸ???? “
@__CWD__@
”
?ϡ? picobsd
?????ե????뤬???äƤ????ǥ??쥯?ȥ?
(???ʤ????? PICOBSD, crunch.conf
?ʤɤ????Ĥ????ǥ??쥯?ȥ?)
?Υե??ѥ?̾???֤????????ޤ???
?????ե??????Τ????ǥ??쥯?ȥ???????
¸?ߤ??륽?????????ɤȤ????Τ??????Ǥ??礦???㤨?С?????
?褦?ˤǤ???
srcdirs
@__CWD__@/src
- config
picobsd
???????ץȤ??ɤ??륷?????ѿ?
(??ά??ǽ)??
?????ǺǤ????פ??ѿ??ϼ??Τ??ΤǤ?:
- MY_DEVS
- (FreeBSD 5.0 ?Ǥ?
devfs(5)
???????ޤ??Τǻ??Ѥ????Ƥ??ޤ???)
??????? /dev
?ǥ??쥯?ȥ??˺??????????٤??ǥХ????Υꥹ?Ȥ????ꤹ?٤??Ǥ?
(?????ϡ?
MAKEDEV(8)
???Ϥ????????????Τ??ΤǤ????顢?ǥХ?????̾?ΤˤĤ??Ƥ?
MAKEDEV(8)
?Υޥ˥奢???ڡ????Ȥ??Ƥ???????)??
- fd_size
picobsd
??????Υ?????
(?????Х???ñ??) ?Ǥ???
?ǥե????ȤǤ? fd_size
?? 1440
?????ꤵ???ޤ????????ͤǤϡ?ɸ???Υե??åԥǥ???????
Ŭ??????????????????ޤ???
CDROM
?˥????????¸?????Ĥ????ʤ?
(?㤨?С? “El Torito”
?ե??åԥ??ߥ??졼?????????Ѥ???)??
fd_size ?? 2880 ???????Ǥ??ޤ???
?ϡ??ɥǥ?????
(?ѡ??ƥ??????????⤷???ϥǥ?????????)
??
????????????פ????Ĥ????ʤ顢ɸ???Υե??åԥ???????
???¤????뤳?ȤϤ????ޤ?????
???켫?Τ??????????礭?ʥ?????????Ѥ??Ƥ??¹Ի???
RAM ??
ϲ???뤳?ȤϤ????ޤ??ʤ??ʤ顢?ºݤ˥????????
?????ɤ??????ե????뤷?????????????̤ˤϴؤ??äƤ??ʤ??????Ǥ???
- import_files
- ?ե??åԥĥ???˼??????ޤ????ե??????Υꥹ?Ȥ??ޤߤޤ???
???Хѥ?̾?ξ???ɸ???ե????륷???ƥ????????Хѥ?̾?ξ???
???Ѥ??Ƥ??륽?????ĥ (???ʤ???
SRC_PATH/..)
?Υ롼?ȥǥ??쥯?ȥ???ɽ???ޤ???
?̾??ͭ?饤?֥??????ǡ????١????ʤɤΥե???????
???????ߤ????????ˡ? floppy.tree/
?ǥ??쥯?ȥ??۲??????????Ǥ??????Υե???????
ʣ?????ǽ??˺????ʤ??Ƥ??ɤ??褦?ˡ????Υ??ץ??????????ѤǤ??ޤ???
- floppy.tree.exclude
- ɸ???ե??åԥĥ???????롢???ԡ????????ʤ??ե??????Υꥹ??
(??ά??ǽ)??
- floppy.tree/
- ɸ???ե??åԥĥ?ؤΡ????????????ɲ?
(??ά??ǽ)??
???Υ??֥ĥ?????Ƥϥե??åԥ?????ˤ??Τޤޥ??ԡ??????ޤ???
- floppy.tree.⟨site-name⟩
- ????Ʊ???Ǥ??????????ȸ?ͭ?Ǥ?
(??ά??ǽ)??
???۲????˴ؤ??빹?ʤ??????ϡ?
picobsd
???????ץȤΥ??????Ȥ˵??Ҥ????Ƥ??ޤ???
?????ץ????????ե???????
/usr/src/release/picobsd/⟨floppy-type⟩/
?ˤ????ޤ???
???ۥ??????ץȤϡ??̤Υ??????ĥ?????Ѥ????褦??
--src
SRC_PATH
???ץ??????ǻؼ???ǽ?Ǥ???
???ꤹ???ĥ?ϡ??????ͥ뤪???ӥ?????˴ޤ??????ץ?????????
?????????٤Ƥ??ޤ?ɬ?פ??????ޤ???
???Ȥ??ơ?RELENG_4 ???????ĥ???Ȥä?
bridge
?ե??åԤ????ӥ??ɤ????ˤϡ????Τ褦?ˤ??ƤǤ??ޤ?:
cd <some_empty_directory>
mkdir FOO
(cd FOO; cvs -d<my_repository> co -rRELENG_4 src)
picobsd --src FOO/src --init # ?????? 1 ??????ɬ?פǤ?
picobsd --src FOO/src -n -v bridge
???ۤ??????????ȡ??ǥ??쥯?ȥ?
build_dir-bridge/ ?ˤ?
etherboot
?ǥ??????????ɲ?ǽ?? kernel ??
picobsd.bin
?Ȥ???̾???Υե??åԥ????????????
¾?Υǥ??쥯?ȥ??ǥ????ѥ??뤵?줿????ʪ???????ޤ???
FOO/src
???Υ??????ĥ???ѹ????????????ϡ?
?????????????ñ??
picobsd --src FOO/src -n -v
bridge
???¹Ԥ????????????ޤ???
???????Ф????ѹ??ˤ??äơ????롼?ɥե???????
?饤?֥????˱ƶ????Ǥ??????ϡ??ǽ??ˤ???????????
ɬ?פ??????ޤ????㤨?С??ޤ??ǽ???
picobsd --src FOO/src --init # ??????
1 ??????ɬ?פǤ?
???¹Ԥ????ΤǤ???
???Τ褦???ѹ??????????̾??Ϥ??ĤǤ??¹Ԥ????Ǥ??礦??
????Ū?ˤϡ? picobsd
?ϥե??åԥǥ????????鵯ư?????ޤ??????ξ??硢ñ??
dd if=picobsd.bin
of=/dev/rfd0
???¹Ԥ??ƥ??ȡ????Ǥ??ޤ????????????С??ե??åԤ?
?֡??ȤǤ??ޤ???
????????ϡ??ɥǥ?????
(?ܥ??塼?????Τ⤷???ϥ??饤???? 1 ??)
???֤??Τˤ?Ʊ???ץ??????????ѤǤ??ޤ???
dd if=picobsd.bin of=/dev/ad2
dd if=picobsd.bin of=/dev/ad2s3
dd if=picobsd.bin of=/dev/ad2 oseek=NN
1
???ܤη????Ǥϡ?????????ǥ????????Τ˥??ȡ??뤷?ޤ???
???ΤȤ??ˤϡ???????ϥե??åԤ??Ф????Ȥ???Ʊ????ˡ??ư??ޤ???
2
???ܤη????Ǥϡ???????饤???ֹ?
3 ?˥??ȡ??뤷?ޤ?
(???Υ??饤??????????????Ƥ???¸?????Τ˽?ʬ???礭????
???äƤ???ɬ?פ??????ޤ?)??
???????????Τ??????ϡ????ꤷ???ѡ??ƥ????????????????ǥ?????
???٥뤬???äƤ??ʤ??????ˤ????????????????????ǥ????????٥???
???äƤ????????ˤϡ??????ͥ??ϥ??٥??????????ʤ??褦?ˤ???
?Ǥ??礦?? ???ξ??硢3
???ܤη??????Ȥ????Ȥ??Ǥ??ޤ???
NN
?ΤȤ????ϼºݤΥѡ??ƥ????????γ??ϰ??֤??֤??????Ƥ???????
(???ϰ??֤?
fdisk(8)
?????Ѥ????ȷ????Ǥ??ޤ?)??
???饤???˥????????¸???????Ǥ⡢?ޤ?ǧ???Ϥ????ʤ??Ȥ???
???Ȥ????դ??Ƥ?????????
???٥????????????????????ˤ?
disklabel(8)
???ޥ??ɤ????Ѥ??ʤ??ƤϤʤ??ޤ???
(?ɤ????Ƥ???ʹ???ʤ??Ǥ?????????)??
?????????Ԥ? 1 ?Ĥ???ˡ?Ȥ??Ƥϡ?
disklabel -w ad0s2 auto
disklabel -e ad0s2
?Ȥ??????ǥ????????ºݤΥѡ??ƥ??????????б??????Ԥ????Ϥ??ޤ???
?㤨?С???????? 2.88MB (5760 ??????)
?Ǥ??????硢?ѡ??ƥ?????????
?Ф??Ƽ??ιԤ????Ϥ???ɬ?פ??????ޤ?:
a:5760 0 4.2BSD 512 4096
???λ????ǡ????Υѡ??ƥ????????ϥ֡??Ȳ?ǽ?ˤʤ??ޤ???
????????????ϥ??饤???????? (?ѡ??ƥ???????
“c:
”
?Ȥ??Ƽ??????ޤ?)
?????⾮??????ǽ???????뤳?Ȥ????դ??Ƥ?????????
?⤦ 1 ?ĤΥ??ץ??????ˡ???????? CDROM
???֤??Ȥ??????Τ? ?????ޤ??? ?ǥ???????????
foo
???Ф??륤??????ǥ??쥯?ȥ?
build_dir-foo
?ˤ????Ȳ??ꤷ?ޤ????????????ȡ????Υ??ޥ??ɤǥ֡??Ȳ?ǽ??
“El Torito” ??????????????? (?????ˡ??Ƥ?)
???Ȥ??Ǥ??ޤ?:
mkisofs -b picobsd.bin -c boot.catalog -d -N -D -R -T \
-o cd.img build_dir-foo
burncd -f /dev/acd0c -s 4 data cd.img fixate
????????????? 1.44MB ?⤷???? 2.88MB
?????¤?????
???Ȥ????դ??Ƥ?????????????¾?Υ??????ǤϤޤ?ư??ʤ?
?Ǥ??礦??
picobsd
???Ѥ????????ˤ⤦ 1
?Ĥ???ˡ?ϡ??ͥåȥ??????
????????֡??Ȥ??뤳?ȤǤ???
???????¸????뤿???ˤϡ??????ѥ????ˤ???????ʪ?Ȥ???
?????Ǥ????̥????ͥ??????Ѥ???ɬ?פ??????ޤ???
?????ʤ??ܺ٤ˤĤ??Ƥϡ??ͥåȥ???֡??Ȥ˴ؤ???
?ɥ????????ȤȤ??Ƥ?????????
picobsd
?????ͥ??ϡ?ɸ??
FreeBSD kernel
?Ȥ??ƥ֡??Ȳ?ǽ?Ǥ???
picobsd
???֡??Ȥ????ˤϡ??ե??åԤ????????ƥޥ??????ꥻ?åȤ??ޤ???
?֡??ȼ?????ɸ???? FreeBSD
?֡??ȤȻ??Ƥ??ޤ???
?ե??åԤ????Υ֡??Ȥ????̤??????ˤ??ä????ȿʤߤޤ?
(1 ?? 2
ʬ?Ȥ??????????Ǥ?)??????????ϡ??ɥǥ???????
?????ѥ??ȥե??å??塢???뤤?? CDROM
????¸???Ƥ??????硢
???Ϥ??ä?®???ʤߤޤ???
etherboot
?????Ѥ??ơ??????ɺѤߤ??̤Υ????ͥ륤?????
?????ɤ??뤳?Ȥ??Ǥ??ޤ???
???Υ?????ϡ? picobsd
???۲???????????????????ʪ?Ǥ???
???ξ??硢10Mbit/s
???????ͥåȤǤ??????????ɻ??֤Ͽ??äˤʤ??ޤ???
?֡??ȸ??ϡ? picobsd
?ϡ????????ե????륷???ƥफ???롼?ȥե????륷???ƥ????????ɤ???
/sbin/init ????ư???ޤ??????????????? 1
???ܤΥ??????ȥ??åץ??????ץ?
/etc/rc ???Ϥ??ޤ??????Ԥ?
/etc ?????? /root
?ǥ??쥯?ȥ??˥ǥե????ȥե????뷲?Ȱ????????äƤ??ޤ???
?????ơ??֡??ȥǥХ?????Ʊ?ꤷ
(?ե??åԤ??ϡ??ɥǥ???????
?ѡ??ƥ???????)???????ƾ????ˤ??äƤϥ롼?ȥե????륷???ƥ???
???Ƥ??֡??ȥǥХ????????ɤ߹??????ե??????Ǿ????ޤ???
?????ˤ??äơ?Ʊ?????ǥ????˥???????????????
??¸???뤳?Ȥ???ǽ?Ǥ???
???Υե??????θ??Ǥϡ??桼???????Τ˻??Ѥ??褦?Ȥ??ʤ??¤?
?֡??ȥǥХ????Ϥ⤦???Ѥ????ޤ?????
???θ塢?????? 2 ???ܤΥ??????ץ?
/etc/rc1 ???Ϥ??ޤ?
(???Υ??????ץȤϥ֡??ȥǥХ???????????ǽ?Ǥ?)??
???Υ??????ץȤϡ? 1
?ֺǽ??ˤ??륤?????ͥåȥ??ե???????
MAC ???ɥ쥹???ˡ???????
/etc/hosts
?ե??????????å????åץơ??֥???
???Ѥ??ƥۥ???̾?ȥ????ƥ??Ȥ???Ϣ?Ť??褦?Ȥ??ޤ???
?????ơ??????ϥᥤ???Υ桼?????ꥹ?????ץ?
/etc/rc.conf
???Ϥ????ޤ??????Υե??????ϡ?
/etc/rc.conf.defaults
?ǻ????????ꤵ?줿?????Ĥ??????????ѿ????ͤ?
?????뤿???ˤ????ޤ???
hostname
?ѿ????Ѥ??ơ?Ʊ???ե????뤫?????ä???????
???????뤳?Ȥ??Ǥ??ޤ???
???椬???äƤ????顢 /etc/rc1
?Ͻ?????????λ???????Υ??????ץȤΰ????Ȥ???
?ͥåȥ?????ե??????????ꤷ?????ץ???????
?ե????????????????ꥹ?????ץ?
/etc/rc.firewall
???ƤӽФ??ޤ???
???Υ??????ץȤˤϡ??ȼ??Υե?????????????????????¸?Ǥ??ޤ???
?ǥե????ȤǤϡ?
picobsd
?ϡ????٤ƥᥤ???????꤫???¹Ԥ???????Ū???ᤷ?ʤ?????
?????å??ΰ??ϻ????ʤ??Τ??Ȥ??????Ȥ????դ??Ƥ?????????
/etc/rc1
???????????????ä????Ǥϡ??֡??ȥǥХ??????⤦???Ѥ????ޤ?????
???٤??????ޤ?????????Ū???ᤷ?ʤ????ФǤ???
picobsd
?????ƥ??α??ѤˤĤ??Ƥϡ??֡??Ȼ????ɤ߹??ޤ??뤤???Ĥ???
?ե????????̤?????????ǽ?Ǥ??ꡢɸ????
FreeBSD
?????ƥ????????ɤ????Ƥ??ޤ??????????ʤ??顢??¸???Ƥ????٤?
?ե????뤪???? /
?⤷???ϥ??????ޥ??????٤??ե?????????
???餷???????ˤ??äƥ??ڡ????????뤿????
¿???????ʰ㤤???????ޤ???
?????ե??????????Ǥϡ??㤤?????????Τˤϼ??Τ??Τ??????ޤ?:
- /etc/hosts
- ????Ū?ˡ????Υե??????ˤ? IP
?ȥۥ???̾?ȤΥޥåԥ?
???äƤ??ޤ???
???Υޥåԥ˲ä??ơ?
picobsd
?С????????Τ??Τˤϥ??????ͥå?
(MAC) ???ɥ쥹?ȥۥ???̾?Ȥ?
?ޥåԥ⼡?Τ褦?˴ޤޤ??Ƥ??ޤ?:
#ethertable start of the ethernet->hostname mapping
#mac_address hostname
# 00:12:34:56:78:9a pinco
# 12:34:56:* pallino
# * this-matches-all
?????ǡ?
“#ethertable
”
???ޤ????Ԥϥơ??֥??λϤޤ???ɽ???Ƥ??ޤ???
MAC
???ɥ쥹?????Ĥ????ʤ??ä????硢???Υ??????ץȤ?
?????ƥ??ѤΥۥ???̾?? IP
???ɥ쥹?????Ϥ????褦¥???ޤ???
?????Ƥ??ξ????? (??????????)
/etc/hosts
?ե?????????¸???????Ǵ?ñ?˥ǥ???????????¸?Ǥ????褦??
???ޤ???
???ɥ쥹???ˤϥ磻???ɥ????ɤ????ѤǤ??ޤ??Τǡ?????
?Ǹ??ιԤΤ褦?ˤ?????Ǥ?դ?
MAC ???ɥ쥹?˥ޥå?????
?????ƥ????????????ʤ??褦?ˤǤ????Ȥ??????Ȥ?
???դ??Ƥ?????????
- /etc/rc.conf
- ???Υե??????ˤϥ????ƥ??α??Ѿ????????椹???ѿ???
?????Ĥ??ޤޤ??Ƥ??ޤ????㤨?С????ե????????ꡢ
?롼?????ꡢ?ͥåȥ???????ӥ??ε?ư?ʤɤǤ???
?????????ѿ??????Τʥꥹ?Ȥ????Ӥ??ΰ?̣?ˤĤ??Ƥϡ?
/etc/rc.conf.defaults
?Ȥ??Ƥ?????????
?????????ѿ??????ˤϡ?
/etc
???Υե??????????Ƥ??Ĥ????Ǥ????褦?ˤ??????Τ?
?????Ȥ??????Ȥ˿????Ƥ??????ͤϤ????ޤ???
???Υ??ץ??????ϡ???????????
/etc/host.conf ??????
/etc/resolv.conf
?Ѥ????Ѳ?ǽ?Ǥ??????????Υե??????????Ƥϰ???Ū?ˤȤƤ?
???????????μ??ι??????Ԥ??ˤϸ????Ƥ??ޤ???
?????????ѿ??????Ѥ??????硢???Ԥ?Ŭ?ڤ˻Ȥ????Ȥ?˺???ʤ???
???????????㤨?С????Τ褦?ˤǤ???
host_conf="# ???ιԤ? /etc/host.conf ???????ޤ?
hosts
bind"
ɬ?ܤȤ????櫓?ǤϤ????ޤ??????Υե????????Ǥϡ?
/etc/rc.conf.defaults
?Ǽ????????ѿ????????ꤷ?ƤϤ????ޤ??????ơ?
?ͥåȥ??????ư???Ƥ??뤫?ɤ????˰ͤäƤ??ޤ??????ӥ???
??ư???????ˤ????٤??Ǥ???
?ͥåȥ???ε?ư?ϸ夫???Ǥ??Ԥ??ޤ???
firewall_enable=“YES
”
?????ꤷ?????硢 /etc/rc.firewall
???????ץȤ??ͥåȥ?????ե??????????????˵?ư?????ޤ??Τǡ?
?ե??????????????????ꤷ???????˥ͥåȥ???????ӥ?????ư?????ꡢ
?롼?ƥ????֥??å??ʤɤ?ͭ???ˤ??????Ǥ??ޤ???
- /etc/rc.firewall
- ???Υ??????ץȤ?
ipfw(4)
?ե??????????????????ꤹ?뤿???˻??Ѥ??뤳?Ȥ??Ǥ??ޤ???
?????ȥ????ˡ? fwcmd
?ѿ??ϥե??????????????ѥ??ޥ??ɤΥѥ?̾?????ꤵ???ޤ???
firewall_type ?ˤ?
/etc/rc.conf
?ե????????????ꤵ?줿?ͤ????äƤ??ꡢ
hostname
?ˤϥۥ??Ȥ˳??????Ƥ??줿̾???????äƤ??ޤ???
update
?Ȥ???̾???ξ????ʥ??????ץȤ????ꡢ???????Ѥ??ƥ֡??ȸ????ѹ?????
?ե????????Խ??????ꡢ?ǥ?????????¸???????Ǥ??ޤ???
???Υ??????ץȤ? 1
?Ĥޤ??Ϥ???????¿?????Хѥ?̾?????ꡢ
?????Ȥ????Ϥ??줿?ե????????Ф??ƥ??ǥ??????¹Ԥ?????????
?ե??????̤??????ԡ????ǥ?????????¸???ޤ?
(???????????????ǥǥ????????ޥ????? /
?????ޥ????Ȥ??ޤ?)??
????̵???Ǥ??Υ??????ץȤ???ư???????硢
update
?? rc.conf,
rc.firewall ??????
master.passwd
?ե????????Խ???????¸???ޤ???
?????? 1 ?Ĥ? /etc
(?ǥ??쥯?ȥ?̾????)
?Ǥ??????硢???Υ??ޥ??ɤϡ?/etc
?ǥ??쥯?ȥ??ˤ??ꡢ (?㤨?С???????
update?η???)
???Ǥ˥??ԡ????ǥ????????ˤ????ե???????
?ߤʥǥ??????? (?Խ???????)
??¸???ޤ???
Andrzej Bialecki ⟨abial@FreeBSD.org⟩
?Ǥ??? ???????ץȴ?Ϣ?λŻ???
Luigi Rizzo ⟨luigi@iet.unipi.it⟩
?????????Ѥ??ޤ????? ?ޥ˥奢???ڡ?????
Makefile ?κ????? Greg
Lehey ⟨grog@lemis.com⟩ ???Ԥ??ޤ?????
picobsd
?????ۤ????ݡ?
???ۺ??Ȥ??Ԥ??????ƥ??Υ????ͥ??ˤ?
vn(4)
?ɥ饤?Ф????ȡ??뤵???Ƥ??ʤ????Фʤ??ޤ?????
???ۤβ????? “root”
?Ǽ¹Ԥ??ʤ????Фʤ??ޤ?????
mdconfig(8)/vnconfig(8)
??
mount(8)
???¹Ԥ???ɬ?פ????뤿???Ǥ???
picobsd
?ι??ۤˤϡ??????????Ȥθ????ˤ????Ȥ??????????ޤ???
???????????ϡ?
?ɤ??????դ??ˤ????Хե??åԤˤԤä????ͤ????ळ?Ȥ??Ǥ??뤫??
Ƚ?Ǥ??뤳?ȤǤ???
????Ū????ˡ?ϻ??Ժ????????????ޤ?????