Latest Event Updates

Ubuntu : eth0 not coming up on bootup

Posted on

You may have noticed that after the network edits, the eth0 is not coming up after restart and you have to make it up using the command :

ifup eth0

To start it up automatically after every restart, just add the below entry in your

auto lo eth0

Check whether the server is virtual or physical

Posted on

1. Install the package : facter
In centOS : yum install facter
In ubuntu : apt-get install facter
2. Run the command :

facter virtual

3. Check the output.

for example :

[root@test1 ~]# facter virtual
root@test2:~# facter virtual

Thanks :)

Change the color of your terminal

Posted on

To change the color of the terminal :

tput setaf number

Use the below numbers for the corresponding color.

Black : 0
Red : 1
Green : 2
Yellow : 3
blue : 4
Magenta : 5
Cyan : 6
White : 7

Eg : For Green(my fav :)),

tput setaf 2

Enjoy :)

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 :