Thursday, September 5, 2013

Network simulator NS2 Simple installation steps for UBUNTU 12.04 operating system

Network simulator NS2 Simple installation steps for UBUNTU 12.04 operating system.
These are simple ns2 installation steps i implemented to install ns2 on my desktop.
I do not any errors .
Before installation please update the ubuntu software


Here bold letters are typed by sra1reddy user.

Color bold letters are commands and yes.
Step 1:




sra1reddy@sra1reddy-desktop:~$ sudo apt-get install ns2

[sudo] password for sra1reddy: your system Password here


Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libotcl1 libxss1 tcl8.5 tk8.5
Suggested packages:
gnuplot tclreadline
The following NEW packages will be installed:
libotcl1 libxss1 ns2 tcl8.5 tk8.5
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 7,122 kB of archives.
After this operation, 19.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com/ubuntu/ precise/main tcl8.5 i386 8.5.11-1ubuntu1 [1,097 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ precise/universe libotcl1 i386 1.14+dfsg-2 [23.7 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ precise/main libxss1 i386 1:1.2.1-2 [8,604 B]
Get:4 http://in.archive.ubuntu.com/ubuntu/ precise/main tk8.5 i386 8.5.11-1 [996 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu/ precise/universe ns2 i386 2.35~rc10+dfsg-1 [4,997 kB]
Fetched 7,122 kB in 6min 1s (19.7 kB/s)
Selecting previously unselected package tcl8.5.
(Reading database ... 169009 files and directories currently installed.)
Unpacking tcl8.5 (from .../tcl8.5_8.5.11-1ubuntu1_i386.deb) ...
Selecting previously unselected package libotcl1.
Unpacking libotcl1 (from .../libotcl1_1.14+dfsg-2_i386.deb) ...
Selecting previously unselected pacerrors .kage libxss1.
Unpacking libxss1 (from .../libxss1_1%3a1.2.1-2_i386.deb) ...
Selecting previously unselected package tk8.5.
Unpacking tk8.5 (from .../tk8.5_8.5.11-1_i386.deb) ...
Selecting previously unselected package ns2.
Unpacking ns2 (from .../ns2_2.35~rc10+dfsg-1_i386.deb) ...
Processing triggers for man-db ...
Setting up tcl8.5 (8.5.11-1ubuntu1) ...
update-alternatives: using /usr/bin/tclsh8.5 to provide /usr/bin/tclsh (tclsh) in auto mode.
Setting up libotcl1 (1.14+dfsg-2) ...
Setting up libxss1 (1:1.2.1-2) ...
Setting up tk8.5 (8.5.11-1) ...
update-alternatives: using /usr/bin/wish8.5 to provide /usr/bin/wish (wish) in auto mode.
Setting up ns2 (2.35~rc10+dfsg-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place .

Congrats you installed NS2 successfully
sra1reddy@sra1reddy-desktop:~$






Step 2:


To install network animator by the following command,

sra1reddy@sra1reddy-desktop:~$ sudo apt-get install nam 


Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libtclcl1
The following NEW packages will be installed:
libtclcl1 nam
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 289 kB of archives.
After this operation, 994 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com/ubuntu/ precise/universe libtclcl1 i386 1.20-6 [73.2 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ precise/universe nam i386 1.15-1 [215 kB]
Fetched 289 kB in 16s (17.3 kB/s)
Selecting previously unselected package libtclcl1.
(Reading database ... 169466 files and directories currently installed.)
Unpacking libtclcl1 (from .../libtclcl1_1.20-6_i386.deb) ...
Selecting previously unselected package nam.
Unpacking nam (from .../archives/nam_1.15-1_i386.deb) ...
Processing triggers for man-db ...
Setting up libtclcl1 (1.20-6) ...
Setting up nam (1.15-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place .

Congrats you installed nam successfully










To check installed nam just follow the below command

sra1reddy@sra1reddy-desktop:~$ nam














Sra1reddy@sra1reddy-desktop:~$ sudo apt-get install xgraph
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ygraph
The following NEW packages will be installed:
xgraph
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 91.4 kB of archives.
After this operation, 230 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ precise/universe xgraph i386 12.1-15 [91.4 kB]
Fetched 91.4 kB in 6s (13.1 kB/s)
Selecting previously unselected package xgraph.
(Reading database ... 169479 files and directories currently installed.)
Unpacking xgraph (from .../xgraph_12.1-15_i386.deb) ...
Processing triggers for man-db ...
Setting up xgraph (12.1-15) ...
Congrats you installed xgraph successfully


sra1reddy@sra1reddy-desktop:~$

You can also install gnuplot for ns2.

sra1reddy@sra1reddy-desktop:~$

sra1reddy@sra1reddy-desktop:~$ sudo apt-get install gnuplot
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gnuplot-nox gnuplot-x11 groff imagemagick imagemagick-common libcdt4
libgraph4 libgvc5 libilmbase6 liblqr-1-0 libmagickcore4 libmagickcore4-extra
libmagickwand4 libnetpbm10 libopenexr6 libpathplan4 libwxbase2.8-0
libwxgtk2.8-0 netpbm psutils
Suggested packages:
gnuplot-doc imagemagick-doc autotrace curl enscript ffmpeg gimp grads hp2xx
html2ps libwmf-bin mplayer povray radiance texlive-base-bin transfig
ufraw-batch libgnomeprintui2.2-0
The following NEW packages will be installed:
gnuplot gnuplot-nox gnuplot-x11 groff imagemagick imagemagick-common libcdt4
libgraph4 libgvc5 libilmbase6 liblqr-1-0 libmagickcore4 libmagickcore4-extra
libmagickwand4 libnetpbm10 libopenexr6 libpathplan4 libwxbase2.8-0
libwxgtk2.8-0 netpbm psutils
0 upgraded, 21 newly installed, 0 to remove and 7 not upgraded.
Need to get 13.6 MB of archives.
After this operation, 37.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com/ubuntu/ precise/universe libwxbase2.8-0 i386 2.8.12.1-6ubuntu2 [597 kB]
.....
Setting up libwxbase2.8-0 (2.8.12.1-6ubuntu2) ...
Setting up libwxgtk2.8-0 (2.8.12.1-6ubuntu2) ...
Setting up gnuplot-nox (4.4.3-0ubuntu3) ...
Setting up gnuplot-x11 (4.4.3-0ubuntu3) ...
Setting up gnuplot (4.4.3-0ubuntu3) ...
Setting up groff (1.21-7) ...
Setting up liblqr-1-0 (0.4.1-1.1) ...
Setting up imagemagick-common (8:6.6.9.7-5ubuntu3.2) ...
Setting up libmagickcore4 (8:6.6.9.7-5ubuntu3.2) ...
Setting up libmagickwand4 (8:6.6.9.7-5ubuntu3.2) ...
Setting up imagemagick (8:6.6.9.7-5ubuntu3.2) ...
Setting up libcdt4 (2.26.3-10ubuntu1) ...
Setting up libgraph4 (2.26.3-10ubuntu1) ...
Setting up libpathplan4 (2.26.3-10ubuntu1) ...
Setting up libgvc5 (2.26.3-10ubuntu1) ...
Setting up libilmbase6 (1.0.1-3build2) ...
Setting up libopenexr6 (1.6.1-4.1) ...
Setting up libmagickcore4-extra (8:6.6.9.7-5ubuntu3.2) ...
Setting up libnetpbm10 (2:10.0-15) ...
Setting up netpbm (2:10.0-15) ...
Setting up psutils (1.17-31) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
sra1reddy@sra1reddy-desktop:~$



Congrats you installed gnuplot successfully .

These are simple ns2 installation steps i implemented to install ns2 on my desktop.
I do not get  any errors in this installtion.

Before installation please update the ubuntu by the following command.

sra1reddy@sra1reddy-desktop:~$sudo apt-get update

No comments:

Post a Comment

Search This Blog