Home \ Linux


CentOS 7 ifconfig command not found

Centos 6.3 released

When you install CentOS 7 minimal or net install, it does not come with the ifconfig command.   You can use the ifg command, but like most users. In  CentOS 6 and CentOS 5, the command was included by default.  Most distributions do include the command but not this distribution.   To install the much loved command of ifconfig, type the following it at the command line   yum install net-tools /y  

Read More »

Installing Railo on CentOS 6.5

Railo The Open Source ColdFusion Engine

Installing the latest version of Railo 4.2 on CentOS 6.5 or RedHat Enterprise Linux (RHEL) is simple, takes about 20-30 minutes depending on your servers processing power, available bandwidth and resources. Before you begin, We will assume you already installed Apache, and know if you are running on a 32 or 64 bit os. If you are not sure, you can always run  ” uname -m” if the result is x86_64 ==> 64-bit kernel i686 ==> 32-bit kernel   With that being known, you are ready to proceed. If you have not installed apache for what ever reason, you can …

Read More »

Install PHP 5.5 on Centos 6.5 or RHEL 5.10 via command line

Installing PHP 5.5 is fast, and far better in terms of security issues and over all memory usage compaired to the stock versions of PHP.     While there are many reasons to install PHP 5.5 including security, optimization, and overall coolness of being able to use the try {} and finally {} functions, being technically inept should not be it.     As root issue the following command for CentOS 6.5 and the 6.X Series   rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm   For RHEL 5.10 and the Centos / RHEL 5.X series   rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm   Next issue the following …

Read More »

Block all countries except the USA in iptables script

quickly add ip address range in linux

Pulls all ISO country codes except for the US and populates iptables with ALL ranges in those countries automatically. Setup a cron job (/etc/crontab) to run every week:   Create /usr/local/bin/isoCodeBockIptables.sh with the following code: ################# #!/bin/bash ### BACKUP THE CURRENT RULESET FIRST /sbin/iptables-save > /backup/iptables-last.txt ### Block all traffic from everywhere except the US. Use ISO code ### ISO="af au al dz aq br ar cn lb my ly lr la jp jm jo kz ke hk ml mx fm md mc mn ms ma mz mm nr na np nl an nc nz ni ne ng nu nf …

Read More »