Tuesday, July 21, 2015

SAR [Specific Absorption Rate]



Now everyone interested to buy Smart Phones. We are also known to the excess usage of these phones will cause health issues.

Here the most important thing you may need to understand the SAR value rate for your phone. This will give you a clearer picture of the amount of radio frequency energy absorbed by the body when using a mobile phone.

The neutral value is calculated as 1.6 watts per kilogram (1.6 W/kg). So the value below this number will be considered as safe [ actually not 100%].

You can check Radiation level on your smart phone by dialing *#07#

So the main advantage of using Apple iPhone is its low SAR Value, it's below 0.01


Friday, May 29, 2015

shred and scrub

Scrub and shred commands are useful when you are installing Linux/Unix operating systems , when the previous tech/person has used windows or other copyright softwares on that drive.

We don't know what are the pirated software, whether he/she has installed on the disk. It would be better to wipe out all data , so that the third party recovery (Micro-Soft inspections, etc )makes them very difficult.



 wget http://mirrors.kernel.org/ubuntu/pool/universe/s/scrub/scrub_2.2-2_amd64.deb
 
dpkg -i scrub_2.2-2_amd64.deb

Command:
 scrub -p dod -f /dev/

  root@Ajeesh-desktop:~# scrub -p dod -f /dev/sdb1
scrub: using DoD 5220.22-M patterns
scrub: please verify that device size below is correct!
scrub: scrubbing /dev/sdb1 75391565824 bytes (~70GB)
scrub: random  |................................................|
scrub: 0x00    |................................................|
scrub: 0xff    |................................................|
scrub: verify  |................................................|
root@Ajeesh-desktop:~#

Friday, January 9, 2015

named.run using huge size

On a cpanel server we can see /var/named/data/named.run is using huge size. This is a log file and we can safely truncate this file.

cd /var/named/data
[/var/named/data]#  >named.run

Wednesday, July 30, 2014

exit from mysql shell

Sometimes you may struck in the mysql shell and you cannot exit from the shell using /q or exit command.

Solution:
use single quotes and then quit from your mysql console.

`> \q
`>
`> ;


'> ''' ( use 3 single quotes)
 -> \q
Bye
[root@test ~]#




Friday, July 18, 2014

phpMyAdmin installation


Steps:
cd /usr/local/src/
wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/4.2.5/phpMyAdmin-4.2.5-all-languages.tar.gz
tar -xzvf phpMyAdmin-4.2.5-all-languages.tar.gz 
mv phpMyAdmin-4.2.5-all-languages /home/ajeesh/public_html/
cd /home/ajeesh/public_html/
mv phpMyAdmin-4.2.5-all-languages phpMyAdmin
cd phpMyAdmin
mkdir config
chmod o+rw config
cp config.inc.php config/ (For migration we need to copy this file and access the web panel, for new installation just visit the web panel and the config file will create automatically.)

: Web Panel access http://ajeesh.com/phpMyAdmin/setup/

Error:
[Fri Jul 18 00:31:06 2014] [error] [client IP] File does not exist: /home/ajeesh/public_html/favicon.ico
[Fri Jul 18 00:31:07 2014] [error] [client IP] PHP Fatal error:  Call to undefined function mb_detect_encoding() in /home/ajeesh/public_html/phpMyAdmin/libraries/php-gettext/gettext.inc on line 177

Fix:
yum install php-mbstring
yum install php-mcrypt
/etc/init.d/httpd restart


mv config/config.inc.php /home/ajeesh/public_html/phpMyAdmin/
chmod 644 config.inc.php
rm -rf setup

Latest phpMyadmin needs mysql5.5 version. So I have updated the latest version using the following steps:

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum --enablerepo=remi list mysql mysql-server
yum --enablerepo=remi upgrade mysql mysql-server


Monday, June 23, 2014

Missing Word Edit tools : wordpress

Text Editors and Missing Buttons in wordpress.

You can fix this issue by adding the following line on your wp-config.php file.

You should add this line at the beginning of your php opening tag

define('CONCATENATE_SCRIPTS', false);

 

OR 

Install Google Libraries plugin, which will use common java script libraries from google's not from wordpress.

Wednesday, June 4, 2014

openvz ubuntu vps not restarting


While rebooting Ubuntu vps on your Openvz node you will get the following error.

~]# vzctl start 2121454
Starting container ...
Container is mounted
Adding IP address(es): IP address for your vps
FATAL: kernel too old
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
FATAL: kernel too old
Container start in progress...



This means your Node is running on Centos 5

2.6.18-371.3.1.el5.028stab110.1

So we cannot update to 2.6.32 openvz kernel on CenOS 5

Fix:
 kernel]# pwd
/proc/sys/kernel
kernel]# cat virt_osrelease
2.6.18-371.3.1.el5.028stab110.1
kernel]# echo 2.6.32 > virt_osrelease
[root@server kernel]# vzctl start 5909
Starting container ...
Container is mounted
Adding IP address(es): ipdaddress
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
Container start in progress...