Wednesday, May 30, 2012

Revocation information for the security certificate for this site is not available. Do you want to proceed?

When i installed Java with windows XP a pop up notification started to come at regular intervals saying "Revocation information for the security certificate for this site is not available. Do you want to proceed?" as shown below :
After searching internet i found many solutions and the best solution is just a few clicks away. Go to this link and click fix this problem. You will be prompted to download a file. Proceed by downloading this file and running it. After the file is run restart your system for the effect to take place.

Tuesday, May 29, 2012

smartphone from facebook ?

We all use the facebook app in our mobile phones but soon we will be using facebook's own smart-phone. A big part of facebooks traffic is coming from Mobile phones.
During the 1st quarter this year Facebook had 901 million users and in those 500 million of those used their mobiles to access facebook. The migration of web users to smart-phones and tablets was named in Facebook’s regulatory filings for its recent flotation as one of the main threats facing it as a business. It currently makes no meaningful revenue from mobile app users, who are growing in number more rapidly than traditional website users.
It quoted a Facebook employee as saying the site's founder Mark Zuckerberg was "worried that if he doesn't create a mobile phone in the near future... Facebook will simply become an app on other mobile platforms".

To improve its fortunes, the social networking giant is planning to release a smartphone by next year and has picked up former Apple engineers who had earlier worked with the development of i phones and i pad to help with the effort.

Monday, May 28, 2012

Mobile Advertising From Airtel

The recent deal with Airtel and Qualcom will help Airtel strengthen its 4G mobile service plans in India, with a followup of mobile advertising along with it. The mobile advertising platform will help business reach all corners of the world especially rural areas.

Advertisers can choose from a selection of platform which includes Mobile Internet, Messaging and Airtel direct to Home services. This will help advertises to reach the target audience.

This is an introduction to mobile advertising in India, with am emerging economy and large population its going to be a success. This type of advertising will be an efficient medium says Bharti. Airtel believes mobile ads revenues will grow 40 percent over the coming few years.

Bharti hasn’t revealed whether the mobile advertising services will be expanded overseas. As well as being India’s biggest operator, it operates in 20 countries worldwide, with more than 50 million customers in Africa.

Saturday, May 26, 2012

India Impact On Dell

The computer giant DELL always had a good market in India. With the evolution of many more laptop brands in India, DELL suffered a big dip in sales compared to the last 3-4 years in the 1st quarter.

As a matter of fact the demand was not only down in India for Dell but it was noticed globally which made the revenue fall by 4%. The 4% which is approx $14.4 billion. The first quarter profit compared to last year saw a decline by 33%. The decline in figures is from $945 million in 1st quarter last year to $635 this year.

This shift is trend in my opinion is because of the lack of interest in laptops. People are moving to tabs and smart-phones rather than carry around a laptop. Also the boom of many low end laptops with similar configurations at a cheaper price hit Dell badly. There is clearly a shift in the market towards the low-end segment.

Friday, May 25, 2012

OpenVZ main node error

I rebooted VPS main node and when i give the vps listing command its giving me errors. Please see below for the exact error message:
[hari][$] vzlist -a
Unable to open /proc/vz/veinfo: No such file or directory
Unable to open /proc/user_beancounters: No such file or directory

After googling for a few minutes i found that i rebooted the server to wrong kernel. I made the change in grub.conf and rebooted the server to fix this error. Please see below the exact steps to resolve this issue. 

[hari][$] cat /etc/grub/grub.conf | grep stab
title CentOS (2.6.32-042stab053.5)
kernel /vmlinuz-2.6.32-042stab053.5 ro root=/dev/mapper/vg_179-lv_root nomodeset rd_NO_LUKS rd_MD_UUID=90d05456:5cf49c55:aa2da9fc:f4b9ed2b LANG=en_US.UTF-8 rd_LVM_LV=vg_179/lv_swap quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=vg_179/lv_root rd_NO_DM KEYBOARDTYPE=pc KEYTABLE=us rd_MD_UUID=7283aea2:e08d4c5d:93ee888c:eaa32978
initrd /initramfs-2.6.32-042stab053.5.img

