Installing NS2 in Ubuntu 22.04 | Complete Instructions

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2024
  • Join this channel to get access to perks:
    / @tspradeepkumar
    #Ubuntu2204 #NS2 #Pradeepkumar
    NS-2.35 installation in Ubuntu 22.04
    Commands to be used:
    $ cat /etc/lsb-release
    $ sudo apt update
    $ sudo apt install build-essential autoconf automake libxmu-dev
    Requirements of ns2
    gcc-4.8
    g++-4.8
    Were avaialble only upto 18.04 which the codename is bionic
    $ sudo gedit /etc/apt/sources.list
    make an entry in the above file
    deb in.archive.ubun... bionic main universe
    $ sudo apt update
    For any GPG error, include the following command
    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
    $ sudo apt update
    $ sudo apt install gcc-4.8 g++-4.8
    Make the changes in the follwing files
    @CC@ to be replaced with gcc-4.8
    @CPP@ to be replaced with g++-4.8
    ns-allinone-2.35/Makefile.in
    /home/pradeepkumar/ns-allinone-2.35/otcl-1.14/Makefile.in
    nam-1.15/Makefile.in
    xgraph-12.2/Makefile.in
    In all the above places, change @CC@ to gcc-4.8
    and @CPP@ @CXX@ to g++-4.8
    Open the file
    ns-2.35/linkstate/ls.h
    in line number 137, change the line erase to this-erase
    Once the installation is over, Set the PATH and LD_LIBRARY_PATH infomration in the file located at
    /home/pradeepkumar/.basic
    export PATH=$PATH:/home/pradeepkumar/ns-allinone-2.35/bin:/home/pradeepkumar/ns-allinone-2.35/tcl8.5.10/unix:/home/pradeepkumar/ns-allinone-2.35/tk8.5.10/unix
    export LD_LIBRARY_PATH=/home/pradeepkumar/ns-allinone-2.35/otcl-1.14:/home/pradeepkumar/ns-allinone-2.35/lib
    $ns
    $nam
    It works well.
    My other Channel - / tspradeepkumar1​
    My Tech Blog - www.nsnam.com/
    My Personal webiste - www.pradeepkum... ​
    ______________________________
    Follow me on,
    Instagram - / tspradeepkumar
    Facebook - / tspradeep​
    Twitter - / tspradeepkumar​
    ________________________________

