[FreeBSD 4.x ¼Ò½º ¾÷µ¥ÀÌÆ®]
-- san2(at)linuxchannel.net
-- 2004.08.25
¹Ýµå½Ã ¼ø¼¸¦ Áöų °Í
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.
html
--
0. cvsup ¼³Ä¡
shell> cd /usr/ports/net/cvsup && make install clean
shell> rehash (csh À̶ó¸é)
1. cvsup À¸·Î ¼Ò½º ¹Þ±â
- stable-supfile : °°Àº major ³Ñ¹ö ¾÷µ¥ÀÌÆ®
- standard-supfile : º¸¾È ¾÷µ¥ÀÌÆ®¸¸
-- /usr/share/examples/cvsup/standard-supfile ÆÄÀÏ ÆíÁý ----
...
*default host=cvsup.kr.FreeBSD.org
...
## 4.x ¿¡¼ 4.10 À¸·Î
## ¸¸¾à °°Àº ¹öÀü(4.9)ÀÇ º¸¾ÈÆÐÄ¡¸¸ ÇÏ°í ½ÍÀº °æ¿ì´Â RELENG_4_9
##
default release=cvs tag=RELENG_4_10
...
src-all
...
---------------------------------------------------------
shell> cvsup -g -L 2 -h cvsup2.kr.freebsd.org
/usr/share/examples/cvsup/standard-supfile
-g Don't use the GUI (implied if $DISPLAY is not set)
-L n Verbosity level for "-g" (0..2, default 1)
/usr/src ¿¡ ¼Ò½º¸¦ fetch Çϱ⠶§¹®¿¡ ¾à 400~1G Á¤µµ ¿©À¯ °ø°£ÀÌ ÇÊ¿äÇÔ
2. Áغñ ¹× È®ÀÎ
shell> vi /etc/make.conf (ÄÄÆÄÀÏ ¿É¼Ç ¹× ¸ÂÃãÄ¿³Î À̸§ ¼³Á¤, KERNCONF?=custom)
shell> mount -u -o async,noatime /usr (ºü¸¥ ÄÄÆÄÀÏÀ» À§Çؼ)
shell> cd /usr/obj; chflags -R noschg *; rm -rf *
shell> cd /usr/src; make clean
shell> cd /usr/src/sys/i386/conf (¸ÂÃã Ä¿³Î ¼³Á¤)
shell> ln -s GENERIC custom
*Âü°í) Ä¿³Î ¼³Á¤
--------------------------------------------------
-device atkbd0 at atkbdc? irq 1 flags 0x1
+device atkbd0 at atkbdc? irq 1 flags 0x0
-device ed0 at isa? disable port 0x280 irq 10 iomem 0xd8000
-device ex
-device ep
-device fe0 at isa? disable port 0x300
+#device ed0 at isa? disable port 0x280 irq 10 iomem 0xd8000
+#device ex
+#device ep
+#device fe0 at isa? disable port 0x300
-pseudo-device sl 1 # Kernel SLIP
-pseudo-device ppp 1 # Kernel PPP
+#pseudo-device sl 1 # Kernel SLIP
+#pseudo-device ppp 1 # Kernel PPP
-pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
+#pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
--------------------------------------------------
3. Çٽɼҽº ºôµå(make buildworld)
shell> cd /usr/src
shell> make -DNOCLEAN -j 4 buildworld
-DNOCLEAN ¿É¼ÇÀº `no clean' À» ÀǹÌ(ÄÄÆÄÀÏ ½ÇÆнÃ)
½Ã°£ÀÌ ¿À·¡ °É¸²
4. Ä¿³Î ºôµå(make buildkernel)
shell> cd /usr/src
shell> make -DNOCLEAN -j 4 buildkernel
5. Ä¿³Î ¼³Ä¡(make installkernel)
shell> cd /usr/src
shell> make -DNOCLEAN -j 4 installkernel
6. ÀçºÎÆà ¹× Ä¿³Î Å×½ºÆ®
shell> shutdown -r now (or `reboot')
...
shell> uname -a
7. ½Ì±Û¸ðµå·Î ÀçºÎÆÃ
shell> reboot
...
: boot -s (loader prompt)
8. mergemaster -p (Pre-buildworld mode)
shell> mergemaster -p; // `d' --> <Enter> ¼øÀ¸·Î ÀÔ·Â
9. Çٽɼҽº ¼³Ä¡(make installworld)
shell> cd /usr/src
shell> make -DNOCLEAN -j 4 installworld
10. mergemaster (/etc º¯°æ)
shell> mergemaster
11. /dev º¯°æ
shell> ( cd /dev && sh MAKEDEV all )
12. /stand ¾÷µ¥ÀÌÆ®
shell> ( cd /usr/src/release/sysinstall && make all install )
13. ÀçºÎÆÃ
shell> reboot
14. µ¿ÀÏÇÑ ¹öÀüÀÇ ¿©·¯´ë¸¦ ¾÷µ¥ÀÌÆ®ÇÒ ¶§(¿¹)
- MASTER : 192.168.10.3
- SLAVE : 192.168.10.4 192.168.10.5
1) MASTER -- NFS server : À§ÀÇ 12 °úÁ¤À» ¸ðµÎ ¸¶Ä£ »óÅ¿¡¼
-- /etc/exports ------------------------------------------------------
/usr/src /usr/obj -maproot=root -network=192.168.10.0 -mask=255.255.255.0
----------------------------------------------------------------------
(ÆÄÀÏÀÌ ¾ø´Ù¸é Á÷Á¢ »ý¼º)
¸¸¾à /usr/src /usr/obj °¡ °¢°¢ ´Ù¸¥ ÆÄƼ¼ÇÀ̶ó¸é
-- /etc/exports ------------------------------------------------------
/usr/src -maproot=root -network 192.168.10.0 -mask 255.255.255.0
/usr/obj -maproot=root -network 192.168.10.0 -mask 255.255.255.0
----------------------------------------------------------------------
(¸¸¾à /usr/src ¶Ç´Â /usr/obj °¡ ´Ù¸¥ ÆÄƼ¼ÇÀ¸·Î ¸µÅ©µÇ¾ú´Ù¸é
½ÇÁ¦ ÇØ´ç ÆÄƼ¼ÇÀÇ µð·ºÅ丮·Î Àû¾îÁà¾ß ÇÔ)
-- /etc/rc.conf ------------------------------------------------------
nfs_server="yes"
nsf_server_flags="-u -t -n 4"
----------------------------------------------------------------------
-n 4 ´Â µ¿½Ã¿¡ 4°³ÀÇ ÄÄÇ»ÅÍ¿¡¼ °øÀ¯¸¦ Çã¿ëÇÔ
or
shell> nfsd -u -t -n 4
shell> mountd -r (mount daemon À» ÀǹÌ)
/etc/exports ÆÄÀÏÀ» °íÃÆ´Ù¸é,
shell> kill -s HUP `cat /var/run/mountd.pid`
2) SLAVE -- NFS client
-- /etc/fstab ---------------------------------------------------------
192.168.0.3:/usr/src /usr/src nfs rw 2 2
192.168.0.3:/usr/obj /usr/obj nfs rw 2 2
-----------------------------------------------------------------------
ÈÄ ÀçºÎÆÃÇÔ
or
shell> mv /usr/src /usr/src.orig
shell> mv /usr/obj /usr/obj.orig
shell> mkdir /usr/src /usr/obj
shell> mount -t nfs -o rw 192.168.0.3:/usr/src /usr/src
shell> mount -t nfs -o rw 192.168.0.3:/usr/obj /usr/obj
shell> mount -p (È®ÀÎ)
3) ¼Ò½º ¹× Ä¿³Î ¼³Ä¡(5,8,9,10 ¹ø Ç׸ñ ³»¿ëÀ» ±×´ë·Î)
shell> cd /usr/src
shell> make installkernel
shell> make installworld
shell> mergemaster
shell> ( cd /dev && sh MAKEDEV all )
shell> ( cd /usr/src/release/sysinstall && make all install )
4) ¿ø·¡´ë·Î º¹±¸ ¹× ÀçºÎÆÃ
shell> cd /
shell> umount /usr/src && rm -rf /usr/src
shell> umount /usr/obj && rm -rf /usr/obj
shell> mv /usr/src.orig /usr/src
shell> mv /usr/obj.orig /usr/obj
shell> reboot
EOF
|