Select this Kernal from grub when the system reboots if you have KVM else open  /etc/grub/grub.conf and give default as this kernal.

In my case i had 3 kernels:
-----------
 kernel /vmlinuz-2.6.32-220.7.1.el6.x86_64 ro root=/dev/mapper/vg_179-lv
 kernel /vmlinuz-2.6.32-042stab053.5 ro root=/dev/mapper/vg_179-lv
 kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=/dev/mapper/vg_179-lv
-----------
The kernel with stab is 2nd one. Hence i gave
default=1
timeout=5
in grub.conf file. default=1 because the numbering goes like 0,1,2..

[hari][$] reboot
or
[hari][$] init 6


While the server goes for reboot pray to god ;) When the server is up thank god :D 

Wednesday, May 23, 2012

install ioncube for PHP 5.2.10



This are the steps to install ioncube loader for php in linux.
# cd /usr/local/src/
# wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
# tar -xvf ioncube_loaders_lin_x86.tar.gz
# cd ioncube/
# ls
ioncube_loader_lin_4.1.so
ioncube_loader_lin_4.2.so
ioncube_loader_lin_4.3.so
ioncube_loader_lin_4.3_ts.so
ioncube_loader_lin_4.4.so
ioncube_loader_lin_4.4_ts.so
ioncube_loader_lin_5.0_ts.so
ioncube_loader_lin_5.1.so
ioncube_loader_lin_5.1_ts.so
ioncube_loader_lin_5.2_ts.so
ioncube_loader_lin_5.3.so
ioncube_loader_lin_5.3_ts.so
ioncube_loader_lin_5.4.so
ioncube_loader_lin_5.4_ts.so

copy the version of module which you want to the location below

# mkdir /usr/local/lib/ioncube
# cp ioncube_loader_lin_5.2.so /usr/local/lib/ioncube

open php.ini in your favorite text editor:
add this line
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.2.so

# php -v
PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with the ionCube PHP Loader v4.2.0, Copyright (c) 2002-2012, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

You will note that PHP is loaded with the ionCube PHP Loader v4.2.0.

Failed to load Inline module


Today while going through the error log of a server. The logs were flooding with this error. Actually its not an error its just a warning.
# tail -f /var/log/httpd/error_log
[Tue May 22 21:00:16 2012] [error] [client 78.50.114.80] Failed to load Inline module for best performance. at ./split_dyn.pl line 11., referer: http://domain.com/sblogin/login.shtml/members/

On searching found that  Inline module is a perl module. We can install the Inline module by logging into the server as root and giving the following command.
# perl -MCPAN -e 'install Inline'
The installation will stop a few times for us to manually enter y / yes for a few questions. We can confim that the module is installed when we finally see this line.

Writing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Inline/.packlist
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
/usr/bin/make install  -- OK

Tuesday, May 22, 2012

Microsoft launches its own social network


Microsoft launched its own scoial networking site called So.cl (pronounced "social").


Its currently in its testing phase only accepting limited number of users.
It will be open to everyone very soon. It is believed to be focused towards Students.  It's different from Facebook and Google Plus in that it is focused around search. What students search for on So.cl is shared with other So.cl userss and it can be shared on other networks like Facebook. The idea is to give students a quick and easy way to share information found through searches. So.cl helps users find and share web pages of interest as students do when they work together, Microsoft said.
Below is the screenshot of what the page is like when we register and login:


The Original site is :  http://www.so.cl

mod_rpaf install in debian

Its a module for Apache2 which takes the last IP from the 'X-Forwarded-For' header.
rpaf is short for reverse proxy add forward.
It changes the remote address of the client visible to other Apache modules when two conditions are satisfied. First condition is that the remote client is actually a proxy that is defined in httpd.conf. Secondly if there is an incoming X-Forwarded-For header and the proxy is in its list of known proxies it takes the last IP from the incoming X-Forwarded-For header and changes the remote address of the client in the request structure.
Module configuration is pretty simple, there are only two directives to set; RPAFenable and RPAFproxy_ips. With the later you can define which IP's are your frontend proxies that sends the correct X-Forwarded-For headers. If you do not use the RPAFproxy_ips directive then the module will not change the remote address of the incoming connection at any time. RPAFsethostname will, when enabled, take the incoming X-Host header and update the virtualhost settings accordingly.
# apt-get install libapache2-mod-rpafor
# aptitude install libapache2-mod-rpaf

