ns2 install instructions

2
created by Vipin Gupta for U-Net Solutions. Punjab (India). web address: [email protected] or (linuxexpert.in) Vipin Gupta, U-Net Solutions, India ns2 installation (on rhel5/CentOS5): step 1: download the latest version of ns2 simulator. one possible download link is step 2: copy the “ns-allinone-2.35.tar.gz” into “/usr/src/” dir. step 3: install the “dependencies” packages using “yum” command as shown. # yum install tk* *tcl* autoconf automake gcc* libX* *c++* libXmu* step 4: go to “/usr/src/” dir & “extract” contents from “ns-allinone-2.35.tar.gz” file with “tar” command. # cd /usr/src/ # tar xvfz ns-allinone-2.35.tar.gz step 5: on extraction, one dir “ns-allinone-2.35” will get created under “/usr/src/”. go to this dir & run “./install” command. it may take 5-10 minutes for installation depending upon your system configuration. step 6: create one file “ns2.sh” in “/etc/profile.d/” dir with contents as shown. or download it from following site “http://linuxexpert.in”. the contents of file can be viewed by using “tail” or “cat” command. if you have downloaded the “ns2.sh” file from above site. copy that file into “/etc/profile.d/” dir as shown. in our case we downloaded the file into “usb” device. & then copied it to “/etc/profile.d/” dir by first mounting “usb” device & then copying the file. “umount” device & run the command # source /etc/profile.d/ns2.sh

Upload: ductdt09

Post on 08-Feb-2016

4 views

Category:

Documents


0 download

DESCRIPTION

OBS

TRANSCRIPT

Page 1: Ns2 Install Instructions

created by Vipin Gupta for U-Net Solutions. Punjab (India). web address: [email protected] or (linuxexpert.in)

Vipin Gupta, U-Net Solutions, India

ns2 installation (on rhel5/CentOS5):

step 1: download the latest version of ns2 simulator. one possible download link is

step 2: copy the “ns-allinone-2.35.tar.gz” into “/usr/src/” dir.

step 3: install the “dependencies” packages using “yum” command as shown.

# yum install tk* *tcl* autoconf automake gcc* libX* *c++* libXmu*

step 4: go to “/usr/src/” dir & “extract” contents from “ns-allinone-2.35.tar.gz” file with “tar” command. # cd /usr/src/ # tar xvfz ns-allinone-2.35.tar.gz

step 5: on extraction, one dir “ns-allinone-2.35” will get created under “/usr/src/”. go to this dir & run “./install” command. it may take 5-10 minutes for installation depending upon your system configuration.

step 6: create one file “ns2.sh” in “/etc/profile.d/” dir with contents as shown. or download it from following site “http://linuxexpert.in”. the contents of file can be viewed by using “tail” or “cat” command.

if you have downloaded the “ns2.sh” file from above site. copy that file into “/etc/profile.d/” dir as shown. in our case we downloaded the file into “usb” device. & then copied it to “/etc/profile.d/” dir by first mounting “usb” device & then copying the file.“umount” device & run the command # source /etc/profile.d/ns2.sh

Page 2: Ns2 Install Instructions

created by Vipin Gupta for U-Net Solutions. Punjab (India). web address: [email protected] or (linuxexpert.in)

Vipin Gupta, U-Net Solutions, India

before running the above command, change the permissions of the file “ns2.sh”.

# chmod 755 /etc/profile.d/ns2.sh

(just remember, we are performing all actions as user “root”)

now you can test the “ns2” simulator as shown. you should be in “GUI” mode to test the simulator.

as can be seen, it is running perfectly