Saturday, April 28, 2012

How To stop and enable firewall ?

Sometimes, when we are running some socket program, by connecting our machine to other machine, we face the problem of firewall. If the port is blocked, then we will not be able to transmit and receive, on the other hand both the codes will work fine with localhost (127.0.0.1)
In such cases, you can disable the firewall on temporary basis and permanent basis both. There are other options also like allowing tcp/udp connection on specific port, but I prefer this one:

$service iptables stop


to renable:

$service iptables start



To make it permanent:

$chkconfig iptables off
$service iptables stop

Wednesday, April 25, 2012

How to add Colors to GIT

The easiest way:

$git config color.ui true


All set and done


How to install Chromium browser on fedora

Step 1: Download the .repo file

Step 2: copy the repo file in /etc/yum.repos.d/
$cp fedora-chromium-stable.repo /etc/yum.repos.d/


Step 3: run the following command with root access or sudo
$yum install chromium


All done.