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"...

How to find outgoing IP in Linux ?

Here is a small snippet to find outgoing IP of your Linux box. 1. To find the outgoing internal IP only        # ip route get 8.8.8.8 | head -1 | gawk '{ print $7 }' 2. To find the outgoing internal IP along with interface.  # ip route get 8.8.8.8 | head -1 | gawk '{ print $5,$7 }' 3. In-case if your system is connected to Internet, to find the...

True transparency in CentOS

I have enabled transparency for my gnome terminal but I am always getting my desktop wallpaper as background of terminal after googling I found compiz missing. Compiz is available in base repo itself. pre style="color:#55cc66;background:#001800;" sudo="" yum="" install="" compiz After installing look for system-Preferences-WindowsTweak Manager and last option would give compiz and there enable...

How to extract system load through SSH

Hi , with some research I have written these simple scripts which can extract only load average part from uptime command. these scripts you can use for getting information you requested from remote systems through SSH. Script #1 #!/bin/bash for i in localhost  do ssh raja@$i $'uptime | awk \'{print $6 $7 $8 $9 $10}\' ' done Script #2 #!/bin/bash for i in localhost  do ssh raja@$i...

Restore Permission on Home directory

This Post I am taking from askubuntu , not answered by me but posting in my blog so that it can help others in future.http://askubuntu.com/questions/567599/emsudo-chmod-x-caused-me-cannot-open-anythingNote: This is the way like doing as undoing what you have done.sudo chmod -x * -Rfind . -type dYou will get an error like below find: 'xxxxx': Permission denied then do asfind . -type d -exec chmod...