pico /etc/apt/sources.list
deb http://id.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://id.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://id.archive.ubuntu.com/ubuntu/ xenial universe
deb http://id.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://id.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://id.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://id.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-proposed 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-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise main restricted universe multiverse
apt-get update &&
apt-get install gcc -y &&
apt-get install build-essential -y &&
apt-get install libstdc++6 -y &&
apt-get install unzip -y &&
apt-get install bzip2 -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 &&
wget -c http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz &&
tar -xvzf squid-2.7.STABLE9.tar.gz &&
cd squid-2.7.STABLE9 &&
./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 \
--enable-icap-client \
--enable-http-violations \
--enable-useragent-log \
--with-maxfd=65536 &&
make &&
make install
mkdir /var/log/squid &&
chown proxy:proxy /var/log/squid
rm /etc/squid/squid.conf &&
cd /etc/squid/
wget -c http://download1506.mediafire.com/4dr2i82s89og/1a4cvy4363ahwhb/squid.conf &&
wget -c http://download1499.mediafire.com/kgpl0qlkmhcg/95zvs7l4742bkb9/storeurl.pl &&
chmod +x /etc/squid/storeurl.pl &&
chown proxy:proxy /cache1 &&
chown proxy:proxy /cache2 &&
chown proxy:proxy /cache3 &&
chmod -R 777 /cache1 &&
chmod -R 777 /cache2 &&
chmod -R 777 /cache3 &&
squid -z &&
cd /etc/init.d/
wget -c http://download1649.mediafire.com/bbo3iqw5610g/qhz55hcbhhj4f9b/squid &&
chmod +x /etc/init.d/squid &&
reboot
/etc/init.d/squid restart &&
update-rc.d squid defaults
squid -NdD1
tail -f /var/log/squid/access.log | ccze
deb http://id.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://id.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://id.archive.ubuntu.com/ubuntu/ xenial universe
deb http://id.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://id.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://id.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://id.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-proposed 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-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise main restricted universe multiverse
apt-get update &&
apt-get install gcc -y &&
apt-get install build-essential -y &&
apt-get install libstdc++6 -y &&
apt-get install unzip -y &&
apt-get install bzip2 -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 &&
wget -c http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz &&
tar -xvzf squid-2.7.STABLE9.tar.gz &&
cd squid-2.7.STABLE9 &&
./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 \
--enable-icap-client \
--enable-http-violations \
--enable-useragent-log \
--with-maxfd=65536 &&
make &&
make install
mkdir /var/log/squid &&
chown proxy:proxy /var/log/squid
rm /etc/squid/squid.conf &&
cd /etc/squid/
wget -c http://download1506.mediafire.com/4dr2i82s89og/1a4cvy4363ahwhb/squid.conf &&
wget -c http://download1499.mediafire.com/kgpl0qlkmhcg/95zvs7l4742bkb9/storeurl.pl &&
chmod +x /etc/squid/storeurl.pl &&
chown proxy:proxy /cache1 &&
chown proxy:proxy /cache2 &&
chown proxy:proxy /cache3 &&
chmod -R 777 /cache1 &&
chmod -R 777 /cache2 &&
chmod -R 777 /cache3 &&
squid -z &&
cd /etc/init.d/
wget -c http://download1649.mediafire.com/bbo3iqw5610g/qhz55hcbhhj4f9b/squid &&
chmod +x /etc/init.d/squid &&
reboot
/etc/init.d/squid restart &&
update-rc.d squid defaults
squid -NdD1
tail -f /var/log/squid/access.log | ccze
Tidak ada komentar:
Posting Komentar