After installing the above package please enable it:

# a2enmod rpaf# apache2ctl -t
# apache2ctl restart

The configuration file will be automatically be created at this location.
/etc/apache2/mods-available/rpaf.conf

Now, mod_rpaf will grab IP from X_FORWARDED_FOR header and place it in REMOTE_ADDR server variable.

Monday, May 21, 2012

Best Free Apps for Andriod

This is the list of free apps which i have installed in my phone google nexus s.
  • 1ForAll
  • Advanced Task Killer
  • Adobe Reader
  • Air Driod
  • Animated Widget
  • Appy Geek
  • Astro File Manager
  • App Cache Cleaner
  • Barcode Scanner
  • Battlefeild 3 stats
  • BBC news
  • BeWeather
  • Birthdays
  • Blogger
  • Box
  • Cam Scanner
  • Catch
  • ClockQ
  • CNN
  • Compass
  • ConnectBot
  • Clarius Widgets
  • CrickBuzz
  • Data Counter Widget
  • Documets To Go
  • eBuddy
  • eBay
  • Engadget
  • Facebok
  • Fifa 12 tracker
  • Flashlight
  • Foursquare
  • Free SMS India
  • Fruit Ninja
  • Fruit Shoot
  • Gas Mileage Calculator
  • Google Sky
  • Goggles
  • Google+
  • Handy Scanner
  • Homerunbattle 2
  • IBM Live
  • IMDb
  • Indian Government
  • IndRail
  • Instagram
  • iOnRoad Lite
  • iris.
  • Justdial
  • Kingsoft Office
  • LinkedIn
  • LiveScore
  • Maps
  • Mixology
  • Minimalistic Text
  • MX Player
  • Navfree World
  • NDTV
  • NinJump
  • Opera Mini Next
  • Organiser Widget
  • Palmary Weather
  • Paper Toss
  • Picasa Tool
  • Ringdriod
  • Saavan
  • ScoreMobileSoundHound
  • Speed Test
  • Sweet'N'Spicy
  • SwiFTP
  • Talking Tom
  • Tango
  • TeamViewer
  • Thuuz Sports
  • TOI
  • TuneIn Radio
  • Twitter
  • UEFA.com
  • Viber
  • Waze
  • Widgetsoid
  • WebMD
  • WhatsApp
  • Where's My Water
  • XDA
  • Yahoo
  • YouTube
  • Zedge


Samsung galaxy s3 pre booking india


You can pre-book your s3 here.
Samsung has announced that we can pre order Galaxy Samsung S III from their estore by paying a inital amount of Rs. 2000. The colour choices which are available now are Pebble Blue and Marble white. Samsung is also offering free bluetooth headset with every handset which is pre-booked.

Even though the price in India is not yet announced the launch price is expected to be Rs 35000. Currently Galaxy note is selling at price of Rs 32000 so we cannot expect to be price lesser than galaxy Note.
Reportedly the pre-orders have crossed 9 million in few days, worldwide.

Chelsea FC - Champions League Parade

The new kings of Europe paraded the Champions League trophy through London's New King's Road in front of countless Chelsea FC fans. 
Frank Lampard, who captained the side to victory in Munich in place of the suspended Terry, expressed his gratitude. "This is the best club in the world," he said. "And this is the most amazing moment in all of our careers. It is brilliant to come back and celebrate it with all of our fans – thank you!" 

All the best bits from today's open top bus parade.


The team's bus, decked in club colours with Champions of Europe written in the front, stopped all the way along the route as players lifted the trophy for their supporters.


Sunday, May 20, 2012

Bayern Munich vs Chelsea 2012 Champions League Highlights Final Video



