Pages

Thursday, November 14, 2013

How to find service is running or dead in Linux,Shell Script

       In unix based machine having shell script support,how will you find a particular service name,whether it is running or dead?and if dead how to autostart it?I have one small shell script written in Bash.You can utilize it is korn shell(ksh),sh shell as well by updating first line of script file.i.e #!/bin/bash
       Script is made like that it will ask you to enter exact service name,It will find service is exist or not,if not then it will ask you to start service again,by again entering service name again,and it will start it automatically ,and will make it persistant on restart of linux machine.





/* #################Script Start################# */

#!/bin/bash
/usr/bin/read -p "Enter Service  Name You Want To Check,Please enter exact service name e.g. smb,ntpd,httpd etc..." pid_name
/bin/echo "You have Entered Process Name $pid_name"
/bin/echo " Please Wait..."
k=$pid_name
if [ -f /var/run/$pid_name.pid ];
then
/bin/echo " Process_name $pid_name is running "
else
/bin/echo " Process_name $pid_name is dead or not running "
/bin/echo " Do you want to start dead service?"
/bin/echo " As you are on linux machine,we are expacting you to enter exact process name :) "
/bin/echo " Please enter Process exact name again,else press ctrl + c "
read $k
/etc/init.d/$k restart ;chkconfig $k on
fi

/* ################Script End################# */

To Download This Check_Service Script Click Here

         You can put this script as a cronjob(schedule auto check) that will check particular service every 30 minutes automatically everyday.For this you will need to configure crond services.You can follow below steps to do:
          Before you do with cronjob,you will need to modify script according to mentioned below,i have decided to check mysqld service ,and if it is dead then it will autostart it:


(1)service crond start
(2)crontab -l (To list the cronjobs)
(3)su - (login with superuser)
(4)crontab -e (add new cronjob)
(5)*/30 * * * * /user/bin/sh /path/of/script/service_autocheck.sh
(6)save file by :wq!
(7)service crond restart
(8)chkconfig crond on

Tuesday, November 12, 2013

Get more than 100GB Free Cloud Storage!!!

            "Cloud Storage" is referred to as a storage which we can be utilized from anywhere in the world through internet connection or in some cases without internet connection with partial support,which does not has any physical existance at client end.Cloud storage exists at cloud service providers own locations ,we say it as the "Datacenters" or hired Datacenters,and it has thousands of Terabyte storage space with backup support.


          With cloud storage ,we can store our important data at safe places(datacenters),condition is that you have to create strong password for your cloud storage service account.I can suggest you upto 100GB free cloud storage ,even more than 100GB cloud storage through different service.Below are the free cloud storage services ,which you can utilize.


(1)Dropbox - You will get free 2GB Cloud storage with registration ,and can extend up to 16GB total by referring more 32 frineds in your network.For Registration Click Here


(2)Skydrive -  You will get microsoft email account + 7 GB storage.You will need to create Microsoft account to avail this service.For Registration Click Here 


(3)Google Drive - You will get gmail email account + 15GB storage.You will need to create Gmail Account to avail this service.For Registration Click Here.

(4)cCloud -  You will get 10GB free Cloud storage.For Registration Click Here

(5)4shared - You will get 15GB free Cloud storage.For Registration Click Here

(6)Box -  You will get 10GB free Cloud Storage.For Registration Click Here

(7)iDrive -  You will get 5GB free Cloud Storage.For Registration Click Here

(8)Bitcasa - You will get 10GB free Cloud Storage with backup support.For Registration Click Here

(9)Ubuntu One -  You will get 5GB free Cloud Storage.For Registration Click Here

(10)4sync - You will get 15GB free Cloud Storage.For Registration Click Here

(11)Yandex.disk - You will get 10GB free storage (by downloading client + uploading one file + referring one friend) + email service.For registration Click Here

Sunday, November 10, 2013

