Installasi LUSCA_HEAD-r14809-YOUTUBE.PACTH

# This is The List
deb http://kambing.ui.ac.id/ubuntu/ precise main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-backports main restricted universe multiverse

# Update and Install
apt-get update -y
apt-get install 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
apt-get install acpid -y
apt-get install libfile-readbackwards-perl -y
apt-get install dnsmasq -y
cd /tmp

# Download, Extrack and Patch
wget -c https://www.dropbox.com/s/f9msl2mekxwbye8/LUSCA_HEAD-r14809.tar.gz
tar -xvzf LUSCA_HEAD-r14809.tar.gz
cd LUSCA_HEAD-r14809
wget -c https://www.dropbox.com/s/emmc9fbahovr4lt/LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
tar -xvzf LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
patch -p0 < 3xx-loop.diff
patch -p0 < async-issue.diff
patch -p0 < http-gzip.diff
patch -p0 < ignore-must-revalidate.diff
patch -p0 < improve-nn-parser.diff
patch -p0 < lusca-vary.diff
patch -p0 < segmentation-fault.diff

# Compile
./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-async-io=24 \
--with-aufs-threads=24 \
--with-pthreads \
--enable-storeio=aufs \
--enable-linux-netfilter \
--enable-arp-acl \
--enable-epoll \
--enable-removal-policies=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 \
--enable-referer-log \
--with-maxfd=65536

make
make install

cd /etc/init.d/
wget -c https://www.dropbox.com/s/pwd0yhunvb0xb9p/squid.init.ubuntu
mv /etc/init.d/squid.init.ubuntu /etc/init.d/squid
chmod +x /etc/init.d/squid
/etc/init.d/squid stop

cd /etc/squid
mv squid.conf squid.conf.backup
wget https://www.dropbox.com/s/JASA-SETTING-PROXY-089637490907/squid.conf
wget https://www.dropbox.com/s/JASA-SETTING-PROXY-089637490907/storeurl.pl
wget https://www.dropbox.com/s/JASA-SETTING-PROXY-089637490907/tunning.conf
chown proxy:proxy /cache
chmod 777 /cache
chown proxy:proxy /etc/squid/tunning.conf
chmod 777 /etc/squid/tunning.conf
chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl
chmod +x /etc/squid/storeurl.pl

# Edit squid.conf With Your Config
pico /etc/squid/squid.conf

mkdir /var/log/squid
chown proxy:proxy /var/log/squid
chmod 777 /var/log/squid
squid -f /etc/squid/squid.conf -z
/etc/init.d/squid restart
squid -NDd1

update-rc.d squid defaults 

tail -f /var/log/squid/access.log | ccze