Minggu, 17 Juni 2012

lusca ubuntu server 11.10

install lusca di ubuntu server 11.10

Login ke root cek Ping google, jika ok  lanjutkan,..

1. Copas kode dibawah ini dan pastekan di terminal PuTTY ( klik kanan lalu Enter )

apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get install squid -y && apt-get install squid squidclient squid-cgi -y && apt-get install gcc -y && apt-get install build-essential -y && apt-get install sharutils -y && apt-get install ccze -y && apt-get install libzip-dev -y && apt-get install automake1.9 -y && wget http://proxy-ku.googlecode.com/files/LUSCA_FMI.tar.gz && tar xzvf LUSCA_FMI.tar.gz && cd LUSCA_FMI/ && make distclean

2. Copas kode Compile dibawah ini dan pastekan di terminal PuTTY


./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-http-gzip --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=lru,heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536 && make && make install

3. Copy file-file berikut dengan Program WinSCP
- File "squid.conf" yang telah disesuaikan ke folder: /etc/squid/
- File "storeurl.pl" ke folder: /etc/squid/
- File "squid" ke folder: /etc/init.d/
(file2 racikan sdh di sharing di google.doc)

4. Memberikan izin akses  user  + install perl

chmod +x /etc/init.d/squid && /etc/init.d/squid stop
apt-get install perl
perl -v (sinkronkan versi perl dg storeurl nya)

ln -s /usr/local/bin/perl5.12.4 /usr/local/bin/perl


5. Permission pada folder cache (utk 10 partisi cache)

chown proxy:proxy /cache1 && chmod 777 /cache1
chown proxy:proxy /cache2 && chmod 777 /cache2
chown proxy:proxy /cache3 && chmod 777 /cache3
chown proxy:proxy /cache4 && chmod 777 /cache4
chown proxy:proxy /cache5 && chmod 777 /cache5
chown proxy:proxy /cache6 && chmod 777 /cache6
chown proxy:proxy /cache7 && chmod 777 /cache7
chown proxy:proxy /cache8 && chmod 777 /cache8
chown proxy:proxy /cache9 && chmod 777 /cache9
chown proxy:proxy /cache10 && chmod 777 /cache10
chown proxy:proxy /etc/squid/storeurl.pl && chmod 777 /etc/squid/storeurl.pl && chmod +x /etc/init.d/squid


6. Membuat folder swap/cache di dalam folder cache
============================================
/etc/init.d/squid stop
squid -f /etc/squid/squid.conf -z && /etc/init.d/squid restart

7. auto shutdown dengan tombol power

apt-get install acpid

reboot

1 komentar:

  1. bro file2 racikan sdh di sharing di google.doc, dimana ya, ane nyari2 kok ga ketemu.... ampe nanya mbah google, katanya dia juga belum liat tuh.... makasih sharing ilmunya

    BalasHapus