Run NSG2 in FEDORA 10
1. Yum install java-1.6.0-openjdk-plugin
2. At the directory of NSG2, type the command: java -jar NSG2.1.jar
More and more about NS-2
1. Yum install java-1.6.0-openjdk-plugin
2. At the directory of NSG2, type the command: java -jar NSG2.1.jar
Posted by elly | Permalink | | 0 comments
Open your vmware vmx file with notepad and replace all as below and make sure the filename is same as your filename inside the same folder:
Download: VMX File
#!/usr/bin/vmware
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "256"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "fedora-10-i386.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
floppy0.startConnected = "FALSE"
floppy0.fileName = "/dev/fd0"
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.wakeOnPcktRcv = "FALSE"
roamingVM.exitBehavior = "go"
displayName = "Fedora10"
guestOS = "other26xlinux"
nvram = "fedora-10-i386.nvram"
virtualHW.productCompatibility = "esx"
ft.secondary0.enabled = "TRUE"
tools.upgrade.policy = "useGlobal"
# PowerOn/Off options
gui.powerOnAtStartup = "FALSE"
gui.fullScreenAtPowerOn = "TRUE"
gui.exitAtPowerOff = "TRUE"
# USB settings
# This config activates USB
usb.present = "TRUE"
usb.generic.autoconnect = "TRUE"
# Optional second serial port, physical COM2 is not available
serial1.present = "FALSE"
# First parallell port, physical LPT1 is available
parallel0.present = "TRUE"
parallel0.fileName = "Auto Detect"
parallel0.autodetect = "TRUE"
parallel0.bidirectional = "TRUE"
# Sound settings
sound.present = "TRUE"
sound.fileName = "-1"
sound.autodetect = "TRUE"
# Other default settings
#svga.autodetect = "TRUE"
svga.maxWidth=1280
svga.maxHeight=1024
mks.keyboardFilter = "allow"
snapshot.action = "autoCommit"
extendedConfigFile = "fedora-10-i386.vmxf"
ethernet0.addressType = "generated"
uuid.location = "56 4d b4 d1 71 51 96 7f-92 5a e6 00 a7 63 44 b1"
uuid.bios = "56 4d b4 d1 71 51 96 7f-92 5a e6 00 a7 63 44 b1"
scsi0:0.redo = ""
vmotion.checkpointFBSize = "16777216"
ethernet0.generatedAddress = "00:0c:29:63:44:b1"
ethernet0.generatedAddressOffset = "0"
tools.remindInstall = "FALSE"
ide1:0.autodetect = "TRUE"
floppy0.autodetect = "TRUE"
checkpoint.vmState = "fedora-10-i386.vmss"
tools.syncTime = "FALSE"
isolation.tools.hgfs.disable = "FALSE"
usb.autoConnect.device0 = ""
parallel0.startConnected = "FALSE"
Posted by elly | Permalink | | 0 comments
As referred to: http://ns-2.blogspot.com
I have followed the steps below for Tracegraph installation:
Download Tracegraph for linux: Tracegraph202
Download Matlab for tracegraph: Matlab
Download my .bashrc file: .bashrc
Installation instructions on Linux:
1)Download tracegraph and mglinstaller from the webpage
Check Trace graph download page: http://www.tracegraph.com/download.html
Choose Linux version and download mglinstaller.
2) At the directory where you save the tracegraph and mglinstaller.
Command: tar -xvzf tracegraph202.linux.tar.gz
3) Command: gunzip mglinstaller.gz
4) Command: sh mglinstaller
5) When asking for location folder, set /home/user1/mgl as the location
6) set the environment path variable by
Command: gedit ~/.bashrc
In .bashrc file, add in the following:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user1/mgl/bin/glnx86
7) Check the environment,
Command: printenv LD_LIBRARY_PATH
8) Go to directory /home/user1/Tracegraph202 and run trgraph.
Command: ./trgraph
Errors encounter when installing:
1) ./trgraph: error while loading shared libraries: libmwcl.so: cannot open shared object file: No such file or directory
Solution: LD_LIBRARY_PATH is not defined properly. Check with printenv and set the environment again.
2) ./trgraph: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory
solution: yum install libXp.so.6
Installation instructions on Windows:
1)Download tracegraph and mglinstaller from the page make sure it is windows version http://www.tracegraph.com/download.html
2)unzip tracegraph202.zip to say, D:\
3)execute mglinstaller.exe, when it asks for directory name, enter D:\tracegraph202
4) add D:\tracegraph202\bin\win32 to your environment PATH
5)how to add to environment PATH??
right click on Mycomputer and select properties
From properties select Advanced tab
Select environment path variables
Select PATH and add your path to it
Thats it tracegraph is now ready!!
This is the procedure i followed while installing tracegraph on both windows and linux (if you dont have matlab installed on your machine.)
Posted by elly | Permalink | | 7 comments
Labels: ns-2 | Tracegraph
Download: Patch
Error when executing nam in Fedora 10 terminal:
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
After installing Fedora 10 with NS-2 two months back, the solution seems to have been faded from my mind. Totally cannot recall. Now my friend is having this error, yet I have forgotten how to solve it. Should have record all the solution here for reference last time but I have started this blog kinda late. Hope will soon find the solution and definitely will update in here this time!
Solution:
PS: For my case, I have to be the "root" so that ./install will compile my ns-2 completely.
OR
Posted by elly | Permalink | | 2 comments
Download: NSG2.1
1. Creating wired and wireless nodes
2. Creating connection between nodes
3. Creating links (Duplex-Link and Simplex-Link)
4. Creating agents (TCP and UDP)
5. Creating applications (CBR and FTP)
6. Node movement
The link of the site is: http://sites.google.com/site/pengjungwu/nsgPosted by elly | Permalink | | 3 comments