Setting Yahoo Messenger widget di WordPress

Login ke WordPress Dashboard => Menu Appearance => Widgets => Text => buat script YM seperti dibawah:

Script YM:

<a href=”ymsgr:SendIM?YM-id“>
<img border=0 src=”“/></a>

-Ganti tulisan yang di-mark biru YM-id dengan YM id/login YM anda
-Ganti angka yang di-mark merah dengan angka sesuai list icon YM yang diinginkan

Continue reading

Install Webmin untuk memudahkan manajemen Linux CentOS


Using the Webmin YUM repository
-Download & import webmin gpg key
# mkdir /opt/webmin
# cd /opt/webmin
# wget
# rpm --import jcameron-key.asc

-Add webmin repository
# vi /etc/yum.repos.d/webmin.repo

name=Webmin Distribution Neutral

-Install webmin via yum
# yum --enablerepo=webmin install webmin

Enable port 10000
# iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
# service iptables save
# service iptables restart

-Tes akses server menggunakan webmin. Buka browser ketik: http://ip_server:10000

Setup autologin di Windows

Terkadang diperlukan auto login di beberapa PC user seperti di PC yang dipakai banyak user atau di beberapa user yang gaptek ^_^

Berikut cara setup autologin di Windows:
1. Buka regedit. Start Menu => Run atau Tombol Windows+R => Ketik: regedit

2. Cari key berikut:


Continue reading

Install epel and rpmforge repository CentOS 6

Install rpmforge Repository
Download the rpmforge-release package. Choose one of the two links below, selecting to match your host’s architecture. If you are unsure of which one to use you can check your architecture with the command uname -i

# cd /opt

-For CentOS 6 i686 (32bit):
# wget

-For CentOS 6 x86_64 (64bit):
# wget
Continue reading

Install denyhosts to block ssh brute force CentOS 6

Install from epel or rpmforge repo, i’m install it from epel:
# yum --enablerepo=epel -y install denyhosts

-(Optional) If need to configure denyhosts, edit file denyhosts.conf, actually default configuration is fine..
# vi /etc/denyhosts.conf

-Start denyhosts service & make start on boot:
# service denyhosts start
# chkconfig denyhosts on

Continue reading

Disable selinux CentOS 6

Disabled with reboot, edit /etc/selinux/config and save..
# vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.

Continue reading

Setup Slave DNS bind chroot CentOS 5


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

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

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

III. Edit /etc/resolv/conf


Continue reading

Setup bind chroot CentOS 5


-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