(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?
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..).
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
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??
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.
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.
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
@@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.
** (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
@@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.
# 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"
@@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?
@@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.
I followed the instructions and working properly in Win 11 also. thank you very much sir
Welcome.
(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?
when i run "ns filename.tcl" notthing happle except "nam:" What is that? How to fix it?
Sir how ns2 folder to be created
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.
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..).
@@StarterTutorials me the same problem
sir i am unable to change the directory . can you solve my problem
sir , inn my display only show it nam: not open gui of animator . i use window 10
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.
I need tutorial on installation of NS-3 on windows 11
thankss sir, can you make tutorial for installing ns2.35 with OLSR for wsl thankss
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
If you are using Windows 11, try installing Ubuntu as a Virtual Machine and execute NS2 scripts.
Sir please reply i m getting an error bash xgraph command not found
I have another video on xgraph. Check out that video in my channel.
Ubuntu doesn’t work in step 5 😢 why 😢
After installing all the listed items (gedit, nam), it is asking to install again once I close the ubuntu window
It shouldn't happen like that. I can't tell you what to do unless I see your machine.
Sir I have went cd command but it is showing too many arguments. So what I have do
Can you post the exact command that you are using?
My os is win 10 and I did every thing but no network animation window is opening
If you followed every step in the tutorial and still not able to see NAM, you can try using installing NS2 in Ubuntu OS.
sir mine is Mac m1 how to install in this ?
You can install VirtualBox software (free) and in that install Ubuntu as a VM and follow the steps for Ubuntu.
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??
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.
@@StarterTutorials Will try that. Thank you
Sir i followed the all the steps but after the command ns ex1.tcl nam is not opened. what to do for this sir
What is your OS?
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
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.
where do you get the ns2 folder at 11:49?
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.
@@StarterTutorials You have to teach us how to create it
Sir xgraph command not found error i m getting sir
i have problem in NS2 folder, how to download
Can you explain more about the problem?
@@StarterTutorials IN step 6
You can create ns2 folder if it is not present.@@etidalaltom
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
Did you start the Xming server?
@@StarterTutorials yes sir... I had kept it open too. Checked from hidden icon just like as you mentioned
@@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.
** (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
Hi, you can ignore that warning.
Assalam-o-alaikum sir
Thanks Man👍
Sir, can you please assist me in a project related to NS2.
If this is a research oriented project, I can't help.
PLEASE HELP ME I WANT TO PROGRAM DDOS IN SDN
Sorry. I am not familiar with that.
I'm not getting any animation file after running ns exc.tcl. it's showing me number of packets dropped but no animation window
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.
@@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.
@@kassimdiarra8216 What is the code inside p1.tcl? Can you share the code?
@@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
@@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?
sir i want programs of ns2 pdf
What programs exactly?
Error gedit cannot open display
gedit? are you using Windows or Ubuntu? If it is Ubuntu, is it GUI version or a Server version?
sir i'am not getting nam animation
it just says nam: and stops
@@sgdhanushkumar1393 What is your OS? Windows 10 or Windows 11?
@@StarterTutorials i got this problem too. My OS is Windows 10
please give the solution
@@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.
ns2 file not find ☠️💀
Hi, you have to go to the location where ns2 is. If tis not there, create a ns2 folder.
Assalam-o-alaikum sir