أعلان الهيدر

الرئيسية كيفيه تنصيب ال NS2 على UBUNTU

كيفيه تنصيب ال NS2 على UBUNTU

بسم الله الرحن الرحيم






ال NS2 محاكي مختص بالشبكات يحوي الكثير من البروتكولات ويستخدم في كثير من الابحاث ولكن هنالك صعوبه في تنزيل البرنامج اذا ما بحثت عن الطريقه على الانترنت لان البرنامج لا يعمل الا على نظام اللينكس لذا ساقوم بشرح طريقه تنزيله خطوه بخطوه مع فيديو توضيحي .



ما تحتاج لتحميله للبدا في العمل :

رابط تحميل نظام ال ubuntu64bit : ubuntu-14.04.2-desktop-amd64.iso

رابط تحميل نظام ال ubuntu32bit : ubuntu-14.04.2-desktop-i386.iso

لتحميل ال VMWARE : vmware

ملاحظه رابط تحميل ال vmware يحوي ملف torrent تقوم بفتحه عن طريق برنامج utorrent ..
لتحميل البرنامج من هنا : utorrent 

لمزيد من المعلومات عن ال torrent اقرا هذا الموضوع : Torrent




الشرح التوضيحي لتنصيب ال NS2 :



خطوات التنزيل التي تم استخدامها في الفيديو :


Step 1:  Download NS2 package (ns-allinone-2.35
Step 2:  Copy the file to ‘/home/user ‘ folder (you can use your corresponding home path).
Step 3:  Open the terminal and execute the commands one by one
  • $: sudo -s
Enter your password
  • # apt-get install build-essential autoconf automake libxmu-dev
  • # tar zxvf ns-allinone-2.35.tar.gz

  • # cd ns-allinone-2.35

  • # gedit ns-2.35/linkstate/ls.h
  • In line number 137 and change the following line
void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
  • to
void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
  • # ./install (This process will take time. So don’t worry.)
  • Once the installation is completed you may see the screen like the image given below.
now we need to add those lines in the file 
'/home/(username)/.bashrc'

1) # cd /home/(username)/
2)# gedit .bashrc
3)copy these lines and add them like how its added in the video 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


# LD_LIBRARY_PATH

OTCL_LIB=


/home/user
/ns-allinone-2.35/otcl-1.14/

NS2_LIB=


/home/user
/ns-allinone-2.35/lib/

USR_Local_LIB=/usr/local/lib/

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$USR_Local_LIB

# TCL_LIBRARY
TCL_LIB=

/home/user
/ns-allinone-2.35/tcl8.5.10/library/
USR_LIB=/usr/lib/
export TCL_LIBRARY=$TCL_LIBRARY:$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/user/ns-allinone-2.35/xgraph-12.2/:

/home/user
/ns-allinone-2.35/bin/:


/home/user
/ns-allinone-2.35/tcl8.5.10/unix/:


/home/user
/ns-allinone-2.35/tk8.5.10/unix/
NS=

/home/user
/ns-allinone-2.35/ns-2.35/
NAM=

/home/user
/ns-allinone-2.35/nam-1.15/
export PATH=$PATH:$XGRAPH:$NS:$NAM

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

4) change all 'user' words to your user name 

save the file and then do 
#source /home/user/.bashrc
change user to your name 

now try # ns 

if you see % then you have done it right and ns2 is now installed .




ليست هناك تعليقات:

إرسال تعليق

يتم التشغيل بواسطة Blogger.