Category Archives: Linux

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

Setup lightsquid 1.8 di CentOS 5.7


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


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


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
# rpm -ivh squidGuard-1.4-8.el5.i386.rpm

Continue reading

PDC Samba LDAP on CentOS 5.7


1. Initial Config:
-Setelah install CentOS 5.7 lanjutkan install repositori dag dan epel
-Ip Address:

-Update server
# yum -y update

-Edit /etc/hosts:
# vi /etc/hosts pdc

-Install paket openldap dan samba
# yum install openldap openldap-clients openldap-servers nss_ldap samba samba-client samba-common

-Install paket smbldap-tools
# yum --enablerepo=epel install smbldap-tools
Continue reading