ความคิดเห็น • 137

  • @coldcoke9254
    @coldcoke9254 วันที่ผ่านมา +1

    thank you sir, I have successfully and quite easily installed nam and ns by following your tutorial

  • @adityachhikara5986
    @adityachhikara5986 ปีที่แล้ว +5

    really helpful sir , felt so overwelmed when i saw the swift movement of packets in network animator. ❣❣❣❣❣Thank you for bringing happiness in our life.

  • @nano_dank
    @nano_dank ปีที่แล้ว +3

    I have compiled lots of software from source in Ubuntu, each with their own issues and mising dependencies. I was totally not prepared for the ancient code of NS2, however.
    We need it for university reasons, and no source I came across in the 4 hours before finding this video could help me. Who knew that I had to enable Bionic in the sources, download version 4.8 of gcc and g++, change half of the makefiles and fix a bug in the ls.h header file?
    After 4 painstaking hours, it finally compiled. Thank you so much. Have a good day.

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      Thank you and keep watching my videos...

    • @PereiraAlroy
      @PereiraAlroy 10 หลายเดือนก่อน

      Bro pls help me

  • @gamingcircus2637
    @gamingcircus2637 ปีที่แล้ว +5

    One of the most challenging installation i have witnessed ever in my life🤕

  • @premaggarwal7963
    @premaggarwal7963 ปีที่แล้ว +2

    Thank You, sir😄. NS2 was successfully installed in Ubuntu 22.04.1 👏

  • @SravaniSravanamPHD
    @SravaniSravanamPHD 2 ปีที่แล้ว +3

    Thank you very much, sir. NS2 was installed successfully in ubuntu 22.04

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว

      You are welcome and keep watching the videos

    • @pratimaupadhyay5197
      @pratimaupadhyay5197 ปีที่แล้ว +1

      Please guide me how to install in 22.04 because I have face many problems

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      @@pratimaupadhyay5197 If you try the instructions given in this video, ns2 surely works....

    • @bhaveshsaini1417
      @bhaveshsaini1417 ปีที่แล้ว +1

      cant install g++-4.8... i m stucked at this step

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      @@bhaveshsaini1417 g++-4.8 is available only on the 18.04 aptitude manager, so that has to be included into the 22.04 OS and after adding, you need to do sudo apt update . All instructions are there in the video.

  • @geetsalame3457
    @geetsalame3457 ปีที่แล้ว +5

    Thank you sir NS2 was successfully installed on my Ubuntu 22.04 machine.
    Can you please suggest NS2 tutorials for learning and practicing it.

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว +3

      Check my playlist on ns2, you could get many exercises,

    • @geetsalame3457
      @geetsalame3457 ปีที่แล้ว +2

      @@tspradeepkumar yes sir checking, thank you

  • @pavaramanupriya4457
    @pavaramanupriya4457 ปีที่แล้ว +3

    Thank you so much. You saved my day❤❤ Keep it up

  • @samikshasawadh345
    @samikshasawadh345 ปีที่แล้ว +2

    Nam console is not working. Entering nam command shows nam: it is not displaying nam console. what to do?

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว +1

      See my channel on other video on how to enable nam.. because nam package is outdate and which does not support the recent day OS... www.nsnam.com/2015/07/nam-installation-segmentation-fault.html

  • @ironmanabhi2233
    @ironmanabhi2233 ปีที่แล้ว +4

    really helpful even now thank you very much

  • @RoshanA-ee5cx
    @RoshanA-ee5cx 3 หลายเดือนก่อน +1

    Nam screen is showing just blak screen
    How to fix this

  • @etscreation9158
    @etscreation9158 4 หลายเดือนก่อน

    Dear Sir "nam" is not working or opening when I run the tcl file .. plz tell me solve this issue

  • @ujawed786
    @ujawed786 ปีที่แล้ว +3

    Sir my program is running succesfully but my GUI of NAM is not opening
    what to do ?

    • @subhodas6268
      @subhodas6268 8 หลายเดือนก่อน

      same problem

  • @vivekkoul3278
    @vivekkoul3278 9 หลายเดือนก่อน +2

    NAM console is not opening in end

  • @shikharverma6387
    @shikharverma6387 11 หลายเดือนก่อน +1

    Installation of g++ 4.8 and gcc-4.8 does not work in arm64 architecture. How to install NS2 in arm64 architecture (especially in new MAC M1/M2 architecture?

    • @tspradeepkumar
      @tspradeepkumar  10 หลายเดือนก่อน

      Its very tedious to use.. I have not tried... I use Intel Mac only

  • @jayarajugowda8501
    @jayarajugowda8501 8 หลายเดือนก่อน

    in my case cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=23.10
    DISTRIB_CODENAME=mantic
    DISTRIB_DESCRIPTION="Ubuntu 23.10"
    what can i do

  • @cjentuskuzan4027
    @cjentuskuzan4027 10 หลายเดือนก่อน +1

    16:25 nam console not showing in my case . any solution ?

    • @tspradeepkumar
      @tspradeepkumar  9 หลายเดือนก่อน

      Did you change the modification in the Makefile.in within the nam-1.0x folder. if not try as per the description given in the video documentation.

  • @user-gu4lz1xj4s
    @user-gu4lz1xj4s 10 หลายเดือนก่อน +1

    Excuse me sir, I want to ask why if i create "ns wireless", couldn't read file "wireless": no such file or directory sir. Please help me sir

  • @captainblaze8909
    @captainblaze8909 ปีที่แล้ว +2

    Sir when i type ns it gives % symbol, but when i type nam , nam console doesn't show up instead nam: gets printed in the terminal

    • @suyashmaurya7404
      @suyashmaurya7404 ปีที่แล้ว

      Bro have you solve this problem ?...I m also facing same issue

    • @captainblaze8909
      @captainblaze8909 ปีที่แล้ว

      @@suyashmaurya7404 ya so the thing is whenever you run a ns file the nam file wont be run automatically, so you should run nam file seperately thats all .

    • @ferdaousabdessemed5104
      @ferdaousabdessemed5104 ปีที่แล้ว

      @@suyashmaurya7404 i am facing the same problem did u solve it ?

    • @space_ace7710
      @space_ace7710 ปีที่แล้ว

      @@captainblaze8909 how ? Help please

    • @ankeshgupta5391
      @ankeshgupta5391 11 หลายเดือนก่อน +1

      ​@@captainblaze8909and how do we do that?

  • @trinhdothiha3362
    @trinhdothiha3362 ปีที่แล้ว +1

    sir after executing that "keyserver" command, I am getting error "gpg: keyserver receive failed: Network is unreachable"
    But I am also connected to internet 😞
    please help me.

  • @khanayaan6965
    @khanayaan6965 ปีที่แล้ว +2

    After typing ns command it is showing %
    And after typing nam it is showing nam:

    • @rajubailappa282
      @rajubailappa282 ปีที่แล้ว +1

      same here

    • @zulaikhazubir6023
      @zulaikhazubir6023 11 หลายเดือนก่อน +1

      yes me as well, idk how to fix it, already try multiple solution based on your video reference. How to fix it sir?

    • @tspradeepkumar
      @tspradeepkumar  11 หลายเดือนก่อน

      What error ? No metnioning of the error. if you get a % while running news command, it installed successfully and if a animation window pop out, nam also installed successfully

    • @zulaikhazubir6023
      @zulaikhazubir6023 11 หลายเดือนก่อน

      sorry, actually after i issuing the nam command the terminal show nam: but then the nam windows dont pop up. hpw to fix it?@@tspradeepkumar

  • @SantoshKumar-lz2ti
    @SantoshKumar-lz2ti ปีที่แล้ว +2

    unable to install gcc and g++
    I an getting an error

  • @architvashist
    @architvashist ปีที่แล้ว +4

    really great video sir

  • @ankeshgupta5391
    @ankeshgupta5391 11 หลายเดือนก่อน +1

    To doing all procedures , when i command nam , it doesn't sho nam window , it writes nam:

    • @ankeshgupta5391
      @ankeshgupta5391 9 หลายเดือนก่อน

      @user-mb7it6rj5e I couldn't find a fix, but you can open nam from bin folder and there open the nam file by selecting directory.( a nam file will be created when you run ns command)

  • @zeeiftikhar5284
    @zeeiftikhar5284 2 ปีที่แล้ว +6

    Hello, sir. Thank you for such an amazing tutorial.
    Do you upload these machines (with these tools installed) on the cloud, so that we can get the VM directly? I'm getting a lot of errors while installing NS2 on 20.04 and 22.04. It is giving me a very tough time.

  • @Hariprasad-cr5if
    @Hariprasad-cr5if ปีที่แล้ว +1

    Hello Sir. While running the command to fix the GPG error I'm getting
    "gpg: keyserver failed: no data" error. How can I fix this?

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      04:03, i have handled the error. dont use the PUBLICKEY from the video, instead, you might have got the key, use that and try....

  • @keshavsharma4772
    @keshavsharma4772 ปีที่แล้ว +1

    it says "unable to open wireless.nam" after "running nam wireless s_mitf.nam" !!

  • @meryemhanine8448
    @meryemhanine8448 2 ปีที่แล้ว +2

    when i exucite nam it gives me nam: i follow all the instruction that you did with the same version of ns2 and the version of ubuntu can you gave me a solution

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว +1

      can you try this command
      sudo apt remove nam
      or
      sudo apt autoremove nam
      and then try... It should work.

  • @oz8232
    @oz8232 4 หลายเดือนก่อน

    why does nam only sends nam: with no window popping up?

  • @SWXSTXK
    @SWXSTXK ปีที่แล้ว

    At 4:24 I have got the exact same key as yours. And after executing that "keyserver" command, I am getting error "gpg: keyserver receive failed: Network is unreachable"
    But I am also connected to internet 😞

  • @pratimaupadhyay5197
    @pratimaupadhyay5197 ปีที่แล้ว +1

    Sir sudo apt install build-essential autoconf automake libxmu-dev command run on my terminal and it's showing some error like unable to locate package build-essential, autoconf,automake, libxmu-dev
    Sir How to solve this please guide me

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      First you try with
      sudo apt update
      and then you can try
      sudo apt install build-essential autoconf automake libxmu-dev
      Dont use commas, use blank spaces.

  • @gunjantiwari4363
    @gunjantiwari4363 2 ปีที่แล้ว +4

    in 3:35 how to save the file?

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว +1

      What file to be saved?

    • @harshitarora7145
      @harshitarora7145 2 ปีที่แล้ว +1

      Ctrl + x and then press y and enter to save the file

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว +1

      Below the nano window, there are shortcuts given... Hence as Harshit said, CTL+X and press y and enter.

  • @hashtagcreative1776
    @hashtagcreative1776 11 หลายเดือนก่อน +1

    sir it says permission denied when i runs the install file with the command called "./install " please help!

    • @tspradeepkumar
      @tspradeepkumar  11 หลายเดือนก่อน

      Never do any application with a sudo command and use the home folder to store, install the applications... if you use folder like /opt, then it asks for permission to install...

  • @Art_by_Nazma
    @Art_by_Nazma ปีที่แล้ว +1

    i have done everything as it is said but at the last my ns is working but nam is not working and its says to install but the password is creating problem.

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว +1

      I have another video of nam and xgraph installation, please check.

  • @monikamalik5852
    @monikamalik5852 ปีที่แล้ว +1

    All my steps are followed but iam not getting nam window. what mat be the reason?

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      Did you modified the Makefile.in as per the format given in the video
      @CC@ to be modified as gcc-4.8
      if gcc-4.8 is not there, nam wont work,

  • @firdous47
    @firdous47 2 หลายเดือนก่อน +1

    3:35 how to save

  • @TheStracky
    @TheStracky ปีที่แล้ว +1

    Thanks! ns works fine, nam works as well. But xgraph doesn't. "Command 'xgraph' not found" How do I fix this?

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      Check my channel for other video on Xgraph installation.

    • @TheStracky
      @TheStracky ปีที่แล้ว

      @@tspradeepkumar I did but I can't find one for ubuntu 22.04

  • @Ebrahimalkahali
    @Ebrahimalkahali 2 ปีที่แล้ว +3

    Hi sir I followed all the steps but the nam it not run and it show in terminal (nam:)? what can i do

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว +1

      Since NAM is old software and is not compatible with the recent ubuntu, try the following video to install.
      th-cam.com/video/G2pIxQOTdos/w-d-xo.html

    • @Ebrahimalkahali
      @Ebrahimalkahali 2 ปีที่แล้ว

      @@tspradeepkumar thank you sir , you mean i must install ubuntu 18.4 for run nam and ns2 right

    • @Ebrahimalkahali
      @Ebrahimalkahali 2 ปีที่แล้ว

      sir, show in terminal
      whereis nam
      nam: /usr/bin/nam /home/ebrahim/ns-allinone-2.35/bin/nam /usr/share/man/man1/nam.1.gz
      what can i do?

  • @purbapal2144
    @purbapal2144 ปีที่แล้ว +1

    Thank you sir.

  • @bobbydonalds
    @bobbydonalds 10 หลายเดือนก่อน +1

    Is it working with Apple M1 processor?

    • @tspradeepkumar
      @tspradeepkumar  10 หลายเดือนก่อน

      There is a separate procedure for M1 processor

  • @NaadanBuddies
    @NaadanBuddies ปีที่แล้ว

    Sir upto 16:31 everything done perfectly..but after all that when i gave the command 'ns' ..it's like ("command not found but can be installed with apt install ns2)
    And also 'nam' gave the same message

  • @faisallone4636
    @faisallone4636 2 ปีที่แล้ว +1

    thanks for your videos...my ns3.35 was working fine but since i updated to 22.04..its giving me pybindgen error while running ./test.py..can ypu please help...thanks a ton again.

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว

      Let me check

    • @faisallone4636
      @faisallone4636 2 ปีที่แล้ว

      @@tspradeepkumar thanks a lot ..respect your dedication.

    • @pranav-kale
      @pranav-kale 2 ปีที่แล้ว

      I am on ubuntu 22.04, and during the installation process I am unable to install g++ 4.8,
      E: Unable to locate package g++-4.8
      E: Couldn't find any package by glob 'g++-4.8'
      E: Couldn't find any package by regex 'g++-4.8'
      This is the error i am getting
      Edit: Thanks in advance!!

  • @Sifar.the.infinity
    @Sifar.the.infinity ปีที่แล้ว

    After sudo apt update
    I write " $ sudo apt install build...........libxmu-dev"
    But error:- unable to locate package build-essential
    What to do sir ?

  • @balu92
    @balu92 ปีที่แล้ว +6

    How do u save ?

  • @gunjantiwari4363
    @gunjantiwari4363 2 ปีที่แล้ว +1

    thank you sir

  • @priyanshumaurya8498
    @priyanshumaurya8498 ปีที่แล้ว +1

    the saviour

  • @ankithcr6179
    @ankithcr6179 ปีที่แล้ว +1

    nam is not working its showing that nam is not installed 🙄

  • @chonkyboy3597
    @chonkyboy3597 ปีที่แล้ว +1

    😢 My university still teach this relics, and i using mac m1

  • @dineshkumare1750
    @dineshkumare1750 4 หลายเดือนก่อน

    worked !

  • @abdventures
    @abdventures ปีที่แล้ว +1

    lot better explanation

  • @rigers4243
    @rigers4243 10 หลายเดือนก่อน +1

    How do you save at 3:34

    • @tspradeepkumar
      @tspradeepkumar  10 หลายเดือนก่อน

      Ctl+X and type "Yes' to save

  • @user-ne2dw6sz2u
    @user-ne2dw6sz2u 10 หลายเดือนก่อน +1

    This steps can work with 16.04 sir

  • @vivekkoul3278
    @vivekkoul3278 9 หลายเดือนก่อน +1

    Can we install it in Ubuntu 22.04.3?

    • @tspradeepkumar
      @tspradeepkumar  9 หลายเดือนก่อน

      Yes

    • @vivekkoul3278
      @vivekkoul3278 9 หลายเดือนก่อน

      How can we open xgraph pls tell?

  • @pratimaupadhyay5197
    @pratimaupadhyay5197 ปีที่แล้ว +1

    How to save file sir which command used for save file

    • @pratimaupadhyay5197
      @pratimaupadhyay5197 ปีที่แล้ว +1

      Sir please guide me

    • @rajput_yoddhaa
      @rajput_yoddhaa ปีที่แล้ว

      @@pratimaupadhyay5197 Press ctrl + "x", it will ask to choose "Y" or "N". Press "Y". Press "Enter" to exit the editor.

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      at the bottom side of the window, there are shortcut keys, you can use CTL + X and type "Yes" to save.... "No" to discard the changes...

  • @debayanchatterjee9444
    @debayanchatterjee9444 8 หลายเดือนก่อน

    How to use the xgraph

  • @veronicalodge1543
    @veronicalodge1543 ปีที่แล้ว +1

    Provide the link for ns2 zip file

  • @roehtgennsengatv4632
    @roehtgennsengatv4632 9 หลายเดือนก่อน +1

    how can i get your contact pls j

    • @tspradeepkumar
      @tspradeepkumar  9 หลายเดือนก่อน

      email me at pradeepkumarts with google email

  • @venkatasaikrishnayarabolu5765
    @venkatasaikrishnayarabolu5765 2 ปีที่แล้ว +1

    Hi sir ,may i have your contact , i need some course help or some technical info f you can spare some time .

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว

      my email is pradeepkumarts and affix gmail at the end.

    • @oumaymaberraadi2796
      @oumaymaberraadi2796 2 ปีที่แล้ว

      @@tspradeepkumar hi sir but commande nam wireless-mitf.nam gave me error :Cannot connect to existing nam instance. Starting a new one...
      nam: Unable to open the file "wireless-mitf.nam.nam"
      can you please give me solution

  • @esraaiso8099
    @esraaiso8099 ปีที่แล้ว +1

    please make a video in download tracegraph

  • @shruthithiyagarajan7510
    @shruthithiyagarajan7510 2 ปีที่แล้ว +1

    Is this the same process for Ubuntu 20 also

  • @gamingcircus2637
    @gamingcircus2637 ปีที่แล้ว

    Finally done🥵

  • @mufeezamanzoor8055
    @mufeezamanzoor8055 2 ปีที่แล้ว +1

    Hi Sir, please make a video on DSR simulation in NS2.

    • @tspradeepkumar
      @tspradeepkumar  2 ปีที่แล้ว

      Will try

    • @mufeezamanzoor8055
      @mufeezamanzoor8055 2 ปีที่แล้ว

      Sir please share me your email address, i have research on DSR but i have some issues

  • @FCMobileArena1
    @FCMobileArena1 ปีที่แล้ว +1

    I am in last step ..not finiding /home/pradeepkumar/.bashrc..can anyone help?

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว +1

      You need to find the .bashrc in your home folder

    • @rajausama2019
      @rajausama2019 9 หลายเดือนก่อน

      I face some problem kindly explain with detail....

  • @nurfadillahbustamin1212
    @nurfadillahbustamin1212 ปีที่แล้ว +1

    when I write "nam" what will appear is "nam:"
    what I have to do sir ? :(

    • @tspradeepkumar
      @tspradeepkumar  ปีที่แล้ว

      Check my other video for solving the nam issues
      th-cam.com/video/G2pIxQOTdos/w-d-xo.html