Posts

Showing posts from August, 2011

Fedora 12 Installation

Image
This post will show you the installation of Fedora along with Windows 7. This Post is mainly for Beginners of Linux those who entered the college just now who don’t have prior working knowledge on Linux Here we go…. I have taken DVD Version of Fedora 12 (32 Bit OS)Step 1: Create a Partition on windows to give space for Fedora, Just 20GB space is enough.. You can store all your files under windows and use it in linux whenever you need. So no extra space needed for Linux. (see the image below) Step 2:  Insert the DVD and boot from the DVD and select the first option (as shown below) “Install or Upgrade an existing System”Once selected, the system asks you to check the correctness of the media (DVD ROM). if you have doubt with your DVD, please click OK else SKIP it. (see below) Once done, start proceeding with the installation as given in the following images Step 4: Select the language (as given below, If you have doubt, leave with the default and click next) Step 5: Select the Keyb…

Linux for NS2 (Network Simulator 2)

At many places, I happen to see researchers and students wanted to use Windows for NS2 rather than Linux. The reason may be,
Linux is toughIt occupies more space and more memory in my ComputerLinux uses lot of commands and i am not aware of itTough to handle dual boot OS (windows and Linux)always wanted to be in the cakewalk. (never try a new thing) etcBut here are some basic tips for using NS2 under a Linux Machine.
It is enough to know some basic Linux commands to work with NS2 (hardly not more than 20 commands)One should have a basic knowledge of how tree structure in Linux/Unix look likeFinally, where to set the PATH information in LinuxWith all the above three, one can confidentally work on Linux. As for as windows is concerned, upto NS2.27 version is tested under windows and recent versions there is no hope (however it will work fine, but "Use at your Own Risk")
Please see this post to install Fedora 12 in your Computer
Now we will see some basic Linux commands that are …

Tracegraph installation in Windows 7

How to install tracegraph in windows . here are the stepsStep 1: Unzip the tracegraph202.tar file to C: or D:  (in my case I extracted to D:/tracegraph202)Step 2: copy the path (DLL files) to the environmental variables (in my case the path is D:\tracegraph202\bin\win32)Step 3: that’s it run the trgraph.exe file which is available under the tracegraph202/ folder.

NS2.34 installation in Ubuntu 11.04

Already this blog posts various titles on installing NS2 in Linux distros. Here is the step for installing in Ubuntu 11.04.1. Version taken is NS2.342. Since ubuntu 11.04 uses GCC-4.5.2, there should be some minor tweeks.3. Two files should be edited ~ns-2.34/tools/ranvar.cc and ~ns-2.34/mobile/nakagami.cc  as given in the following posthttp://pradeepkumar.org/2011/06/installing-ns-2-34-in-fedora-14.html4. Install the following things in Ubuntusudo apt-get install build-essential autoconf automake libxmu-devsudo apt-get install gcc-4.45. open the file ~ns-2.34/otcl-1.13/configure and change the line number 6304 to SHLIB_LD="gcc -shared" instead of SHLIB_LD="ld -shared"6. open the file ~ns-2.34/otcl-1.13/Makefile.in and change the line CC    @CC@ to CC    gcc-4.47. Set the path in /home/<name>/ .bashrc as in http://pradeepkumar.org/2009/11/installing-ns2-under-ubuntu-910.html8. After setting the path, sometimes overflow error may come when running ns and nam,

Installing Omnet++ in Windows 7

Image
Installing Omnet++ in windows is a very easy taskStep 1:Click the following link and download Omnet++ along with MinGW (Minimalist GNU for Windows – this gives the look and feel of Linux inside windows, it is similar like cygwin)http://www.omnetpp.org/omnetpp/doc_download/2218-omnet-41-win32-source–ide–mingw-zipStep 2:Unzip the file to C:/(Now your folder looks like this C:\omnetpp-4.1)Step 3:Open Command prompt and go to C:\omnetpp-4.1 (The command is cd \ and cd omnetpp-4.1)Now type the command mingwenv.cmd and press enter (Please type the commands as given in the following pic)Step 4 :A new window will be opening which looks like a Linux Shell (as shown in the following pic)Step 5 :Type the command configure (this command will check all the modules and set the path)Type the command make (This will run for at least 10 minutes, but may vary machine to machine)Once everything is done, you will get a successful message and type omnetpp to open the IDE(Please Install JDK before all thes…

