Installing NS2 in Ubuntu 22.04 | Complete Instructions

Поділитися
Вставка
  • Опубліковано 12 вер 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

  • @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.

  • @coldcoke9254
    @coldcoke9254 3 дні тому +1

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

  • @ironmanabhi2233
    @ironmanabhi2233 Рік тому +4

    really helpful even now thank you very much

  • @pavaramanupriya4457
    @pavaramanupriya4457 Рік тому +3

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

  • @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

  • @gamingcircus2637
    @gamingcircus2637 Рік тому +5

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

  • @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.

  • @premaggarwal7963
    @premaggarwal7963 Рік тому +2

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

  • @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.

  • @architvashist
    @architvashist Рік тому +4

    really great video sir

  • @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

  • @vivekkoul3278
    @vivekkoul3278 9 місяців тому +2

    NAM console is not opening in end

  • @RoshanA-ee5cx
    @RoshanA-ee5cx 3 місяці тому +1

    Nam screen is showing just blak screen
    How to fix this

  • @gunjantiwari4363
    @gunjantiwari4363 2 роки тому +4

    in 3:35 how to save the file?

  • @ujawed786
    @ujawed786 Рік тому +3

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

  • @SantoshKumar-lz2ti
    @SantoshKumar-lz2ti Рік тому +2

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

  • @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

  • @etscreation9158
    @etscreation9158 4 місяці тому

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

  • @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?

  • @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.

  • @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

  • @purbapal2144
    @purbapal2144 Рік тому +1

    Thank you sir.

  • @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.

  • @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)

  • @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

  • @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
      ua-cam.com/video/G2pIxQOTdos/v-deo.html

  • @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....

  • @oz8232
    @oz8232 4 місяці тому

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

  • @hashtagcreative1776
    @hashtagcreative1776 Рік тому +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...

  • @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.

  • @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 😞

  • @firdous47
    @firdous47 3 місяці тому +1

    3:35 how to save

  • @priyanshumaurya8498
    @priyanshumaurya8498 Рік тому +1

    the saviour

  • @keshavsharma4772
    @keshavsharma4772 Рік тому +1

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

  • @gunjantiwari4363
    @gunjantiwari4363 2 роки тому +1

    thank you sir

  • @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

  • @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,

  • @balu92
    @balu92 Рік тому +6

    How do u save ?

  • @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.

  • @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

  • @abdventures
    @abdventures Рік тому +1

    lot better explanation

  • @chonkyboy3597
    @chonkyboy3597 Рік тому +1

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

  • @bobbydonalds
    @bobbydonalds 10 місяців тому +1

    Is it working with Apple M1 processor?

    • @tspradeepkumar
      @tspradeepkumar  10 місяців тому

      There is a separate procedure for M1 processor

  • @ankithcr6179
    @ankithcr6179 Рік тому +1

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

  • @rigers4243
    @rigers4243 10 місяців тому +1

    How do you save at 3:34

  • @veronicalodge1543
    @veronicalodge1543 Рік тому +1

    Provide the link for ns2 zip file

  • @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.
      ua-cam.com/video/G2pIxQOTdos/v-deo.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?

  • @Dayanadoss
    @Dayanadoss 10 місяців тому +1

    This steps can work with 16.04 sir

  • @dineshkumare1750
    @dineshkumare1750 4 місяці тому

    worked !

  • @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!!

  • @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...

  • @esraaiso8099
    @esraaiso8099 Рік тому +1

    please make a video in download tracegraph

  • @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

  • @vivekkoul3278
    @vivekkoul3278 9 місяців тому +1

    Can we install it in Ubuntu 22.04.3?

  • @debayanchatterjee9444
    @debayanchatterjee9444 8 місяців тому

    How to use the xgraph

  • @roehtgennsengatv4632
    @roehtgennsengatv4632 9 місяців тому +1

    how can i get your contact pls j

    • @tspradeepkumar
      @tspradeepkumar  9 місяців тому

      email me at pradeepkumarts with google email

  • @mufeezamanzoor8055
    @mufeezamanzoor8055 2 роки тому +1

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

  • @gamingcircus2637
    @gamingcircus2637 Рік тому

    Finally done🥵

  • @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

  • @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 ?

  • @shruthithiyagarajan7510
    @shruthithiyagarajan7510 2 роки тому +1

    Is this the same process for Ubuntu 20 also

  • @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....

  • @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.