Watch the highlights of the Match here
The dream Champions League final, in pure football terms, would have been Barcelona versus Real Madrid. But the world’s two best players, Lionel Messi and Cristiano Ronaldo, both fluffed penalties in the semi-finals, which made Chelsea vs Bayern for the European glory.

Bayern were favourites as the final was in their own backyard.

We were a minute away from defeat here in the Allianz Arena, having been thoroughly outplayed by a classy Bayern side. Yet the German club had wasted chance after chance before finally going a goal up with eight minutes to go thanks to Thomas Müller. Chelsea had little more than faith to cling to. But it was enough. Drogba rose to smash in a header from Juan Mata’s corner with 89 minutes played to send the game into extra time.

Cech then saved a penalty, given away by Drogba in extra-time, and not converted by Arjen Robben, so 10 more penalties had to be taken to determine the destiny of the European Cup.

It didn't start well as Juan Mata failed with Chelsea's first but Cech saved one and Bastian Schweinsteiger struck woodwork before that man Drogba stepped up to win the competition for the first time for a London club, with the satisfaction that it had been acheived in our opponents' stadium and the added prize of qualification for next season's Champions League.


In a season when the likes of Lampard, Drogba and Ashley Cole were told they were finished, past it, they produced their greatest victory of all.

Moscow seems a long time ago now as the ghost of 2008 was buried by a penalty shoot-out win for us.

Thursday, May 10, 2012

Installing GeoIP / How to install GeoIP

GeoIP can be used in your server to locate and track visitors visiting your webpage. GeoIP provide valuable knowledge about your Internet visitors seamlessly and in real-time.GeoIP is a package used to determine the geographical location and other information like client’s region, city, longitude/latitude, connection speed, ISP, as well as company name.

Given below are the steps to install GeoIP:

[hari]$ sudo apt-get install geoip-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
geoip-bin
0 upgraded, 1 newly installed, 0 to remove and 131 not upgraded.
Need to get 15.3 kB of archives.
After this operation, 119 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
geoip-bin
Install these packages without verification [y/N]? y
Get:1 http://archive.ubuntu.com/ubuntu/ natty/universe geoip-bin i386 1.4.7~beta6+dfsg-1 [15.3 kB]
Fetched 15.3 kB in 1s (11.3 kB/s)
Selecting previously deselected package geoip-bin.
(Reading database ... 538222 files and directories currently installed.)
Unpacking geoip-bin (from .../geoip-bin_1.4.7~beta6+dfsg-1_i386.deb) ...
Processing triggers for man-db ...
Setting up geoip-bin (1.4.7~beta6+dfsg-1) ...

When we install wordpress we get a sample wp-config file. Similarly we get a geoip sample configuration file at the following location.
/etc/GeoIP.conf.default
Rename it to make it your configuration file.

[hari]$ mv /etc/GeoIP.conf.default /etc/GeoIP.conf

Now open the file  /etc/GeoIP.conf using your favorite editor to enter the user_id and license information.
[hari]$ vim  /etc/GeoIP.conf
# If you purchase a subscription to the GeoIP database,
# then you will obtain a license key which you can
# use to automatically obtain updates.
# for more details, please go to
# http://www.maxmind.com/app/products

# see https://www.maxmind.com/app/license_key_login to obtain License Key,
# UserId, and available ProductIds

# Enter your license key here
LicenseKey

# Enter your User ID here
UserId

# Enter the Product ID(s) of the database(s) you would like to update
# By default 106 (MaxMind GeoIP Country) is listed below


You can also use GeoIP without purchasing license from the maxmind but it provides only limited support.

Sample Output

[hari]$ geoiplookup 8.8.4.4
GeoIP Country Edition: US, United States

Wednesday, May 9, 2012

openssh-daemon is stopped

I created a new vps node installed with centos. Unfortunatly the sshd service was not starting. I checked the logs /var/log/messages and /var/log/secure but nothing realted to sshd was logged in it.

The service would start but the status was showing stopped as you can see below:

[root@hari ~]# /etc/init.d/sshd start
Starting sshd:                                             [  OK  ]
[root@hari ~]# /etc/init.d/sshd status
openssh-daemon is stopped