Softwares,Should Be Installed After Fresh Windows OS Installation

            Everybody knows that today only simple formatting of OS installation is not enough to use it in all the way.We need some basic softwares that must be needed to be installed even after fresh installation of Windows based operating systems.Here i am talking abut only desktop OS not server OS.In server side you must have minimal installation of softwares.By the way, It may be any Windows os like xp home,xp pro,xp mediacenter,vista,windows 2000,windows 7,windows 8 etc...In latest version of Windows OS like 7 and 8,some of the below mentioned softwares are preinstalled ,so you don't need to install them again.


           Below are the some important softwares those should/must be installed after fresh installation of windows based OS.

(1)Free Antivirus Software - It is very very important and must be installed first after fresh installtion of windows operating system.It protect your system from virus,Trojans,hackers,malwares,warms and ,malicious softwares from being installed.

  • Software Source - You can download from below mentioned sources.
******I personally recommend to Install Free Internet Security and not free Antivirus,because it will increase your system protection.You will need more RAM for free Internet Security software to work properly.You can check system requirements for this.You visit Here for download of free Internet security.

  1. Comodo Free Internet Security -  Click Here
  2. Microsoft Security Essemtinals - Click Here
  3. Bitdefender Antivirus Free Edition -Click Here
  4. AVG Antivirus Free Edition - Click Here
  5. Avira Antivir Personal Edition - Click Here
  6. Panda Cloud Antivirus - Click Here
  7. Avast Free Antivirus - Click Here

(1)Adobe Flash Player -  This is useful software for view flash related images and videos ,and it is essemtial software for any OS to play it.It is freeware(No charge for installation,freely available on the internet).
  • Software Source - You can download adobe flash player from Here  (Freeware)
(2)Adobe Shockwave player - Web has to offer - including dazzling 3D games and entertainment, interactive product demonstrations, and online learning applications. Shockwave Player displays Web content that has been created by Adobe Director.It is freeware.
    • Software Source - You can download shockwave player from Here (Freeware)
    (3)Adobe Reader - It is useful software for viewing PDF related documents ,which are more used in office environment.
    • Software Source - You can download adobe reader from Here (Freeware)
    (4)Drivers of Hardware of systems - In case of windows xp,2000 and vista or 7,you will require to download latest version drivers of hardware installed in your system.


    • Software Source -  You can download from below mentioned links
    1. For Intel based hardwares - Click Here
    2. For AMD based hardwares -  Click Here
    (5)Browser -  You will require one more browser except Internet Explorer.

    • Software Source - You can download from below mentioned links
    1. Google Chrome - Click Here (Freeware)
    2. Firefox - Click Here (Freeware)
    3. Internet Explorer Last version - Click Here (Freeware)
    (6)Google Input Tools - You will be write anything in your own native language.


    (7) MS Office - You can write some good Documents,excel files,PPT etc.

    • Software Source -  You can download from below mentioned links.
    1. Open Office - Click Here (Freeware)
    2. MS Office - Click Here  (Shareware - Trial)
    (8)VLC media Player  - Media player which can play almost all important media files,also covert,record from tapes to digital MP3 files and allows to save as mp3 file in PC etc.

    (9)Dictionary - Translate any word meaning from any language to our native language.If you don't want to download software ,but want to translate online from browser ,you can visit HERE

    • Software Source - You can download from below mentioned links
    1. Gujarati Dictionary - Click Here
    2. Hindi Dictionary - Click Here 
    (10)Windows Movie Maker -  Create your own move with your photos and Videos.
    (11)Viber for windows 
    (12)Skype 
    (13)Microsoft .NET Framework - Most important to run some windows based softwares
    (14)Microsoft Silverlight - Improve  some windows based software's performance.Require in some windows based softwares
    (15)Direct X
    (16)Cute PDF Writer - To save any kind of digital docs,images,photos,webpage in to a standard PDF file.
    (17)Visual C++ Runtime Redistributable - Required in some windows softwares.

    Shell Script Code