Skip to main content

Posts

Showing posts with the label Fedora

Installing ns-2.35 in Fedora 21

This post will tell you how to install ns-2.35 in Fedora 21 64 bit OS..... Step 1: Install all the necessary packages $] sudo yum update $] sudo yum install tcl tk gcc-c++ libX11-devel libXt-devel libXmu-devel Step 2: unzip the software ns-xx.tar.gz $] tar zxvf ns-allinone-2.35.tar.gz $] cd ns-allinone-2.35/ Open the file $] gedit ns-2.35/linkstate/ls.h in line number 137 change erase to this->erase as shown above..... Save the file and give this command $] ./install This will install all the packages as you see in the video. This process may be take upto 5 minutes. Once installation is over now.... Setting the PATH The following line is pasted in the PATH variable as shown in the video $] gedit /home/pradeepkumar/.bash_profile :/home/pradeepkumar/ns-allinone-2.35/bin:/home/pradeepkumar/ns-allinone-2.35/tcl8.5.10/unix:/home/pradeepkumar/ns-allinone-2.35/tk8.5.10/unix Once the PATH is set, source the .bash_profile file as the new PATH will be reflected within the cur...

Installing Windows, Linux and Yosemite inside Mac

This post tells you how to install Windows and Linux within Macintosh Machine (Yosemite) Base OS: Yosemite Other OS: Windows 8.1, Fedora 21 (Linux Mint 17.1 also) Machine used: Mac Mini (Mid 2013) Installing Yosemite Step 1: Install Yosemite (If you have mavericks, download it from the Store and install it) Installing Windows 8.1  To Install Windows 8.1, get a 8GB Pen Drive and use Windows USB/DVD tool to make the USB bootable or you faster method by clicking this link. http://www.pradeepkumar.org/installing-windows-7-from-usb/ Open Boot Camp and select "Install Windows 7 or later" and also select "Download the support Softwares for Windows 7 or later", You need to provide a FAT partitioned Pen Drive (This wil be another pendrive other than the Windows 8 Boot Pen Drive, if you dont have any other pendrive, leave this step, after installing Windows you may come back and download the support softwares) and Click Next. Now Mac will ask for partitio...

Time Command in Linux

The  time  command is linux is very much useful if you want to know the time information while running a program or a process. The time command usage is as followsprompt $] time <commandname> Example prompt $] time ls The output will be real0m0.002s user0m0.004s sys0m0.000s If you want to see the detailed system parameters occupied during a program or process, then the command will be prompt$] TIMEFORMAT=”” time -v <commandname> See the screenshot given below Time Command in Linux The output of the above command is Desktop  Documents  Downloads  examples.desktop  MusicPictures  Public  Templates  Videos Command being timed: “ls” User time (seconds): 0.00 System time (seconds): 0.00 Percent of CPU this job got: 400% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum ...

Installing NS-2.35 in Fedora 20 (64 bit)

Installing ns2 under Fedora 20 is same as Fedora 19. However, there are some slight changes in the installation pattern. Refer to this post for downloading the ns2.35 software and pre installation steps: http://www.nsnam.com/2013/09/installing-network-simulator-2-ns-2-35-in-fedora-19.html Steps for Fedora 20 During the software customization in Fedora 20, I have selected all the softwares in GNOME Desktop. So I did not tried the following command. However, if you have installed Fedora 20 with default set of softwares, there here is the step to install all the developmental libraries. $prompt] yum install tcl tk gcc-c++ libX11-devel libXt-devel libXmu-devel  You need to change the file ns-2.35/linkstate/ls.h file as specified below. in Line number 137, change erase( to this->erase   The installation will report an error if the above change is not made. Once installed, set the PATH in /home/pradeepkumar/.bash_profile file, in my case here is my path informa...

Installing Network Simulator 2 (NS-2.35) in Fedora 19

Fedora 19 was launched last fortnight and it released with so many new features  http://pradeepkumar.org/2013/07/fedora-19-features.html To install Network Simulator 2 (ns-2.35), here are the steps to do it. For other OS, here is the installation instructions. in Fedora 18,  http://www.nsnam.com/2013/03/installing-ns-235-network-simulator-2.html in Linux Mint/Ubuntu 13.04  http://www.nsnam.com/2013/01/installation-of-network-simulator-2-ns.html Here comes the instructions for NS-2.35 in Fedora 19. Installation Instructions OS Used: Fedora 19 – 64 bit DVD Version  http://www.fedoraproject.org NS2: ns-allinone-2.35.tar.gz from http:// www.isi.edu/nsnam/ns/ ‎ Step 1: Copy the ns2 source file in to the home/ directory (always use the home directory and use ordinary user login) Step 2: unzip or untar the contents from the source file using the commands one by one cd /home/pradeepkumar tar zxvf ns-allione-2.35.tar.gz cd ns-allinone-2.35 Step 3...

Installing NS-2.35 in Fedora 17

