Howto Install no-ip utility in CentOS to fix dynamic ip issues using a subdomain from no-ip.org. First go to no-ip webpage http://www.no-ip.com Register and confirm your email, then login your account and add a host. Download the linux client As user root execute: cd;wget "https://www.no-ip.com/client/linux/noip-duc-linux.tar.gz" tar -xvf noip-duc-linux.tar.gz cd noip-2.1.9-1 make make install Create a configuration…
Tag: CentOS
Screen utility not processing the ~/.bash_profile
After you build your custom ~/.bash_profile when you use screen it skips the customizations in the ~/.bash_profile file. Try to edit .screenrc and then add shell -$SHELL
Adding a XFS filesystem to CentOS 5
Howto use enterprise Linux ‘extras’ to mount a XFS filesystem on a CentOS v5.2 VM Install RPM’s Note: Due to this bug (3205), install binutils to overcome the error “xargs: nm: No such file or directory” while installing kmod-xfs-xen. # yum install binutils # yum install xfsprogs yum-kmod kmod-xfs-xen # mkfs.xfs -f /dev/sda1 Check A chunk of…
Search entire filesystem for text in Linux
To search for text through the entire filesystem from the current path down in Linux use the following : find / -type f -print0 | xargs -0 grep -l "string to search" 2>/dev/null
Force fsck on next boot
Since live systems are near to impossible to fsck when running (unless you can pull one side of the mirror then clone it to the other (very messy). Become Root sudo su – or su – As root create file in root folder a file named forcefsck touch /forcefsck Restart the system. shutdown -r now
Nagios fail to run ifstatus
/usr/local/nagios/libexec/check_ifstatus -H localhost   Can’t locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at ./check_ifstatus line 38. BEGIN failed–compilation aborted at ./check_ifstatus line 38. Solution: yum install perl-Net-SNMP
iptraf boxes do not show up well
On one of my servers running CentOS 6 I had iptraf not displaying the boxes in dialogues correctly. It’s usually fixed by updating the session configuration on putty to translate to utf-8 but in this case that did not work. While the system is a clone from another machine where it works well (puppet confirms) all…
Quick How to install tomcat
# yum install yum-priorities # rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm # rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm Install the JPackage Project repository.
mkpasswd on Centos 6.x
I happened to need mkpasswd command in CentOS 6.3 minimal: While there is no package for the tool it can be found in expect command. So run as shown : yum install expect
Install Exim on centOS
Exim is no longer available as a standard package, but as with most pieces of Linux software, it’s still only a few commands away. If you want to install Exim to use, or just to try, all you need do is: Install the EPEL (Extra Packages for Enterprise Linux) repository: wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm rpm -i epel-release-6-5.noarch.rpm…