Differences

This shows you the differences between two versions of the page.

Link to this comparison view

isrm:instalare-ns2 [2013/10/23 12:44]
dragos.niculescu
isrm:instalare-ns2 [2016/09/21 17:36] (current)
dragos.niculescu
Line 2: Line 2:
 Pentru a folosi ns-2 în ubuntu/​debian,​ sunt necesare următoarele pachete: Pentru a folosi ns-2 în ubuntu/​debian,​ sunt necesare următoarele pachete:
 <​code>​ <​code>​
-# apt-get install build-essential autoconf automake libxmu-dev libxt-dev libx11-dev libxt6+# apt-get install build-essential autoconf automake libxmu-dev libxt-dev libx11-dev libxt6 ​gnuplot-x11
 </​code>​ </​code>​
-În platforme se folosește un ns-2 modificat pentru a utiliza agentul de rutare NOAH, și pentru a dezactiva ARP +În platforme se folosește un ns-2.34 modificat pentru a utiliza agentul de rutare NOAH, și pentru a dezactiva ARP 
-  - varianta 1 (recomandată) +  - Linux:  
-    * instalați binarele (32biți) folosite în laborator — necesită 214MiB +    * descărcați [[ https://drive.google.com/​file/​d/​0BzJ4U2LbYjAOSG5NRndxd3FteUU ​ 
-    * dacă folosiți un Linux pe 64 de biți(comanda ''​uname -m''​ întoarce x86_64), atunci sunt necesare biblioteci suplimentare,​ pentru debian/​ubuntu se numesc ''​ia32-libs''​ +    ​ns-allinone-2.34.tgz]] [85MiB] — are probabil numele ~/​Downloads/​ns-allinone-2.34.tgz
-    * descărcați [[ https://docs.google.com/​open?​id=0B9Duk8kUTpPwOTA1Nzg5NjItMGZjZS00ZWM5LTgwM2QtMzViOGIwYjMzMmI5 ​| ns-allinone-2.34.tat.tgz]] [77MiB] — are probabil numele ~/​Downloads/​ns-allinone-2.34.tat.tgz+
     * comutați în modul superuser: <​code>​     * comutați în modul superuser: <​code>​
             $ sudo bash             $ sudo bash
             # cd /             # cd /
-            # tar xzvf ~/​Downloads/​ns-allinone-2.34.tat.tgz +            # tar xzvf ~/​Downloads/​ns-allinone-2.34.tgz 
-            # ln -s /​opt/​ns/​bin/​ns /​usr/​local/​bin </​code>​+            # ln -s /​opt/​ns/​bin/​ns ​/​usr/​local/​bin  
 +            # ln -s /​opt/​ns/​bin/​nam ​/​usr/​local/​bin </​code>​
     * ca user normal: <​code> ​       ​     * ca user normal: <​code> ​       ​
-            $ which ns +            $ which ns   #​dorim /​usr/​local/​bin/​ns 
-            $ ns script.tcl ​          </​code>​ +            $ wget http://​www.isi.edu/​nsnam/​ns/​tutorial/​examples/​example1b.tcl 
-  - varianta 2 (recompilare)  +            $ ns example1b.tcl            
-    * instalați [[ http://​www.isi.edu/​nsnam/​ns/​ns-build.html#​allinone | ns-allinone]] +   </​code>​ 
-    * aplicați patch pentru ​[[ http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/ | NOAH]] +  ​OSX Intel 
-    * rulați scriptul ''​ns-allinone-2.34/​install''​ pentru a recompila întregul ns +    * [[ https://drive.google.com/file/d/0B9Duk8kUTpPweHJyS0hYYjRJWUk/view?​usp=sharing ​| ns-allinone ​]]  
 +  
isrm/instalare-ns2.1382521444.txt.gz · Last modified: 2013/10/23 12:44 by dragos.niculescu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0