Thursday, May 14, 2015

ImportError: No module named pygtk

It means, the python your package is using is not the correct one or source package python.

Find using command `which python`.
If it is /usr/local/bin/python


Rename this file , the original python file will be in /usr/bin/python


Now run your package again.

Thursday, April 2, 2015

Ubuntu / Centos - Linux - Check Hyperthreading is enabled or not

Check Hyperthreading status :

Run command :
cat /proc/cpuinfo

If the number of siblings is equal to the number of cores then you have CPUs which are not hyperthreading or hyperthreading is switched off, If the number of siblings is 2x the number of cores then you have a hyperthreading CPU with hyperthreading switched on.

Friday, March 13, 2015

ssh-add - Add keys permanent

Keys are removed after reboot, Add ssh keys permanent

If you add private keys or .pem files using ssh-add and reboot your system, they are disappeared.

To add the keys permanently, here is the solution.

Suppose your key file is filename.pem and it is in Documents. In this case, Add the following command in your .bashrc file.


ssh-add /root/Documents/filename.pem 2>/dev/null

 
Now this key will be added permanently in your listing.


You can add as many keys you want.