Manual tracing–tracefile

Assume you created a tcl file for a wireless simulation and it generates a trace file (usually .tr as extension). If any tracing softwares are not available, how to interpret manually, here is the step
ACTION: [s|r|D]: s -- sent, r -- received, D – dropped WHEN: the time when the action happened WHERE: the node where the action happened LAYER: AGT -- application, RTR -- routing, LL -- link layer (ARP is done here) IFQ -- outgoing packet queue (between link and mac layer) MAC -- mac, PHY – physical flags: SEQNO: the sequence number of the packet TYPE: the packet type cbr -- CBR data stream packet DSR -- DSR routing packet (control packet generated by routing) RTS -- RTS packet generated by MAC 802.11 ARP -- link layer ARP packet SIZE: the size of packet at current layer, when packet goes down, size increases, goes up size decreases[a b c d]: a -- the packet duration in mac layer header b -- the mac address of destination c -- the mac address of source d -- the mac ty…

xgraph Error (dialog.c)

If you are installing ns2 allinone package in fedora or ubuntu or any other linux, all the packages will be installed successfully. Occasionally the recent distributions of Linux flavors failed to install xgraph.Problem:The possible error you may get is [dialog.o] error,Solution:Open the file dialog.c which is available under the folder xgraph-12.1/ (this is in my case) Find out the function getline() (will be at two places), usually line number 780 and 891 or 889, replace getline() function to newgetline() (at the both the places) save the file and at the prompt give ./configure give the command make If there are no errors, xgraph will work now..

Installing Omnet++ in Ubuntu 9.04

Unzip the omnetpp-xxx.zip file in to any folder possibly (/home/pradeepkumar/) Open the shell prompt and then go to the corresponding folder by issuing the command cd /home/pradeepkumar/omnetpp-4.0 Run the command (./configure) If you get any errors, please download the concerned files and again go to step 3. You may get errors like this and execute the command (sudo apt-get install bison flex byacc swig build-essential tcl8.5 tk8.5 tcl8.5-dev tk8.5-dev) after installing all the packages, go to step 3 If path information is being asked, then set the path in the /home/pradeepkumar/.bashrc (export PATH=$PATH:/home/pradeepkumar/omnetpp-4.0/bin) Add the following line to your .profile or .bash_profile (provided you use bash): export TCL_LIBRARY=/usr/share/tcltk/tcl8.5 After that logout and login and then go to step 2 and then 3. Execute make command and thats it!!!! After installing this, for running the IDE, you need to install java run time environment.

Xgraph

