Installing Chef server in your CentOS 6.7 easily.

I have tried to install chef in my CentOS 6.7 but it was like complicated thing till today. So many problems I have faced and I am giving them as precautions to you. 1. You should have minimum 1 Mbps unlimited connection. Atleast 5 GB data you are going to download. 2. Always you have to choose your current OS version builds, If you choose other version builds you will be stopped with library...

Extract log efficiently by using sed

Modification of Log pulling command by using sed Old command That I use to do log extraction sed -nre '/12:23:12/,/12:24:12/ p' logfile > /tmp/somelog.txt But this will take match of given two time stamps at any where in log file.And sometimes from middle of the line which gives obviously wrong log that I need. So , Now we are modifying sed to look after only at lines starting with timestamp. It...

Reset Gnome 2 panel to default applets

If you ever accidentally remove your Gnome Panel in any Gnome 2.X default DE Linux then,  you can reset it to default with mv ~/.gconf/apps/panel ~/.gconf/apps/panel.bak Now restart your Linux and re login. Your gnome panel will be back 🔙. Hope it helps you....

Changing hostname in CentOS ,Redhat Linux OS

Hello , Today lets see an article about changing hostname in CentOS and Redhat. We have to change hostname in 3 locations to apply changes globally in all locations.  Configuration filenames : 1. /etc/sysconfig/network 2. /etc/hosts 3. hostname command  1. Open /etc/sysconfig/network with any editor.                      ...

How to avoid ambiguous redirect error in Bash ?

Hello , Today I was trying to take Threaddump for my Java process in single command with date and hostname like this $ jstack -l `pgrep java` > /tmp/TD_`hostname`_`date`_`pgrep java` But I am getting error like  -bash: /tmp/TD_`hostname`_`date`_`pgrep java`: ambiguous redirect Then I posted at  unix.stackexchange.com and a friend named Muru helped me in fixing...

Installing latest Git in CentOS 6.7

Hello , I am Raja. Today I am writing this article on installing latest Git in CentOS 6.7 via source. Actually in CentOS 6.7 , we are getting only 1.7.1 version but the latest Git version is git-2.6.3. And while installing I've been through lot of R&D. Here I am providing you everything in a single article. Here the avalibale version of git in CentOS 6.7. [localserver@dhcppc2 ~]$ yum list...

Install Google Chrome in CentOS 6.X

Hello , In CentOS 6.X , installing Google Chrome webbrowser is not easy task. We have dependencies issues with  "libstdc++.so.6(GLIBCXX_3.4.15)". On searching I came to know about Chrome Richardlloyd . By using his script we can install Chrome very easily with in CentOS. To install it , open your terminal and turn into root user and paste these lines one after one wget http://chrome.richardlloyd.org.uk/install_chrome.sh chmod...

How to solve "An unknown FastCGI error occured" error in IIS7 and IIS 7.5 ?

PHP does not work with "An unknown FastCGI error occured" error in IIS 7 / 7.5/ 8   Symptoms  With PHP domains shows the following error:  HTTP Error 500.0 - Internal Server Error An unknown FastCGI error occurred Error Code 0x800736b1  FromCommandLinethe following error occur:  C:\Windows\system32>"C:\Program Files\HSphere\3rdparty\PHP\PHP53\php-cgi.exe"...