Author Archives: bachem

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=”http://opi.yahoo.com/online?u=YM-id&m=g&t=2“/></a>

Keterangan:
-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


Detail:
http://www.webmin.com/rpm.html

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

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

[webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=0

 
-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:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

 
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 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

-For CentOS 6 x86_64 (64bit):
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
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.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

Continue reading

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