Installing NS2 in Ubuntu 22.04 | Complete Instructions

Поделиться
HTML-код
  • Опубликовано: 17 сен 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 8 дней назад +1

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

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

  • @ironmanabhi2233
    @ironmanabhi2233 Год назад +4

    really helpful even now thank you very much

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

  • @pavaramanupriya4457
    @pavaramanupriya4457 Год назад +3

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

  • @architvashist
    @architvashist Год назад +4

    really great video sir

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

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

  • @purbapal2144
    @purbapal2144 Год назад +1

    Thank you 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

  • @priyanshumaurya8498
    @priyanshumaurya8498 Год назад +1

    the saviour

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

  • @gunjantiwari4363
    @gunjantiwari4363 2 года назад +1

    thank you sir

  • @ujawed786
    @ujawed786 Год назад +3

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

  • @vivekkoul3278
    @vivekkoul3278 9 месяцев назад +2

    NAM console is not opening in end

  • @abdventures
    @abdventures Год назад +1

    lot better explanation

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

  • @RoshanA-ee5cx
    @RoshanA-ee5cx 3 месяца назад +1

    Nam screen is showing just blak screen
    How to fix this

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

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

  • @firdous47
    @firdous47 3 месяца назад +1

    3:35 how to save

  • @SantoshKumar-lz2ti
    @SantoshKumar-lz2ti Год назад +2

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

  • @etscreation9158
    @etscreation9158 4 месяца назад

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

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

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

  • @chonkyboy3597
    @chonkyboy3597 Год назад +1

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

  • @dineshkumare1750
    @dineshkumare1750 5 месяцев назад

    worked !

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

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

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

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

  • @gamingcircus2637
    @gamingcircus2637 Год назад

    Finally done🥵

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

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

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

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

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

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

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

  • @esraaiso8099
    @esraaiso8099 Год назад +1

    please make a video in download tracegraph

  • @keshavsharma4772
    @keshavsharma4772 Год назад +1

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

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

  • @ankithcr6179
    @ankithcr6179 Год назад +1

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

  • @bobbydonalds
    @bobbydonalds 10 месяцев назад +1

    Is it working with Apple M1 processor?

    • @tspradeepkumar
      @tspradeepkumar  10 месяцев назад

      There is a separate procedure for M1 processor

  • @rigers4243
    @rigers4243 10 месяцев назад +1

    How do you save at 3:34

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

  • @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.
      ruclips.net/video/G2pIxQOTdos/видео.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?

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

  • @Dayanadoss
    @Dayanadoss 10 месяцев назад +1

    This steps can work with 16.04 sir

  • @veronicalodge1543
    @veronicalodge1543 Год назад +1

    Provide the link for ns2 zip file

  • @debayanchatterjee9444
    @debayanchatterjee9444 8 месяцев назад

    How to use the xgraph

  • @vivekkoul3278
    @vivekkoul3278 9 месяцев назад +1

    Can we install it in Ubuntu 22.04.3?

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

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

  • @roehtgennsengatv4632
    @roehtgennsengatv4632 9 месяцев назад +1

    how can i get your contact pls j

    • @tspradeepkumar
      @tspradeepkumar  9 месяцев назад

      email me at pradeepkumarts with google email

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

  • @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
      ruclips.net/video/G2pIxQOTdos/видео.html