Senin, 05 Oktober 2009

Upgrade Kernel Release ke Stable pada FreeBSD 7.0


Baca Bismillah dulu sebelum ngelakuin sesuatu
Siapkan bekal makanan dan minuman karena akan memakan waktu kurang lebih 6 jam tergantung dari koneksi internet ente

Sebelumnya lihat dulu versi FreeBSD ente
#uname -a --> sebagai contoh punya gue nih

FreeBSD zanjabil.satnetcom.com 7.2-Release FreeBSD 7.0-Release #1: Sat Oct 3 01:04:46 CIT 2009 root@zanjabil.satnetcom.com:/usr/obj/usr/src/sys/GENERIC i386

Di sini kita menggunakan CVSUP untuk mengupgradenya, oleh sebab itu kita install dulu CVSUP nya.
Untuk instalasi CVSUP membutuhkan koneksi internet

============================================================
Instalasi CVSUP
============================================================
#cd /usr/ports/net/cvsup-without-gui
#make install clean



tunggu sampe selesai kira2 1 jam lah tergantung koneksi internet ente
setelah instalasi selesai kita tinggal update ports dan stablenya.
ports-supfile = memudahkan instalasi paket melalui port
stable-supfile = sebagi update kernelnya ke stable

#ee /usr/share/examples/cvsup/ports-supfile --> edit file ports-upfile
edit pada bagian :
*default host=CHANGE_THIS.FreeBSD.org --> Server CVSUP
menjadi
*default host=cvsup.sg.FreeBSD.org
CHANGE_THIS = merupakan server CVSUP bisa diganti sesuai dengan server terdekat dari ISP anda
disini kita menggunakan cvsup.sg.freebsd.org
tekan tombos Esc kemudian Save changes

#ee /usr/share/examples/cvsup/stable-supfile --> edit file stable-upfile
langkahnya sama seperti edit file ports-supfile

sekarang kita update port dan stable nya dahulu dengan perintah
#/usr/local/bin/cvsup -g -L 2 /usr/share/examples/cvsup/ports-supfile
#/usr/local/bin/cvsup -g -L 2 /usr/share/examples/cvsup/stable-supfile

nah klo udah tinggal kita mau edit atau buat baru kernelnya sesuai dengan kebutuhan ente
klo cuma mau upgrade ke stable aja gunakan perintah ini :
#cd /usr/src
#make buildworld && make buildkernel
#make installkernel && reboot

Tapi klo mau edit kernel nya ikuti cara berikut :
#cp /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/KERNELBARU
#ee /usr/src/sys/i386/conf/KERNELBARU --> edit dan tambahkan menjadi seperti di bawah ini :

ident KERNELBARU #harus sama dengan nama kernelnya
maxusers 512

# Options for Firewall
options IPFIREWALL
options IPFIREWALL_FORWARD
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT

options DUMMYNET
options IPSTEALTH
#options BRIDGE
options DEVICE_POLLING

# Options for NAT using PF
device pf
device pflog
device pfsync
options HZ=1000

# Options for Squid diskd
options MSGMNB=32768 # max # of bytes in a queue
options MSGMNI=164 # number of message queue identifiers
options MSGSEG=8196 # number of message segments per queue
options MSGSSZ=512 # size of a message segment
options MSGTQL=2048 # max messages in system

# Options for Limiter
options ALTQ
options ALTQ_CBQ # Class Bases Queuing (CBQ)
options ALTQ_RED # Random Early Detection (RED)
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC)
options ALTQ_CDNR # Traffic conditioner
options ALTQ_PRIQ # Priority Queuing (PRIQ)
options ALTQ_NOPCC # Required for SMP build

options IPSEC
options IPSEC_DEBUG
#options IPSEC_ESP
options IPFILTER
options IPFILTER_LOG
#options TCP_DROP_SYNFIN

device crypto

#Packet Filter Options

device pf
device pflog
device pfsync

tekan Esc pilih Save changes

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

#cd /usr/src
#make installworld
#ee /etc/crontab
Tambahkan skrip ini
*/5 * * * * root /usr/libexec/locate.updatedb --> supaya update database filenya tiap 5 menit sekali

#uname -a --> untuk melihat versi FreeBSD dan kernel yg digunakan sebagai contoh :
FreeBSD zanjabil.satnetcom.com 7.2-STABLE FreeBSD 7.2-STABLE #1: Sat Oct 3 01:04:46 CIT 2009 root@zanjabil.satnetcom.com:/usr/obj/usr/src/sys/KERNELBARU i386klo udah kelar dan sukses jgn lupa baca Alhamdulillah klo perlu wudhu dulu trus sujud syukur. mantafff
segala cacian,makian,umpatan,kritikan,marah2 silahkan aja

Tidak ada komentar:

Posting Komentar