This shows you the differences between two versions of the page.
isrm:instalare-ns2 [2014/11/12 11:57] dragos.niculescu |
isrm:instalare-ns2 [2016/09/21 17:36] (current) dragos.niculescu |
||
---|---|---|---|
Line 4: | Line 4: | ||
# apt-get install build-essential autoconf automake libxmu-dev libxt-dev libx11-dev libxt6 gnuplot-x11 | # 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 |
- Linux: | - 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 | # ln -s /opt/ns/bin/ns /usr/local/bin | ||
# ln -s /opt/ns/bin/nam /usr/local/bin </code> | # ln -s /opt/ns/bin/nam /usr/local/bin </code> | ||
Line 19: | Line 18: | ||
$ wget http://www.isi.edu/nsnam/ns/tutorial/examples/example1b.tcl | $ wget http://www.isi.edu/nsnam/ns/tutorial/examples/example1b.tcl | ||
$ ns example1b.tcl | $ ns example1b.tcl | ||
- | $ poate da niște warning-uri :( </code> | + | </code> |
- OSX Intel | - OSX Intel | ||
* [[ https://drive.google.com/file/d/0B9Duk8kUTpPweHJyS0hYYjRJWUk/view?usp=sharing | ns-allinone ]] | * [[ https://drive.google.com/file/d/0B9Duk8kUTpPweHJyS0hYYjRJWUk/view?usp=sharing | ns-allinone ]] | ||
| |