Download NS2.35 from this link. http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download Copy the file to /home/yourhome (in my case it is, /home/pradeep/) Untar it using “ tar zxvf ns-allione-2.35.tar.gz ” (without quotes) “cd ns-allione-2.35/” (without quotes) “./install” (see the dot in the beginning) During the installation there may be a error in linkstate/ls.h, the location of ls.h is  “/home/pradeep/ns-allinone-2.35/ns-2.35/linkstate/ls.h” Open the file using gedit “gedit /home/pradeep/ns-allinone-2.35/ns-2.35/linkstate/ls.h” in line number 127, there will be a erase function, change it to this->erase and go to step 5. Once installation over, set the PATH and that’s it.

Network Simulator 2 installation in Fedora 17 (Beta)

Hope you would have tried installing NS2 in Fedora 16. Now here is a new post that you can install ns2.35 in Fedora 17 beta. Install Fedora 17 beta from a DVD and install all the softwares that are coming along with the DVD (Except the Languages). There will be a "Customize now" option will be there during the installation of Fedora, check that and install all the required softwares. Download NS-23.5 from  http://www.isi.edu/nsnam/ns/ Untar the downloaded ns-allinone-xxx.tar.gz file using the command “tar zxvf ns-allinone-2.35.tar.gz” execute the commands one by one as given below cd ns-allinone-2.35 ./install (you may get an error called ~ns-2.35/linkstate/ls.h error in line number 137,  change the following line to                              void eraseAll() { erase(baseMap::begin(), baseMap::end()); } to this line                     ...

Setting Path in Linux

Setting a path information in windows is always been easier, since there is a GUI facility “Environmental Variables”, but I Linux setting a path is always been tricky and it should be done through CLI (Command Line Interface).  Here are the following ways to do: Method 1: For each user (Your login id) of Linux has a home folder (/home/username), there will be a file called as .bashrc (Ubuntu and Fedora) or .bash_profile (Fedora), whatever path has to be set, it should be entered in the above file. For example: if the software is installed in /home/username/software1/, then the PATH has to be set in the .bashrc or .bash_profile file like this export PATH=$PATH:/home/username/software1/ ($PATH is a shell variable refers to the previous set path also to be included in the PATH setting.) For Java Home export JAVA_HOME=/home/username/<Java_path> Method 2: The above method of path is applicable only for that user. if other users wanted to access the software, then they hav...

NS2 (NS-2.35) Installation in Fedora 16

This post will help you in installing Network Simulator 2 version NS2.35 in Fedora 16 Steps:' Install Fedora using a DVD ISO (if you go for a CD iso, then you need to download lot of packages) Download NS-2.35 from this website . Unzip or untar it to any folder (recommended is /home/ loginname) using the following commands one by one tar zxvf ns-allinone-2.35.tar.gz cd ns-allinone-2.35 ./install Once installed the PATH information will be shown in the screen. Copy the PATH and LD_LIBRARY_PATH Variable to .bash_profile (see a dot in the beginning) Input the path information in .bash_profile like this There will be a PATH Variable already available in the .bash_profile file, just copy the PATH information from the NS2 installation and append it over the existing PATH variable (but put a separator : between each path) export PATH=$HOME/bin:<Put a colon and Place your paths here> export LD_LIBRARY_PATH=<place the LD_LIBRARY_PATHS> here. Once done, save the ...

Network Simulator 2 (NS2.35) is released

Nearly more than 2 years of gap, Network Simulator 2.35 is released on 4th November 2011 and its worth to work with. Lot of updates in the wireless domain and easier installation when compared with the earlier versions. To download the new version follow this link http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download Shortly wait for the installation instructions for NS 2.35 under Ubuntu, Mac OS and Fedora. Till that time, refer the following posts, http://www.nsnam.com/2011/11/installation-of-network-simulator-ns235.html http://www.nsnam.com/2011/10/ns235-installation-in-fedora-15-and.html

NS2.35 installation in Fedora 15 and Ubuntu 11.10

NS 2.35 can be installed successfully in Fedora 15 and Ubuntu 11.10 using the following steps In Fedora 15 Download ns-allinone-2.35 from the NS2 website. The recent version was RC8 select the folder /home/username, untar the file using the command " tar zxvf ns-allinone-xxx.tar.gz " (without quotes). Go to the folder /home/username/ns-allinone-2.35/ using the command cd  /home/username/ns-allinone-2.35 /  and execute the command ./install (dot /install) You may encounter an error in the file mac_80211Ext.h and correct the error given in the following line Open the file /home/username/ns-allinone-2.35/ns-2.35/mac/mac_80211Ext.h and include the following line in the header file area #include <cstddef> Go to step3 and type ./install   Once installation completed, set the path information in .bash_profile (dot bash_profile) you need to set two path variables PATH and LD_LIBRARY_PATH please see this link for setting the path  http://prad...

Fedora 12 Installation

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: S...

NS2.34 installation in Fedora 14

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