Rabu, 02 Mei 2012

How to install lusca on Ubuntu 12.04 LTS




Login ubuntu server with putty


How to 
sudo su
apt-get update
apt-get upgrade
apt-get install lusca
edit squid.conf (/etc/lusca/squid.conf)
chown proxy:proxy /cache{1,2,3,4}
chmod 777 /cache{1,2,3,4}
chown proxy:proxy /etc/lusca/squid.conf
chmod 777 /etc/lusca/squid.conf
lusca -f /etc/lusca/squid.conf -z
chown proxy:proxy /var/log/lusca/access.log
chown proxy:proxy /var/log/lusca/cache.log
chmod +x /etc/init.d/lusca
/etc/init.d/lusca stop
cek error lusca
lusca -d1
if work well no error
/etc/init.d/lusca restart
apt-get install squidclient
squidclient mgr:info
if work well no error
reboot

Senin, 23 April 2012

Meng Optimalkan btrfs File System di Ubuntu Server





Login ubuntu server menggunakan putty


How to 
sudo su
nano /etc/fstab
/cache btrfs noatime,compress,noacl 0 2
Edit partition btrfs di ubuntu anda seperti diatas
ctrl + o untuk save ctrl +x untuk exit
reboot

Jumat, 20 April 2012

DNS Unbound 1.4.16 High Perfomance



Apa itu DNS Unbound ?
DNS Unbound adalah DNS cache yang membuat browsing lebih responsif.
Ok kita langsung menuju ke TKP.
Login ubuntu server menggunakan putty


Installation Unbound 
sudo su
wget http://giga-proxy.googlecode.com/files/ldns-1.6.12.tar.gz
wget http://giga-proxy.googlecode.com/files/libevent-2.0.18-stable.tar.gz
wget http://giga-proxy.googlecode.com/files/unbound-latest.tar.gz
apt-get install libldns-dev
apt-get install libexpat1-dev
apt-get install libssl-dev
tar -xzf ldns-1.6.12.tar.gz
tar -xzf libevent-2.0.18-stable.tar.gz
tar -xzf unbound-latest.tar.gz

Installasi ldns-1.6.12
cd ldns-1.6.12
./configure --disable-gost
make && make install

Installasi libevent-2.0.18-stable
Ganti user dengan user anda (/home/user/libevent-2.0.18-stable)
cd /home/user/libevent-2.0.18-stable
./configure
make

Installasi unbound-1.4.16
Ganti user dengan user anda (/home/user/unbound-1.4.16)
cd /home/user/unbound-1.4.16

Ganti user dengan user anda (/home/user/libevent-2.0.18-stable)
./configure \
--with-ldns=/usr/local/lib \
--with-libevent=/home/user/libevent-2.0.18-stable \
--with-conf-file=/etc/unbound/unbound.conf \
--with-pidfile=/etc/unbound/unbound.pid \
--with-run-dir=/etc/unbound \
--with-rootkey-file=/etc/unbound/root.key \
--with-rootcert-file=/etc/unbound/icannbundle.pem \
--disable-gost
make && make install

Finishing
cd /etc/unbound
wget ftp://FTP.INTERNIC.NET/domain/named.cache
wget http://giga-proxy.googlecode.com/files/unbound.conf
wget http://giga-proxy.googlecode.com/files/unbound.pid
Edit dahulu file unbound.conf di /etc/unbound/unbound.conf
nano /etc/unbound/unbound.conf
Sesuaikan interface anda
Sesuaikan control-interface anda
/usr/local/sbin/unbound-control-setup
groupadd unbound
useradd -g unbound unbound
chown unbound:unbound unbound_*
chmod 777 unbound_*
cd /etc/init.d
wget http://giga-proxy.googlecode.com/files/unbound
chmod +x /etc/init.d/unbound
update-rc.d unbound defaults
reboot