Πέμπτη, Σεπτεμβρίου 27, 2007

FreeBSD: Rebuild the World, and Recompile the Kernel

Login: root
password: password

Install cvsup-without-gui

# pkg_add -r cvsup-without-gui
# pkg_add -r fastest_cvsup

If you want to install these items via ports, the way would be like this "but as I mentioned, you can use the pkg_add method for these 2 applications without fear"

# cd /usr/ports/net/cvsup-without-gui; make install clean
# cd /usr/ports/sysutils/fastest_cvsup; make install clean

# cp /usr/share/examples/cvsup/standard-supfile /root
# cp /usr/share/examples/cvsup/ports-supfile /root

# ee /root/ports-supfile

CHANGE the following

*default host=CHANGE_THIS.FreeBSD.org
to
*default host=cvsup5.FreeBSD.org

Save and Quit [ esc a a ]

# ee /root/standard-supfile

CHANGE the following

*default host=CHANGE_THIS.FreeBSD.org
to
*default host=cvsup5.FreeBSD.org

Save and Quit [ esc a a ]

Update your source tree with this command. This process can also be expected to take a few minutes.

# cvsup -g -L 2 /root/standard-supfile
# cvsup -g -L 2 /root/ports-supfile

# cd /usr/src/sys/i386/conf/
# cp GENERIC CUSTOM

# cd /usr/src/
# make buildworld
# make buildkernel KERNCONF=GENERIC
# make installkernel KERNCONF=GENERIC
# reboot

Login: root
password: password

# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster
# reboot

Δεν υπάρχουν σχόλια: