More and more about NS-2

Showing posts with label vmware. Show all posts
Showing posts with label vmware. Show all posts

Set the screen resolution of FEDORA 10 in VMWARE

Change by doing the following at FEDORA 10
system| preferences| hardware| screen resolution

and choose your desire resolution, then click "apply" and "ok".

Read More......

Installing NS-2 in Fedora 10

Download: ns-allinone-2.33

I have used VMWARE with Fedora 10 to install NS-2 for my convenience. The steps are as below:

Pre-installation NS-2:
1. Make sure FEDORA 10 is updated completely at the autoupdate.
2. Have the following install at TERMINAL. You must be the "root" to do this:
yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install libXmu-devel
yum install tk
yum install tcl
yum install make
yum install perl
yum install gnuplot


Installation for NS-2 in FEDORA 10:
1. Unzipped NS-2.33 file:
tar -xvzf ns-allinone-2.33.tar.gz
2. Go into ns-2.33 directory:
cd ns-allinone-2.33
3. Install ns-2.33
./install
4. Set environment:
gedit ~/.bashrc

Replace the following to your .bashrc file, double check your own installation path and version. Set the environment at "cd /home/username" as a user and not the "root":

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions

# LD_LIBRARY_PATH
OTCL_LIB=/home/ellysoo/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/ellysoo/ns-allinone-2.33/lib
X11_LIB=/ellysoo/X11R6/lib
USR_LOCAL_LIB=/home/ellysoo/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB


# TCL_LIBRARY
TCL_LIB=/home/ellysoo/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/ellysoo/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/ellysoo/ns-allinone-2.33/bin:/home/ellysoo/ns-allinone-2.33/tcl8.4.18/unix:/home/ellysoo/ns-allinone-2.33/tk8.4.18/unix
NS=/home/ellysoo/ns-allinone-2.33/ns-2.33/
NAM=/home/ellysoo/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

5. If your environment is set properly, you should be able to run the command "ns" and get the result "%".

6. Validate your ns as followed:
./validate

Read More......

VMX file to allow VMWARE to detect USB driver

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"

Read More......