Partisi Hardisk
/boot 100 MB noatime bootflag on
/ 10 GB noatime
/swap 2 GB
/cache reiserFS notail, noatime
Sofeware:
Open SSH
mv /etc/apt/sources.list /etc/apt/sources.list.asli
nano /etc/apt/sources.list
deb http://dl2.foss-id.web.id/ubuntu/ natty main restricted universe multiverse
deb-src http://dl2.foss-id.web.id/ubuntu/ natty main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://dl2.foss-id.web.id/ubuntu/ natty-updates main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ natty-security main restricted universe multiverse
deb-src http://dl2.foss-id.web.id/ubuntu/ natty-security main restricted universe multiverse
sudo apt-get update
cd /tmp
tar xzvf squid-2.7.STABLE9+patch.tar.gz
cd squid-2.7.STABLE9
apt-get install gcc build-essential
CHOST="i686-pc-linux-gnu" \
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" \
./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 \
--with-maxfd=65536 \
make && make install
cd ..
cp storeurl.pl /etc/squid/
chmod +x /etc/squid/storeurl.pl
mv /etc/squid/squid.conf /etc/squid/squid.conf.asli
nano /etc/squid/squid.conf
chmod 777 /cache1 /cache2 /cache3 /cache4 /cache5 /cache6
chown -Rf proxy.proxy /cache1 /cache2 /cache3 /cache4 /cache5 /cache6
mkdir -p /var/log/squid
chmod 777 /var/log/squid
squid -z
squid -d 1
apt-get install squidclient
squidclient mgr:info
squidclient -h 192.168.200.2 -p 3128 mgr:info
squid autorun pada saat boot
perintahnya:
nano /etc/rc.local
sebelum exit
ketik ini
squid -sYD
apt-get install ccze
tail -f /var/log/squid/access.log | ccze
sudo apt-get install multitail
multitail -s 2 /var/log/squid/access.log
apt-get install acpid
apt-get install apache2 libapache2-mod-php5 php5-mysql phpsysinfo
chmod 775 /var/www/phpsysinfo
192.168.200.2/phpsysinfo/index.php?disp=dynamic
sudo apt-get install python-dev
wget http://squid-proxy-pkg.googlecode.com/files/squidmon.py
chmod +x squidmon.py
cat /var/log/squid/access.log | python squidmon.py
nano /etc/ssh/sshd_config
/etc/init.d/ssh restart
nano /usr/sbin/hit
#!/bin/bash
tail -f /var/log/squid/access.log | ccze
lalu save, kemudian
chmod +x /usr/sbin/hit
dari directory manapun kl mo lihat LOG access.log tinggal ketik "hit" aja (tanpa kutip)
update relise baru ubuntu
do-release-upgrade
apa-get install toilet
nano /usr/sbin/hit
nano /usr/sbin/banner
tar -zxvf namafile.tgz
tar -jxvf namafile.tar.bz2
tar xzvf namafile.tar.gz
chmod 755 /etc/init.d/squid
update-rc.d -f squid remove && update-rc.d squid defaults
/boot 100 MB noatime bootflag on
/ 10 GB noatime
/swap 2 GB
/cache reiserFS notail, noatime
Sofeware:
Open SSH
mv /etc/apt/sources.list /etc/apt/sources.list.asli
nano /etc/apt/sources.list
deb http://dl2.foss-id.web.id/ubuntu/ natty main restricted universe multiverse
deb-src http://dl2.foss-id.web.id/ubuntu/ natty main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://dl2.foss-id.web.id/ubuntu/ natty-updates main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ natty-security main restricted universe multiverse
deb-src http://dl2.foss-id.web.id/ubuntu/ natty-security main restricted universe multiverse
sudo apt-get update
cd /tmp
tar xzvf squid-2.7.STABLE9+patch.tar.gz
cd squid-2.7.STABLE9
apt-get install gcc build-essential
CHOST="i686-pc-linux-gnu" \
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" \
./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 \
--with-maxfd=65536 \
make && make install
cd ..
cp storeurl.pl /etc/squid/
chmod +x /etc/squid/storeurl.pl
mv /etc/squid/squid.conf /etc/squid/squid.conf.asli
nano /etc/squid/squid.conf
chmod 777 /cache1 /cache2 /cache3 /cache4 /cache5 /cache6
chown -Rf proxy.proxy /cache1 /cache2 /cache3 /cache4 /cache5 /cache6
mkdir -p /var/log/squid
chmod 777 /var/log/squid
squid -z
squid -d 1
apt-get install squidclient
squidclient mgr:info
squidclient -h 192.168.200.2 -p 3128 mgr:info
squid autorun pada saat boot
perintahnya:
nano /etc/rc.local
sebelum exit
ketik ini
squid -sYD
apt-get install ccze
tail -f /var/log/squid/access.log | ccze
sudo apt-get install multitail
multitail -s 2 /var/log/squid/access.log
apt-get install acpid
apt-get install apache2 libapache2-mod-php5 php5-mysql phpsysinfo
chmod 775 /var/www/phpsysinfo
192.168.200.2/phpsysinfo/index.php?disp=dynamic
sudo apt-get install python-dev
wget http://squid-proxy-pkg.googlecode.com/files/squidmon.py
chmod +x squidmon.py
cat /var/log/squid/access.log | python squidmon.py
nano /etc/ssh/sshd_config
/etc/init.d/ssh restart
nano /usr/sbin/hit
#!/bin/bash
tail -f /var/log/squid/access.log | ccze
lalu save, kemudian
chmod +x /usr/sbin/hit
dari directory manapun kl mo lihat LOG access.log tinggal ketik "hit" aja (tanpa kutip)
update relise baru ubuntu
do-release-upgrade
apa-get install toilet
nano /usr/sbin/hit
nano /usr/sbin/banner
tar -zxvf namafile.tgz
tar -jxvf namafile.tar.bz2
tar xzvf namafile.tar.gz
chmod 755 /etc/init.d/squid
update-rc.d -f squid remove && update-rc.d squid defaults
Comments
Post a Comment