Archive

Archive for the ‘CentOS’ Category

Install Webmin on CentOS 5

January 22nd, 2009 No comments

Install dependency :

sudo yum -y install perl-Net-SSLeay

Get the latest RPM from the Webmin website and install it

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.441-1.noarch.rpm
rpm -ihv webmin-1.441-1.noarch.rpm

open port 10000 in your iptables :

sudo vi /etc/sysconfig/iptables

Add the following line :

-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 10000 -j ACCEPT

Reload iptables :

sudo /sbin/service iptables restart

access your webmin install via browser :

https://your server name:10000/

Note: you should probably limit the ip’s that can access your webmin interface , cant be too careful now days…
this can be done by changing the above iptables line and add a “-s subnet or ip” , for example limit access to the 192.168.1.0 subnet only :

-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp -s 192.168.1.0/24 –dport 10000 -j ACCEPT

and of course reload your iptables again.

Kerenl tunables for VMware Host

January 6th, 2009 No comments

add to sysctl.conf

vm.swappiness = 0
vm.overcommit_memory = 1
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
vm.dirty_expire_centisecs = 1000
dev.rtc.max-user-freq = 1024

Mount ISO on Linux/FreeBSD

December 4th, 2008 No comments

On Linux
mount -o loop -t iso9660 path/to/iso.iso /mnt

On FreeBSD
mdconfig -a -t vnode -f /isofile -u 0
mount -t cd9660 /dev/md0 /mnt

Yum Cheats

August 19th, 2008 No comments

install with broken packages

# yum -y install yum-skip-broken

Configure Resource on LVS cluster

August 14th, 2008 No comments

To add an ip resource who’s a member of group “ip_group” create an xml file :












import the resource using :

cibadmin -V -M -o resources -x file.xml

( note you are using -M to modify the existing group … )
delete the resource :

cibadmin -V -D -o resources -X’