Edit /etc/sysconfig/network and set “NETWORKING_IPV6” to “no” For 5.4 and later, replace in /etc/modprobe.conf alias ipv6 off by options ipv6 disable=1 Alternative (which might be easier and works on any release with /etc/modprobe.d): # touch /etc/modprobe.d/disable-ipv6.conf # echo "install ipv6 /bin/true" >> /etc/modprobe.d/disable-ipv6.conf For CentOS 5.3 or older, add the following to /etc/modprobe.conf :…
Tag: CentOS
CENTOS 6 Minimal does not have the Network interfaces up by default
So test drove CentOS 6 Minimum install .. Only real hiccup till now is : TUV ( the upstream vendor) aka RHEL decided to disable the network interfaces by default. WTF to that. A glance at the FAQ will show the solution : Here’s my version for multiple interfaces. # cd /etc/sysconfig/network-scripts/ # sed…
List or Check Installed Linux Kernels RPM based
With rpm based OSes # rpm -qa kernel This will list the available kernels. To list / display current kernel Type the following command: # uname -r # uname -mrs
Vmware tools autoinstall after kickstart
kickstart postinstall, you can read how to do this on the internet. wget http://foo/tools.tar.gz tar xzvf *.tar.gz cd directory-where-you-untarred vmware-tools-install.pl -d BINGO ! Giggidi Giggidi
Installing SNMP on Centos 6.x
Installing SNMP daemon and tools: As root yum -y install net-snmp.i686 yum -y install net-snmp-utils Once these are installed start the snmp daemon: /etc/init.d/snmpd start chkconfig snmpd on This is just the basic install but testing it : snmpwalk -v 1 -c public -O e 127.0.0.1 For production servers it is advisable to at least…
Discover which repo holds a package in CentOS.
It is sometimes useful not only to know your repo list covers you for all the stack of software you want but also where does a package actually reside. The repoquery command comes to the rescue.
Installing EPEL Repository on CentOS
EPEL stands for Extra Packages for Enterprise Linux. This is a massive collection of packages that are very useful for the building of many modern stacks and include many tools for the running and maintenance of systems. The homepage of EPEL is here: http://fedoraproject.org/wiki/EPEL. You can browse the package set using repoview: EPEL 6: i386, x86_64, ppc64, sources EPEL 5: i386, x86_64, ppc, sources Installing on…
Setting hostname
#vim /etc/sysconfig/network Use something like HOSTNAME=testarossa.maranello.local to overwrite the default name and domain of the server. e.g. NETWORKING=yes HOSTNAME=testarossa.maranello.local To avoid rebooting issue the following : hostname testarossa.maranello.local That will set it for the current session.
Setup default gateway with route command Linux
Display default route The following three commands display the current routing table: # route Output: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 ra0 default dsl-router 0.0.0.0 UG 0 0 0 ra0 # /sbin/route Output: Kernel IP routing table Destination Gateway Genmask Flags Metric…
Installing iostat in CentOS with yum
Iostat is a very powerful tool for monitoring the throughput of your storage subsystems. Especially to locate bottle necks and pinpoint possible upgrade scenarios. Not immediately visible here is how to install it on Centos 5.x and 6.x. We shall use the whatprovides tool in yum to locate the packages that provide iostat