After searching across the internel found that /dev/null is a regular file in the node. /dev/null which is suppossed to be a proper character device and not a regular file.

Hence i decided to recreate the same as a charecter device.

[root@hari ~]# rm -f /dev/null
[root@hari ~]# mknod /dev/null c 1 3

After these the permission should look like these.

[root@hari ~]# ls -lh /dev/null
crw-rw-rw- 1 root root 1, 3 May 09 14:23 /dev/null

After praying to god that this should work i started the service again.

[root@hari ~]# /etc/init.d/sshd start
Starting sshd:                                             [  OK  ]
[root@hari ~]# /etc/init.d/sshd status
openssh-daemon (pid  14930) is running...

IT WORKED !!!

Monday, May 7, 2012

Script to check if mysql is alive and restart if its not.

The script below is done in Bash, which can be used across all Linux platforms. The function of the script is to check if mysql is currently running properly else it will restart the service.


1. Navigate to /root.
$ cd /root

2. Create a new file
$ vim mysql.sh
or
$ vi mysql.sh
Also give the command below to check the logs
$ touch /root/mysql.log

3. Insert the following lines to the file
-----------------------------------
#!/bin/bash
/usr/bin/mysqladmin ping| grep 'mysqld is alive' > /dev/null 2>&1
if [ $? != 0 ]
then
        /etc/init.d/mysqld stop
        /etc/init.d/mysqld start
        echo Starting at `date`
fi
-----------------------------------

4.  Give execute permission.
$ chmod 755  mysql.sh

5. Set a cron to check it at regular intervals.
$ crontab -e
*/5 * * * * sh -x mysql.sh
(This will check every 5 minutes)

Script to Check the load of webserver and Restart Services

The script below is done in Bash, which can be used across all Linux platforms. The function of the script is to check the web-server load and restart the normal services which reduces the load. It restarts apache and mysql. You can custom this to restart your services.

1. Navigate to /root.
$ cd /root

2. Create a new file
$ vim load.sh
or
$ vi load.sh

3. Insert the following lines to the file
-----------------------------------
LOAD=`uptime|awk '{print $10}'|cut -d, -f1 |cut -d. -f1`
if [ $LOAD -ge 50 ]
then
killall -9 mysqld
killall -9 mysqld
killall -9 mysqld
killall -9 httpd
killall -9 httpd
killall -9 httpd
for SEMID in `ipcs -s httpd| awk '{print $2}'| grep -iv sem`; do ipcrm -s $SEMID; done
/etc/init.d/httpd start
sleep 20
/etc/init.d/mysqld start
echo high load $LOAD at `date`, mysql/apache restarted >> /usr/monitor/mysql.log
fi
-----------------------------------

4.  Give execute permission.
$ chmod 755  load.sh

5. Set a cron to check it at regular intervals.
$ crontab -e
*/5 * * * * sh -x load.sh
(This will check every 5 minutes)

Script to Check Disk Space and Send Mail if its Full

The script below is done in Bash, which can be used across all Linux platforms. The function of the script is to check disk space at regular intervals and report back through e-mail if the server is running out of disk space. We can also specify multiple e-mail addresses.

1. Navigate to /root.
$ cd /root

2. Create a new file
$ vim diskcheck.sh
or
$ vi diskcheck.sh

3. Insert the following lines to the file
-----------------------------------
#!/bin/sh
df -HlP | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;
do
  echo $output
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
 partition=$(echo $output | awk '{ print $2 }' )
if [ $usep -ge 95 ]; then
echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |
mail -s "Alert: Almost out of disk space $usep%" xyz@domain.com
echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |
mail -s "Alert: Almost out of disk space $usep%" xyz1@domain.com
echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |
mail -s "Alert: Almost out of disk space $usep%" xyz2@domain.com
fi
done
-----------------------------------

4.  Give execute permission.
$ chmod 755  diskcheck.sh

5. Set a cron to check it at regular intervals.
$ crontab -e
*/5 * * * * sh -x diskcheck.sh
(This will check every 5 minutes)

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews