Latest Event Updates

Import certificate and key into jks

Posted on

1. First create a p12 file and import both the certificate and key into it using openssl.

openssl pkcs12 -export -name theg -in /etc/ssl/certs/theg.crt -inkey /etc/ssl/private/theg.key -out theg.p12

2.Convert the p12 format into jks format using keytool :

keytool -importkeystore -destkeystore theg.jks -srckeystore theg.p12 -srcstoretype pkcs12 -alias theg

Note : Here I used the name theg for my certificates and alias, change it accordingly.

Set environment variable in ubuntu

Posted on

Add the required path in /etc/environment
update it using
source /etc/environment

Change the email notification subject for the MySQL ZRM report

Posted on Updated on

Normally MySQL ZRM backup results are sent out in the form

[ZRM for MySQL Report] ERROR during backup of backup-set Domain_name

. If you want to customize the subject line, edit the following file and edit accordingly.

 vi /usr/bin/mysql-zrm-backup 

Search and find the subject line and edit accordingly.

Check the email password in plesk

Posted on Updated on

You can use the below command to see all the email address and its passwords :



How to validate IP address in bash

Posted on

#Validating IP addess
if [[ "$ip_server" =~ ^([0-9]{1,3})[.]([0-9]{1,3})[.]([0-9]{1,3})[.]([0-9]{1,3})$ ]]
    for (( i=1; i<${#BASH_REMATCH[@]}; ++i ))
      (( ${BASH_REMATCH[$i]} &2; exit 1; }
      echo "Check the IP address" >&2
      exit 1;

Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.

Posted on

I got the below error while restarting mysql service after updating the my.cnf file :

 [ERROR] Plugin ‘InnoDB’ init function returned error.
 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
 [ERROR] Unknown/unsupported storage engine: INNODB
 [ERROR] Aborting 

Just followed the below steps to resolve the issue :

cd /var/lib/mysql
mv ibdata1 ib_logfile0 ib_logfile1 /tmp/

Note that my datadir was /var/lib/mysql. Change the location accordingly.

service mysqld restart

[root@theg-01 mysql]# service mysqld restart
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]

Thats it :)

Install Skype in Ubuntu 14.04

Posted on Updated on

A new update of Skype version (Skype 4.2) is available for Ubuntu distributions. Use the below method to install :

1. Remove the existing ones “

$ sudo apt-get remove skype skype-bin

2. Download the debian package from the skype website :

$ sudo wget

3. Install :

$ sudo dpkg -i skype-ubuntu*.deb; sudo apt-get -f install

4. Install the below necessary packages if not already installed :

In 32 bit :

$ sudo apt-get install sni-qt

In 64 bit :

sudo apt-get install sni-qt sni-qt:i386

That’s it! :)