The ‘alias’ command in CentOS allows for you to create an alias to a command. For example, if you want to use the vim text editor, but are used to typing vi file-to-edit.txt, you can create an alias to automatically start vim instead of vi when typing the command. Showing current aliases To show the […]
Delete Files Older Than X Days
Command Syntax find /path/to/files* -mtime +5 -exec rm {} \; Note that there are spaces between rm, {}, and \; This is a very simple tutorial how to find and delete files older than X days. I needed this for a project where i collected some images and after a while they took too much […]
MySQL Master-Master Replication
Create MySQL user CREATE USER ‘droaming’@’localhost’ IDENTIFIED BY ‘DroamG.123’; CREATE USER ‘droaming’@’%’ IDENTIFIED BY ‘DroamG.123’; Drop Mysql User DROP USER ‘droaming’@’localhost’; DROP USER ‘droaming’@’%’; Create Mysql Database and grant permission CREATE DATABASE droaming; GRANT ALL ON droaming.* TO ‘droaming’@’localhost’; View MySQL users SELECT User, Host, Password FROM mysql.user; MySQL Master-Master Replication SERVER 01 [mysqld] datadir=/var/lib/mysql […]
Password less command line scripts with MySQL 5.6
I have a number of command line scripts that copy MySQL databases down from staging servers and store them locally. These scripts set the password on the command line using the -p option. With MySQL 5.6, a new warning is displayed every time my scripts run: Warning: Using a password on the command line interface […]
Nagios Notifications using SMTP server with Authentication
We needed to setup Nagios to utilize our internet service providers SMTP Email server for notification emails. The biggest problem was that the ISP’s outgoing email server requires authentication. Nagios setup with SMTP outgoing authentications. These are instructions and examples on how we got this setup working. I hope this helps others in the Nagios […]
Install LAMP on Redhat / Centos 6
LAMP කියන්නේ open-source software කිහිපයක එකතුවක්. ඒ කියන්නේ Linux, Apache HTTP Server, MySQL database, and PHP/Perl/Python). මේ tutorial එකේදි මම ඔයාලට කියලා දෙන්නේ කොහොමද RHEL/CentOS 6.X වල LAMP install කරන්නේ කියලා. මේකෙදි මගේ server එකේ hostname එක test.ideus.lk. server IP එක වෙන්නේ 192.168.1.101/24. මුලින්ම කරන්න පොඩි දෙයක් තියෙනවා.EPEL Repository එක අපේ server එකට configure කරගන්න ඕන. Repository ගැන මම […]
Protected: Connect Asterisk with Dialog SIP Trunk
There is no excerpt because this is a protected post.
Update PHP 5.1 to 5.5 on Redhat / CentOS 5.5
Add EPEL repo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm Remove Previous version yum remove php* Install PHP 5.5 yum install php55w-fpm php55w-opcache yum install php55w-xml php55w-gd php55w-process php55w-mysql php55w-mbstring php55w-pear php55w-common php55w-imap php55w php55w-mcrypt php55w-pdo php55w-cli php55w-devel
Installation of KLOXO Hosting Panel with DKIM and SPF
An easy to follow guide to install DKIM on CentOS 5.x Linux mail servers using qmailtoaster and kloxo/lxadmin. help prevent outgoing emails from your email servers winding up in someone’s spam box. KLOXO instalation guide su – root setenforce 0 su – root yum install -y wget wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh #To install as Master (Default Single […]
Installing the Free G729 Codec for Asterisk
This tutorial will let you install the G729 Codec on an Asterisk installation in under 5 minutes. Navigate to the codecs directory: cd /usr/lib/asterisk/modules Download the codec Codecs are provided as binary .so files, you can find the archive at http://asterisk.hosting.lv/#bin Take care of the following when picking up one of the files, they depend […]