Install Squid Version LUSCA_HEAD-r14942 Di Ubuntu Server 14.04


Install Squid Version LUSCA_HEAD-r14942 Di Ubuntu Server 14.04
Anggap saja Ubuntu Server 14.04 sudah terinstall dengan benar.
Langkah-langkah Install Squid Version LUSCA_HEAD-r14942 Di Ubuntu Server 14.04 adalah sbb :
Login di Ubuntu Server 14.04, untuk create ROOT mode gunakan
# sudo su
# passwd --- password untuk mode ROOT.

Untuk gunakan Winscp liat disini,
 Edit  " sshd_config " dengan mengetik :
nano /etc/ssh/sshd_config

#Ubah alamat Repository
# nano /etc/apt/sources.list
Disini.

Cek Lancard :
ifconfig -a
sudo nano /etc/network/interfaces

Install Paket yg di butuhkan :
Cek disini.
# sudo apt-get update
# sudo apt-get upgrade
# sudo apt-get install squidclient squid-cgi
# sudo apt-get install gcc
# sudo apt-get install build-essential
# sudo apt-get install sharutils
# sudo apt-get install ccze
# sudo apt-get install libzip-dev
# sudo apt-get install automake1.9
# sudo apt-get install libfile-readbackwards-perl

atau
sudo apt-get update &&
sudo apt-get upgrade -y &&
sudo apt-get install squidclient squid-cgi -y &&
sudo apt-get install gcc -y &&
sudo apt-get install build-essential -y &&
sudo apt-get install libstdc++6 -y &&
sudo apt-get install unzip -y &&
sudo apt-get install bzip2 -y &&
sudo apt-get install sharutils -y &&
sudo apt-get install ccze -y &&
sudo apt-get install libzip-dev -y &&
sudo apt-get install automake1.9 -y &&
sudo apt-get install acpid -y &&
sudo apt-get install libfile-readbackwards-perl -y
======================================
# sudo apt-get install acpid
# sudo apt-get install multitail

===================================

LUSCA_HEAD-r14942 :
# wget http://zestnet.googlecode.com/files/LUSCA_HEAD-r14942.tar.gz
# tar xzvf LUSCA_HEAD-r14942.tar.gz
# cd LUSCA_HEAD-r14942

Sebelum compile lakukan perintah ini :
# ./bootstrap.sh

Ok sekarang dimulai tahap compile nya :
Lihat Proc :
# cat /proc/cpuinfo
http://en.gentoo-wiki.com/wiki/Safe_Cflags
http://wiki.gentoo.org/wiki/Safe_CFLAGS#A4.2FA6.2FA8-XXXX_.2F_XXXXM


Kalau pakai CPU >>> AMD Liano :
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
CXXFLAGS="${CFLAGS}"

atau

CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="3dnow 3dnowext mmx mmxext sse sse2 sse3 sse4a"

## Configure Squid Lusca_Head :
./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=48 \
--with-aufs-threads=48 \
--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

Selanjutnya, ketik perintah berikut di terminal :
======================================================
sudo make all

sudo make install

squid -v
service --status-all
sudo /etc/init.d/squid status

Buat file perintah untuk squid :
# nano /etc/init.d/squid
Lihat disini.
Lalu :
# sudo chmod +x /etc/init.d/squid

Edit squid.conf
# stop dulu squid :
sudo /etc/init.d/squid stop

Masukan filesquid.conf
# nano /etc/squid/squid.conf
Masukan : file squid.conf yg baru sesuai dengan jaringan

# nano /etc/squid/storeurl.pl
Masukan : file storeurl.pl

chown proxy:proxy /etc/squid/squid.conf
chmod 777 /etc/squid/squid.conf

chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl


Langkah selanjutnya :
Memberikan permission pada folder 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
Dan seterusnya (sesuaikan dengan partisi).

chown proxy:proxy /etc/squid/cachemgr.conf
chmod 777 /etc/squid/cachemgr.conf
chown proxy:proxy /etc/squid/mime.conf
chmod 777 /etc/squid/mime.conf
chown proxy:proxy /data
chmod 777 /data
chown proxy:proxy /coredump
chmod 777 /coredump
chown proxy:proxy /usr/share/squid
chmod 777 /usr/share/squid
chown proxy:proxy /var/run/
chmod 777 /var/run/
chown proxy:proxy /var/spool/squid
chmod 777 /var/spool/squid
chown proxy:proxy /var/log
chmod 777 /var/log
chown proxy:proxy /usr
chmod 777 /usr

Cek squid :
squid -k parse
atau
squid -f /etc/squid/squid.conf -k parse

Membuat folder‐folder swap/cache di dalam folder cache yang telah ditentukan dg perintah :
# sudo squid -f /etc/squid/squid.conf -z

======================================
#cek error squid :

sudo squid -NDd1

Reboot squid...
Jalankan squid proxy dengan perintah :
# sudo /etc/init.d/squid start

Cek status squid proxy :
squid -v
service --status-all
sudo /etc/init.d/squid status
Supaya bisa auto start squid proxynya, taruh perintah /etc/init.d/squid start di rc.local.
Selamat Mencoba....!!!!!

3 komentar:

Traffic Counter Site



PageRank Checker
View additional information about zest-warnet.info through Majestic SEO Site Explorer.
zest-warnet.info review, PageRank, website value and SEO analytics
zest-warnet.info Webutation

Flag Counter

 © www.zest-warnet.info |Get This Widget |

Arsip