Thursday, March 28, 2013
2:19 PM

Squid Cache Youtube Maret 2013


Squid Cache Youtube Maret 2013

pico /etc/apt/sources.list
daftar repository nya :
=======================
deb http://kambing.ui.ac.id/ubuntu/ oneiric main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ oneiric-security main restricted universe multiverse
# ctrl + o (simpan), ctrl + x (keluar)

apt-get update -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
apt-get install acpid -y
apt-get install unzip -y
apt-get install libfile-readbackwards-perl -y
cd /tmp

wget -c http://fathayu.googlecode.com/files/LUSCA_HEAD-r14942.tar.gz
tar -xvzf LUSCA_HEAD-r14942.tar.gz
cd LUSCA_HEAD-r14942

./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/
mv /etc/init.d/squid /etc/init.d/squid.backup
wget -c http://fathayu.googlecode.com/files/squid
sudo chmod +x /etc/init.d/squid
/etc/init.d/squid stop

mkdir -p /usr/local/share/squid
chmod 777 /usr/local/share/squid
cd /usr/local/share/squid
wget -c http://fathayu.googlecode.com/files/supercache.conf
wget -c http://fathayu.googlecode.com/files/supercache.pl

chown proxy.proxy /cache1
chown proxy.proxy /cache2
chown proxy.proxy /cache3
chmod 777 /cache1
chmod 777 /cache2
chmod 777 /cache3

chown proxy.proxy /usr/local/share/squid/supercache.conf
chmod 777 /usr/local/share/squid/supercache.conf
chown proxy.proxy /usr/local/share/squid/supercache.pl
chmod 777 /usr/local/share/squid/supercache.pl
chmod +x /usr/local/share/squid/supercache.pl

cd /etc/squid/
mv squid.conf squid.conf.backup
wget -c http://fathayu.googlecode.com/files/squid.conf.youtube-supercache

cp squid.conf.youtube-supercache squid.conf

pico /etc/squid/squid.conf

squid -f /etc/squid/squid.conf -z
/etc/init.d/squid restart

squid -NDd1
reboot

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

0 comments:

Post a Comment