Loginlah sebagai root, lalu ketikkan
# cd /usr/src/sys/i386/conf/
Backup kernel GENERIC anda. kernel GENERIC adalah kernel bawaan sistem saat anda menginstall FreeBSD. Copy file GENERIC menjadi GENERIC.lama (*misalnya.. Anda bebas menamai kernel baru anda, dengan nama pacar, sahabat, binatang, artis, dll. Wkkkk :D). Untuk mengcopy kernel GENERIC ketikkan:
[root@ /usr/src/sys/i386/conf]#cp GENERIC GENERIC.lama (cp (spasi) nama_kernel_asli (spasi) nama_kernel_backup).
lalu rubah file GENERIC menjadi nama file compile yg anda inginkan, biasanya kita menggunakan nama perusahaan atau nama kita sebagai namanya. Misalnya file kernel baru gw kasih nama WIGNYO, maka cukup mengetikkan:
[root@ /usr/src/sys/i386/conf]#mv GENERIC WIGNYO
Setelah itu edit file kernel baru anda dengan mengetik:
[root@ /usr/src/sys/i386/conf]#pico WIGNYO
Edit baris:
cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident GENERIC
Menjadi:
machine i386
#cpu I486_CPU
#cpu I586_CPU
cpu I686_CPU
ident lovely
Tambahkan option berikut pada baris terakhir:
## Tunning Squid
options SYSVMSG # SYSV-style message queues
options SYSVSHM # SYSV-style shared memory
options MSGMNB=16384
options MSGMNI=41
options MSGSEG=2049
options MSGSSZ=64
options MSGTQL=512
options SHMSEG=16
options MAXFILES=8192
#options NMBCLUSTERS=32768
options VFS_AIO
options SEMMSL=100
options SEMMNS=32000
options SEMOPM=100
options SEMMNI=100
options SHMMAX=1073741824
options SHMMNI=128
options SHMALL=16384
## Firewall
options IPFILTER
options IPFILTER_LOG
#options IPFILTER_DEFAULT_BLOCK
options IPFIREWALL
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPDIVERT
options IPFIREWALL_FORWARD
options IPV6FIREWALL
options IPV6FIREWALL_VERBOSE
options IPV6FIREWALL_VERBOSE_LIMIT=100
options IPV6FIREWALL_DEFAULT_TO_ACCEPT
#options IPFIREWALL_FORWARD_EXTENDED
#options RANDOM_IP_ID # pf option
## PF Device Enable
device pf
device pflog
device pfsync
device carp
## ALTQ enable
options ALTQ # Untuk mengaktifkan ALTQ Traffick shapping
options ALTQ_CBQ # Class Bases Queueing
#options ALTQ_WFQ # Weighted fair queueing
#options ALTQ_FIFOQ # Fifo queueing
#options ALTQ_FLOWVALVE # Flowvalve for RED (needs RED)
#options ALTQ_LOCALQ # Local use
options ALTQ_RED # Random Early Detection
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler
options ALTQ_CDNR # Traffic conditioner
options ALTQ_PRIQ # Priority Queueing
options ALTQ_NOPCC # Required for SMP build
#options ALTQ_JOBS # Joint buffer management and scheduling
#options ALTQ_IPSEC # Check ipsec in IPv4
#options ALTQ_BLUE # Blue by wu-chang feng
options ALTQ_DEBUG # For debugging
## Option Bandwidth Management
options DEVICE_POLLING
device atapicam
options DUMMYNET
options BRIDGE
options HZ=1000
## PPPoE ADSL TELKOM
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET
Lalu ketikkan:
[root@ /usr/src/sys/i386/conf]#config WIGNYO
Perintah di atas untuk membuat file config kernel WIGNYO, sesuaikan dengan nama kernel baru anda. Setelah itu FreeBSD akan membuat sebuah kernel baru di folder /usr/src/sys/i386/compile/
Selanjutnya bukalah folder compile kernel dengan perintah:
[root@ /usr/src/sys/i386/conf]#cd /usr/src/sys/i386/compile/WIGNYO
bila berhasil akan muncul baris:
Kernel build directory is ../compile/SATRAS.lama
Don't forget to do ``make cleandepend && make depend''
Setelah itu ketikkan:
[root@ /usr/src/sys/i386/compile/WIGNYO]#make cleandepend
Setelah selesai ketikkan:
[root@ /usr/src/sys/i386/compile/WIGNYO]#make depend
Kemudian:
[root@ /usr/src/sys/i386/compile/WIGNYO]#make
[root@ /usr/src/sys/i386/compile/WIGNYO]#make install
[root@ /usr/src/sys/i386/compile/WIGNYO]#make install clean
Setelah selesai semua langkah di atas reboot FreeBSD anda.
Maka setelah anda masuk ke dalam system anda telah menggunakan kernel hasil compile anda, yaitu WIGNYO. Untuk melihatnya ketikkan perintah:
[root@ ]#uname -a
dan akan muncul baris:
FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Sun Nov 23 07:23:57 WIT 2008 root@:/usr/src/sys/i386/compile/WIGNYO
23 November 2008
Load Balancing pada FreeBSD 7.0
Yup, kali ini gw akan coba sedikit sharing tentang instalasi dan konfigurasi Load Balancing di FreeBSD 7.0. Siapkan segelas air putih dan sebutir redoxon plus satu kapsul sangobion. Hehe ini obat penambah darah gw, secara gw divonis darah rendah sama dokter. <== yg ini jangan dipraktekkan ye.. Balik lg ke load balancing di freeBSD 7.0, pastikan anda telah menginstall core dari FreeBSD 7.0, siapkan paket2 awal kesayangan anda, seperti bash, pico, sudo, dll. Hal pertama yang harus kita lakukan adalah compile kernel GENERIC anda karena ada beberapa option tambahan pada kernel. Langkah-langkah compile kernel:
Langganan:
Poskan Komentar (Atom)
2 feedback:
ini seh bakar kernel to... load balancingnya dmana mas?
wah ga mudeng, hehehe...
Poskan Komentar