Image
Xgraph is an X-Windows application that includes: interactive plotting and graphing animation and deritives portability and bug fixes So to plot the characteristics of NS2 parameters like throughput, end to end delay, packets information, etc can be plotted using xgraph
The successful installation of NS2 will install xgraph also along with it.
To run xgraph from a shell prompt: # xgraph filename.xginside TCL scripts, xgraph can be written like this
exec xgraph filename.xg -geometry 500×500
if there are more xgraph files then,
exec xgraph filename1.xg -geometry 500×500 &
exec xgraph filename2.xg -geometry 500×500 &
The ambersand is mandatory to popup all the graph windows, if & (ambersand) is not there, then only the last xgraph window will be popped up.Sample xgraph file and its contents
/*** The xgraph file shows the information about the overhead with size of the network,
Overhead is compared with four routing protocols like AODV, DSR, D…

Recompiling NS2 (Network Simulator 2)

Assumptions:I have installed my ns-allinone-2.34 under /home/pradeep/ns-allinone-2.34
Path is been set in the .bash_profile (which are located at /home/pradeep/) in fedora and .bashrc in ubuntuThere are two ways in which the NS2 can be recompiled1. You modify the existing algorithm (use the same header and the C++ source files)2. Adding new files (adding new header and C++ source files)In first method,Step 1: open the shell prompt and go to the ns-allinone-2.34/ns-2.34/ folder(there are 3 makefiles, Makefile.vc, Makefile, Makefile.in, for adding any new file should be done at the Makefile.in file)Step 2: Once the existing algorithm is changed (after modifying the existing header and the C++ source file), go to step 1Step 3: execute the command, make (the make command executes the instructions given in the Makefile.in) and press enter, If you have no errors in your modified code, then the compilation will be success, else you may get errors, which needs to be correctedStep 4: Test your …

NS2.34 installation in Fedora 14

Image
To install Network Simulator Version 2.34 in Fedora 14 has the following limitations.1. Fedora 14 comes with GCC version 3.5 which has major changes like it accept X() rather than X::X(), So ns also has to modify accordingly.2. You may get an error for GammaRandomVariable, so that has to be corrected in the following two files~ns-allinone-2.34/ns-2.34/mobile/nakagami.cc  and ~ns-allinone-2.34/ns-2.34/tools/ranvar.cc(Above pic: The file nakagami.cc has to be opened and there will a change in two line numbers 183 and 185 as given below)(The file ranvar.cc has to be opened and change in line number 219 as given below)Once the above steps done,Go to terminal and install NS2 (http://pradeepkumar.org/2008/11/installation-instructions-for-network.html)and refer the video for installing NS2. http://pradeepkumar.org/2011/02/installation-of-network-simulator-2-ns2video.html

Installing NS2 in Ubuntu 8.04 8.10 and 9.04

Step 1: Download NS2 from the following Website, I tried version ns-allinone-2.33.tar.gz. Step 2: Put the file under /home/pradeep/ (my user login is pradeep, you may try with your username) Step 3: go the folder in the shell prompt by issuing the following command cd /home/pradeep/Step 4: Since installation of NS2 simulator needs some autoconfiguration files which will need to be installed. To download those packages, just execute the following commands $ sudo apt-get install build-essential autoconf automake libxmu-devit will take some time to download and install. Step 5: Now execute the following steps so that NS2 will be installed tar zxvf ns-allinone-2.33.tar.gz 
cd ns-allinone-2.33./install After the above three steps, NS2 will give the path information which needs to be set in the PATH variable Step 6: Open the file .bashrc which is available under the folder /home/pradeep/ (if you try to install in root user /root/.bashrc). Use the following command to open the .bashrc file $…

Tracegraph installation in Fedora 12

Image
To Install Tracegraph in Fedora Linux (I used Fedora 12)Step download the Tracegraph software from this linkYou need to download two files, mglinstaller.gz and tracegraph202.tar.gzCopy the files under /home/pradeep/ (in my case it is /home/pradeep/) Untar the tracegraph202.tar.gz using the command tar zxvf tracegraph202.tar.gzA Folder tracegraph202/ will be created and go to the folder using the command cd tracegraph202 or cd /home/pradeep/tracegraph202copy the mglinstaller.gz file inside the tracegraph202/ folder now execute the command to unzip the mglinstaller.gz using the following command gzip -d mglinstaller.gzRun the mglinstaller by executing the command ./mglinstaller (see the . in the beginning)The above command will create a folder within the bin folder and set the following lines to the LD_LIBRARY_PATH variable export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/pradeep/tracegraph202/bin/glnx86The above path will be set to the LD_LIBRARY_PATH Variable in the following file .bashr…

Installation of NS2 in Fedora 12

Image
The ns2 version taken here is 2.34, if you downloaded any other version, please modify your version during installation1)Uncompress the ns2tar zxvf ns-allinone-2.34.tar.gz
or
gzip -d ns-allinone-2.34.tar.gz
tar xvf ns-allinone-2.34.tar2) cd /opt/ns-allinone-2.34 (since /opt is the folder which is unused, so i have selected that folder to install, however you can install that in any folder)3) ./install (execute the command)4) If the installation fails in the middle, then try to install the linux packages that are necessary to run NS2. (In any linux (ubuntu or fedora or redhat or suse), install the TCL/TK, Perl packages during the installation of linux…)5) Once the installation succeeded, then the path information will be provided by the NS2 6) Set the path in the /root/.bash_profile
(vi /root/.bash_profile)or
If you are a user home/pradeep/.bash_profile (for example, if your the username is pradeep, then execute this command vi /home/pradeep/.bash_profile)
7) set the PAT…