Compile squid si freeBSD membutuhkan perl. Jadi harus compile perl dulu. #Tuning For Squid #IPFW # options Bandwidth Management #IPF “Don’t Use # PF Device ENABLE # ALTQ ENABLED
Kemaren pas compile error
FATAL: ERROR: Unknown policy heap
Squid Cache (Version 2.6.STABLE18): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.003 user + 0.001 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
optionnya kurang --enable-removal-policies=heap
Karena lum konek internet, ngambil squid sama perlnya dari flash disk:
#mount /dev/da0 /mnt
bla bla bla ---- lupa tapi yang jelas ga bisa
coba lagi
#mount_msdosfs /dev/da0 /mnt
bla bla bla --- kamudian cek di /mnt ternyata dah masuk :)
tinggal copy squid dan perl ke /urs/src dan compile
Pas compile kernel tambahin option berikut (dapat dari google-- lupa situsnya)
options MSGMNB=16384 # max # of bytes in a queue
options MSGMNI=41 # number of message queue identifiers
options MSGSEG=2049 # number of message segments per queue
options MSGSSZ=64 # size of a message segment
options MSGTQL=512 # max messages in system
options SHMSEG=16
options SHMMNI=32
options SHMMAX=2097152
options SHMALL=4096
options MAXFILES=8192
options NMBCLUSTERS=32768
options VFS_AIO
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT
options DUMMYNET
options BRIDGE
options HZ=1000
# options IPFILTER
# options IPFILTER_LOG
# options IPFILTER_DEFAULT_BLOCK
# options RANDOM_IP_ID
device pf
device pflog
device pfsync
device bpf # default
options INET # default
options INET6 # default
#options RANDOM_IP_ID
#options PFIL_HOOKS
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_PRIQ # Priority Queuing (PRIQ)
options ALTQ_NOPCC # Required for SMP build
Mempercepat waktu booting FreeBSD
# boot0cfg -t 18 /dev/ad0
ini untuk merubah waktu pemilihan OS menjadi 1 detik
Kemudian edit file /boot/default/loader.conf
bisa dengan ee, vi, nano atau editor lain
#nano -w /boot/default/loader.conf
cari teks # autoboot_delay=”10″
rubah jadi autoboot_delay=”1″
ini untuk merubah waktu tampilan menu booting manjadi 1 detik



0 comments:
Post a Comment