Thursday, February 9, 2012

Git Installation in Ubuntu

Git is an open source version control system. It is designed to handle from small to very large projects with speed and efficiency.

Fig: Data flows and storage levels in Git

First install all the dependent packages

sudo aptitude build-dep git-core

Now download git-1.7.1.tar.gz

Now extract the file

sudo tar -xvzf git-1.7.1.tar.gz

If you download git-1.7.3.tar.bz2, then extract like this

sudo tar -xvjf git-1.7.3.tar.bz2

Now change the directory

cd git-1.7.x/

Run the following commands

sudo make install

Now check the version whether the git is properly installed-

git --version

Git tutorial -

User manual of Git -

Wednesday, February 8, 2012

Network configuration in Ubuntu

Open the file /etc/network/interfaces in vi mode or in different editor

sudo vi /etc/network/interfaces

Do the following changes –

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

Now open the resolv.conf to add DNS settings

sudo vi /etc/resolv.conf

Do the following changes ---


You might need to remove dhcp-clinet3

sudo apt-get remove dhcp-client

Now restart the network

sudo /etc/init.d/networking restart

and also restart the network manager

sudo /etc/init.d/network-manager restart

Now ping to check whether your connection is ready.