Skip to main content

Posts

Showing posts from February, 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

./configure
make
sudo make install
Now check the version whether the git is properly installed-

git --version
Git tutorial - http://schacon.github.com/git/gittutorial.html

User manual of Git -
http://schacon.github.com/git/user-manual.html#repositories-and-branches

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
address 192.168.2.112
netmask 255.255.240.0
network 192.168.1.1
broadcast 192.168.1.1
gateway 192.168.1.1

Now open the resolv.conf to add DNS settings

sudo vi /etc/resolv.conf

Do the following changes ---

nameserver 192.168.2.112
search localdomain.com

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 www.google.com to check whether your connection is ready.