Category Archives: Inf. Tech

Setup Slave DNS bind chroot CentOS 5


References:
http://www.howtoforge.com/installation-of-bind-as-a-secondary-slave-dns-server-on-centos
http://doc.planet-lab.eu/html/x732.htm

 
I. Skenario:
Primary DNS : 192.168.0.250
Secondary DNS (Mirror) : 192.168.0.251

II. Edit /etc/hosts
# vi /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.251 kucing.example.net kucing

 
III. Edit /etc/resolv/conf

search example.net
nameserver 192.168.0.250
nameserver 192.168.0.251

Continue reading

Setup bind chroot CentOS 5


References:
http://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/
http://adlinux.blogspot.com/2010/04/chroot-dns-with-bind-centos-5.html

 
-Install Bind
# yum -y install bind bind-chroot bind-libs bind-utils caching-nameserver

-Konfigurasi Permision
# chmod 755 /var/named/
# chmod 775 /var/named/chroot/
# chmod 775 /var/named/chroot/var/
# chmod 775 /var/named/chroot/var/named/
# chmod 775 /var/named/chroot/var/run/
# chmod 777 /var/named/chroot/var/run/named/
# cd /var/named/chroot/var/named/
# ln -s ../../ chroot
# cp /usr/share/doc/bind-9.3.6/sample/var/named/named.local /var/named/chroot/var/named/named.local
# cp /usr/share/doc/bind-9.3.6/sample/var/named/named.root /var/named/chroot/var/named/named.root
# touch /var/named/chroot/etc/named.conf

-Setting RNDC
# cd /var/named/chroot/etc
# rndc-confgen > rndc.key
# chown root:named rndc.key
Continue reading

How to Delete/Move a Protected OU in Active Directory

error-notice

Note: Im using WIndows Server 2008 R2

1) Log on to the computer as built in administrators group or Domain Admins group.
2) Open Active Directory Users and Computers.
3) Click View, and then click Advanced Features.
view

4) Right-click > Properties on the object of choice, navigate to the Object Tab, then untick Protect object from accidental deletion >> click OK
untick

5) Delete or Move the object that you want to delete or moving.

Restart or shutdown Windows via Remote Desktop


-The easiest way to restart or shutdown Windows machine when doing remote desktop just press alt + F4

 
-Another way by type shutdown command in command prompt

Example command to restart in 5 seconds:

shutdown -t 5 -r -f

Example command to shutdown in 5 seconds:

shutdown -t 5 -s -f

 
Reference:

Setup lightsquid 1.8 di CentOS 5.7


References:
http://www.catatanlepas.com/komputer/37-aplikasi-linux/111-monitoring-squid-proxy-menggunakan-sqstat-sarg-dan-lightsquid.html
http://nixnoob.org/?p=22
http://masrifqi.staff.ugm.ac.id/wiki/doku.php?id=squid_proxy

 
1. Install Apache2, PHP and make run at startup
# yum -y install httpd php
# service httpd start
# chkconfig httpd on

2.Instalasi lightsquid
-Install paket Perl GD dari repositori dag wiers yg diperlukan untuk meregenerasi Grafik
# yum --enablerepo=dag install perl-GD

-Download & Install lightsquid1.8.tgz
# mkdir /tmp/lightsquid
# cd /tmp/lightsquid
# wget http://sourceforge.net/projects/lightsquid/files/lightsquid/1.8/lightsquid-1.8.tgz/download/
# tar -zxvf lightsquid-1.8.tgz -C /var/www/html/; cd /var/www/html/
# mv lightsquid-1.8/ lightsquid
# cd lightsquid/
# cp lightsquid.cfg lightsquid.cfg.asli

Continue reading

Catatan tentang Crontab


References:
http://www.catatanlepas.com/komputer/38-sistem-linux/58-eksekusi-otomatis-dengan-crontab.html
http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-autotasks-cron-configuring.html

 
Untuk melihat perintah-perintah apa saja yang digunakan di crontab, tuliskan perintah:
# crontab --help

-Pada umumnya, perintah yang sering dipergunakan adalah:
> Mengedit file crontab:
# crontab -e

> Melihat file crontab
# crontab -l

-Command untuk merestart Crontab
# service crond start/stop/restart

-Command service cron at boot time
# chkconfig crond on
Continue reading

Setup squidGuard 1.4.8 di CentOS 5 squid2.7 / squid3.1


References:
http://www.squidguard.org/
http://kusprayitna.staff.uii.ac.id/2010/04/12/instalasi-squidguard-di-centos-filtering-url-di-squid/
http://squidguard.mesd.k12.or.us/
http://www.server-world.info/en/note?os=CentOS_5&p=squid&f=3

Secara default squidGuard via yum Centos 5.6 adalah versi 1.3.x,oleh karena itu akan diinstall squidguard versi lebih baru yang didapat dari search google url rpmbone yaitu rpm squidguard versi 1.4.8 atau bisa langsung install dari epel repositori..

I. Download & Install squidGuard 1.4.8
# mkdir /tmp/squidguard1.4
# cd /tmp/squidguard1.4
# wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/5/i386/squidGuard-1.4-8.el5.i386.rpm
# rpm -ivh squidGuard-1.4-8.el5.i386.rpm

Continue reading

Mikrotik PPPOE client dial ke modem ADSL Telkom Speedy


1. Setting Bridge di Modem Router Speedy
-Masuk ke konfigurasi Modem Router Speedy via web. (Saya menggunakan TP-Link,dengan iface LAN Modem (http://192.168.1.1)
-Setting Interface Internet menjadi Bridge & Encap Mode LLC, seperti pada Gambar. Untuk setting VPI & VCI bisa browsing google untuk daerah masing-masing.(Saya di Jakarta)



Continue reading