Tuesday, February 28, 2012

installing libcap

I faced lot of problem in installing libcap (library for sniffing packet). You can easily install it in ubuntu by installing the package libpcap0.8-dev.

#sudo apt-get install libpcap0.8-dev

and during compilation of any program using pcap.h
 compile it

#gcc prog.c -lpcap -o prog

enjoy coding.. :) B-)

Saturday, February 11, 2012

Task bar in ubuntu 11.10 using tint2

I started to use ubuntu 11.10 but i faced a problem that is absence of taskbar . Taskbar is not available with unity desktop.

So i google out the things and got "tint2" .

install tint2
            $ sudo apt-get install tint2

setup tint2 in startup program
            goto  control (right upper most widget ) ---> startup application 


and fill the entry
                  name        :  tint2
         command      :  tint2
click on add . Restart your computer and enjoy the taskbar...
for more help



 here at bottom we have the tasskbar..

happy coding... :) B-)

Linux file system

Many of us which are new to linux, usually get confused between linux and windows file system. Because Linux has completely different file structure than windows. Linux has its file system rooted to '/'  and each sub folder for some specific job and they have special meaning.

Yesterday I found a very good blog that explains the file system of linux and  objective of each sub directories and their location too.

Linux file system hierarchy 
good blog to understand Linux file system

It help me a lot to understand the file system. hope this will help you in journey of linux.

-- enjoy coding

Thursday, February 2, 2012

Firefox 10 for Ubuntu !!!! (released yesterday)

here we can get latest version of firefox....

add the repository of firefox
#sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
 
update it
#sudo apt-get update
 
install firefox
#sudo apt-get install firefox
 
enjoy coding... :) B-)

Wednesday, February 1, 2012

some basic command of git

adding user name
#git config --global user.name "Trinity"

set email address
#git config --global user.email "trinity@gmail.com"

.gitconfig file in home folder will contain above information

creating clone of project :
#git clone <link>

to see history of project
#git log

creating a project

create folder for project
#mkdir Trinity

#cd Trinity

#git init


to check the status
#git status

to commit the modification

#git commit -m 'msg'

to add files to track
#git add .

to see last commit
#git show

Working with git

when i build git from its source then i tried to clone a project then i face a problem  :

" fatal : Unable to find remote helper for 'https' "

actually it require curl and expat support.

remove the previous git
#apt-get remove git-core

install the git with new source with support of curl and expat
#tar -zxvf git-1.x.x.tar.gz
#cd git-1.x.x
#./configure --with-curl --with-expat
#make
#make install


now we can enjoy git without any error....


Enjoy Coding.. :) B-)