Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

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

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-)

Monday, January 23, 2012

Command to know information for partation..

list partition
                      $fdisk -l 

disk space usage:
                      $df -h     or       $df -k

display mount point :
                      $mount

quickly mount all file system present in /etc/fstab
                       $mount -a

File system mount points and other information present in /etc/fstab

Saturday, January 14, 2012

Scapy - Easy packet generation

Scapy is a python command based packet generation tool. It help to create packet very easily. It has full control over protocol stack. We can alter all the bits in the packet and modify any packet according to our wish.

installing scapy:
                          $ wget scapy.net
                          $ unzip scapy-latest.zip
                          $ cd scapy-2.*
                          $ sudo python setup.py install

starting scapy:
                         $ scapy



Documentation present at : www.dirk-loss.de/scapy-doc/Scapy.pdf


Sample code: [ICMP packet generation ]
                     
root@bt:~# scapy
WARNING: No route found for IPv6 destination :: (no default route?)
Welcome to Scapy (2.1.0)
>>> a= ICMP()
>>> b= IP()
>>> c=Ether()
>>> d=c/b/a

>>> d.display()
###[ Ethernet ]###
  dst= ff:ff:ff:ff:ff:ff
  src= 00:00:00:00:00:00
  type= 0x800
###[ IP ]###
     version= 4
     ihl= None
     tos= 0x0
     len= None
     id= 1
     flags=
     frag= 0
     ttl= 64
     proto= icmp
     chksum= None
     src= 127.0.0.1
     dst= 127.0.0.1
     \options\
###[ ICMP ]###
        type= echo-request
        code= 0
        chksum= None
        id= 0x0
        seq= 0x0
>>> send (d)       // sending the packet d into network


## send () is used when we are injecting packet at layer3.
and if we want to send packet with modification at layer 2 entry then we will use sendp() to send packet.
otherwise we will get a warning message. 
      >>> send(ether/ip/icmp)
WARNING: Mac address to reach destination not found. Using broadcast.
.
Sent 1 packets.


for more information

enjoy coding.. :) B-)

Saturday, September 3, 2011

Installation of NS2 in ubuntu

I tried to install ns2 and downloaded its code to install it in my ubuntu10.10 system but it was tedious task.
And then i found that following steps were the most simplest way to install ns2.

step 1: make sure that u don't have any previous installation of ns2.

step 2: export the key for ppa
           #sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F

step 3: add ppa to your source. You can get this file /etc/apt/source.list. Simply append these line to source.list file.
       
             deb http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main

             deb-src http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main

step 4: now reload your apt-cache 
            #sudo apt-get update 
            or simply reload your synaptic package manager

step 5: install ns2
             #sudo apt-get install ns nam xgraph
      now ns2 installed.

Test run:
download sample code that is tcl file.
run this code
         # ns example1b.tcl

done......  enjoy coding..