Professional Documents
Culture Documents
Ns2 Installation (On Rhel5/Centos5)
Ns2 Installation (On Rhel5/Centos5)
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
created by Vipin Gupta for U-Net Solutions. Punjab (India). web address: [email protected] or (linuxexpert.in)
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.
created by Vipin Gupta for U-Net Solutions. Punjab (India). web address: [email protected] or (linuxexpert.in)