Network Simulator 2

I am installing NS2 v2.33(latest version) on fedora 9(i386). There are two ways to install it either piece wise or all in one. Here i am installing all in one because it is simple.
  • Download all in one package from NS website.
  • It is ".tar.gz" format so extract it on your fedora desktop.
  • Open terminal
  • Type "cd Desktop" and press enter(as your ns folder is on desktop)
  • Now type "cd ns-allinone-2.33" and press enter
  • Type "./install" and press enter. It will automatically install all the compoents in the folder and it will take some time.
  • When done. Now type "gedit ~/.bashrc"
  • Add the following lines of code at the end of the file (remember to replace"/home/hassan/desktop" with your installation path)
# LD_LIBRARY_PATH
    OTCL_LIB=/home/hassan/Desktop/ns-allinone-2.33/otcl-1.13
      NS2_LIB=/home/hassan/Desktop/ns-allinone-2.33/lib
        X11_LIB=/usr/X11R6/lib
          USR_LOCAL_LIB=/usr/local/lib
            export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

                # TCL_LIBRARY
                  TCL_LIB=/home/hassan/Desktop/ns-allinone-2.33/tcl8.4.18/library
                    USR_LIB=/usr/lib
                      export TCL_LIBRARY=$TCL_LIB:$USR_LIB

                          # PATH
                            XGRAPH=/home/hassan/Desktop/ns-allinone-2.33/bin:/home/hassan/Desktop/ns-allinone-2.33/tcl8.4.18/unix:/home/hassan/Desktop/ns-allinone-2.33/tk8.4.18/unix
                              NS=/home/hassan/Desktop/ns-allinone-2.33/ns-2.33/
                                NAM=/home/hassan/Desktop/ns-allinone-2.33/nam-1.13/
                                  PATH=$PATH:$XGRAPH:$NS:$NAM
                                  • Now type "source ~/.bashrc"
                                  • Installation is completed. To check whether your installation is correct type "ns" a "%" will appear on the screen enter "exit". Type "nam" this will open network animator. I hope this tutorial will be helpful for you.

                                  0 comments:

                                  Post a Comment