NS2 Installation Procedure on Windows 10 and 11

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 78

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

    I followed the instructions and working properly in Win 11 also. thank you very much sir

  • @chiomachukwuma2859
    @chiomachukwuma2859 Год назад +6

    (gedit:3446): Gtk-WARNING **: 16:23:29.036: cannot open display: 0:0
    I download Ubuntu, Xming and followed all the steps.
    Got to step 7 and i am not able to open gedit, please can you help?

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

    when i run "ns filename.tcl" notthing happle except "nam:" What is that? How to fix it?

  • @ThejaswaniMULLAGURI
    @ThejaswaniMULLAGURI 11 месяцев назад +2

    Sir how ns2 folder to be created

  • @NabilGhanem-wb7gt
    @NabilGhanem-wb7gt Год назад +1

    I followed your method to the letter and I had no problem but at the end of the installation I could not find the NS2 directory.

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

      Hi, actually there is no need for the NS2 directory. But, if you want to access it, open the file explorer and you can find a penguin (linux) symbol at the very bottom in the left side pane where you see your drives (C, D, etc..).

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

      @@StarterTutorials me the same problem

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

    sir i am unable to change the directory . can you solve my problem

  • @statuslarger752
    @statuslarger752 19 дней назад

    sir , inn my display only show it nam: not open gui of animator . i use window 10

    • @StarterTutorials
      @StarterTutorials  19 дней назад

      Please try installing Ubuntu as a VM using VirtualBox and trying executing the program in Ubuntu. See the video on how to install NS2 on Ubuntu.

  • @lawalyusuf132
    @lawalyusuf132 13 дней назад

    I need tutorial on installation of NS-3 on windows 11

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

    thankss sir, can you make tutorial for installing ns2.35 with OLSR for wsl thankss

  • @ryeonnaderi6731
    @ryeonnaderi6731 2 месяца назад

    I followed all the steps, but when I run the .tcl file. I just get the nam: and nothing else, and xming server is running, because I can edit the file with gedit

    • @StarterTutorials
      @StarterTutorials  2 месяца назад

      If you are using Windows 11, try installing Ubuntu as a Virtual Machine and execute NS2 scripts.

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

    Sir please reply i m getting an error bash xgraph command not found

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

      I have another video on xgraph. Check out that video in my channel.

  • @MalakAlkhalaileh
    @MalakAlkhalaileh 20 дней назад

    Ubuntu doesn’t work in step 5 😢 why 😢

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

    After installing all the listed items (gedit, nam), it is asking to install again once I close the ubuntu window

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

      It shouldn't happen like that. I can't tell you what to do unless I see your machine.

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

    Sir I have went cd command but it is showing too many arguments. So what I have do

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

      Can you post the exact command that you are using?

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

    My os is win 10 and I did every thing but no network animation window is opening

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

      If you followed every step in the tutorial and still not able to see NAM, you can try using installing NS2 in Ubuntu OS.

  • @CodingBRO
    @CodingBRO Месяц назад

    sir mine is Mac m1 how to install in this ?

    • @StarterTutorials
      @StarterTutorials  Месяц назад +1

      You can install VirtualBox software (free) and in that install Ubuntu as a VM and follow the steps for Ubuntu.

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

    It worked for me on my Win10 PC but on my friend's Win11 PC, it showed the error "cannot open display: 0:0". Is there an alternate command line that can be used to deal with this issue??

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

      I think something is wrong with Win 11. I can't exactly say what it is. But, you can use VirtualBox and create a Win 10 or Ubuntu VM and follow the installation steps.

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

      @@StarterTutorials Will try that. Thank you

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

    Sir i followed the all the steps but after the command ns ex1.tcl nam is not opened. what to do for this sir

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

    sir i followed your steps. but still i got the following error
    (gedit:367): Gtk-WARNING **: 16:20:39.409: cannot open display: 0:0
    can you help me sir

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

      Hi, just install VirtualBox on Windows 11 and add Ubuntu as a VM and follow the process to install NS2 on Ubuntu. It is very easy.

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

    where do you get the ns2 folder at 11:49?

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

      You have to create that folder yourself. In the folder you have to create the ns2 file or the script file. The code is available provided in the description.

    • @abubakarabatcha5528
      @abubakarabatcha5528 Месяц назад

      @@StarterTutorials You have to teach us how to create it

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

    Sir xgraph command not found error i m getting sir

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

    i have problem in NS2 folder, how to download

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

    sir , i am facing following problem
    /Desktop/ns2$ export DISPLAY=0:0
    /Desktop/ns2$ gedit ex1.tcl
    Unable to init server: Could not connect: Connection refused
    (gedit:86): Gtk-WARNING **: 22:45:10.584: cannot open display: 0:0
    mine is window 11.. is there anything more i have to do to open the editor

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

      Did you start the Xming server?

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

      @@StarterTutorials yes sir... I had kept it open too. Checked from hidden icon just like as you mentioned

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

      @@komalasoares9876 Hmm. I don't know what is wrong. Can you download VirtualBox and create a Ubuntu VM? You can then follow the process for installing NS2 on Ubuntu. You have to give just three commands.

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

    ** (gedit:10259): WARNING **: 19:21:33.219: Set document metadata failed: Setting attribute metadata::gedit-position not supported getting this error and also graph stimulation is not coming

  • @kiranleghari5577
    @kiranleghari5577 11 месяцев назад

    Assalam-o-alaikum sir

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

    Thanks Man👍

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

    Sir, can you please assist me in a project related to NS2.

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

      If this is a research oriented project, I can't help.

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

    PLEASE HELP ME I WANT TO PROGRAM DDOS IN SDN

  • @onepiece-xf2fv
    @onepiece-xf2fv Год назад

    I'm not getting any animation file after running ns exc.tcl. it's showing me number of packets dropped but no animation window

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

      Check if you have nam command in the script file (code). If it is present then nam may not be configured properly on your system.

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

      @@StarterTutorials kassim@DESKTOP-9R5BC6P:/mnt/c/Users/Kass/Desktop/NS2$ ns p1.tcl
      CBR packet size = 1000
      CBR interval = 0.0080000000000000002
      kassim@DESKTOP-9R5BC6P:/mnt/c/Users/Kass/Desktop/NS2$ nam:
      That's what I have got after running ns p1.tcl. More than two days now I am finding a solution. Plz help me.

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

      @@kassimdiarra8216 What is the code inside p1.tcl? Can you share the code?

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

      @@StarterTutorials
      ode I use:
      ---------------------
      # Create a simulator object
      set ns [new Simulator]

      # Define different colors
      # for data flows (for NAM)
      $ns color 1 Blue
      $ns color 2 Red

      # Open the NAM trace file
      set nf [open out.nam w]
      $ns namtrace-all $nf

      # Define a 'finish' procedure
      proc finish {} {
      global ns nf
      $ns flush-trace

      # Close the NAM trace file
      close $nf

      # Execute NAM on the trace file
      exec nam out.nam &
      exit 0
      }

      # Create four nodes
      set n0 [$ns node]
      set n1 [$ns node]
      set n2 [$ns node]
      set n3 [$ns node]

      # Create links between the nodes
      $ns duplex-link $n0 $n2 2Mb 10ms DropTail
      $ns duplex-link $n1 $n2 2Mb 10ms DropTail
      $ns duplex-link $n2 $n3 1.7Mb 20ms DropTail

      # Set Queue Size of link (n2-n3) to 10
      $ns queue-limit $n2 $n3 10

      # Give node position (for NAM)
      $ns duplex-link-op $n0 $n2 orient right-down
      $ns duplex-link-op $n1 $n2 orient right-up
      $ns duplex-link-op $n2 $n3 orient right

      # Monitor the queue for link (n2-n3). (for NAM)
      $ns duplex-link-op $n2 $n3 queuePos 0.5


      # Setup a TCP connection
      set tcp [new Agent/TCP]
      $tcp set class_ 2
      $ns attach-agent $n0 $tcp

      set sink [new Agent/TCPSink]
      $ns attach-agent $n3 $sink
      $ns connect $tcp $sink
      $tcp set fid_ 1

      # Setup a FTP over TCP connection
      set ftp [new Application/FTP]
      $ftp attach-agent $tcp
      $ftp set type_ FTP


      # Setup a UDP connection
      set udp [new Agent/UDP]
      $ns attach-agent $n1 $udp
      set null [new Agent/Null]

      $ns attach-agent $n3 $null
      $ns connect $udp $null
      $udp set fid_ 2

      # Setup a CBR over UDP connection
      set cbr [new Application/Traffic/CBR]
      $cbr attach-agent $udp
      $cbr set type_ CBR
      $cbr set packet_size_ 1000
      $cbr set rate_ 1mb
      $cbr set random_ false


      # Schedule events for the CBR and FTP agents
      $ns at 0.1 "$cbr start"
      $ns at 1.0 "$ftp start"
      $ns at 4.0 "$ftp stop"
      $ns at 4.5 "$cbr stop"

      # Detach tcp and sink agents
      # (not really necessary)
      $ns at 4.5 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink"

      # Call the finish procedure after
      # 5 seconds of simulation time
      $ns at 5.0 "finish"

      # Print CBR packet size and interval
      puts "CBR packet size = [$cbr set packet_size_]"
      puts "CBR interval = [$cbr set interval_]"

      # Run the simulation
      $ns run

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

      @@kassimdiarra8216 Ok. The code is correct. I assume that you are not getting the nam output window. Right?
      What is your OS? If it is Windows, what version of Windows?

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

    sir i want programs of ns2 pdf

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

    Error gedit cannot open display

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

      gedit? are you using Windows or Ubuntu? If it is Ubuntu, is it GUI version or a Server version?

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

    sir i'am not getting nam animation

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

      it just says nam: and stops

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

      @@sgdhanushkumar1393 What is your OS? Windows 10 or Windows 11?

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

      @@StarterTutorials i got this problem too. My OS is Windows 10

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

      please give the solution

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

      @@sitiagustini728 For Windows 10 the steps in the video works perfectly. Just check whether "Xming" is running or not before running nam. Also don't forget to set the "DISPLAY" variable as shown in the video.

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

    ns2 file not find ☠️💀

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

      Hi, you have to go to the location where ns2 is. If tis not there, create a ns2 folder.

  • @kiranleghari5577
    @kiranleghari5577 11 месяцев назад +2

    Assalam-o-alaikum sir