Installing NS-2 on Ubuntu & 12.10

Similar documents
Manual for installing NS2.29 under Window XP

Installing VMware Player to Run Ubuntu Linux on a Windows Machine

APPENDIX A. Installation Procedure of VanetMobiSim 1.1

Tutorial for virtual machine creation and installation of Linux C4Sys iso file in Windows.

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on an Virtual Machine

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on a Virtual Machine

FireFox. CIS 231 Windows 10 Install Lab # 3. 1) Use either Chrome of Firefox to access the VMware vsphere web Client.

CIS 231 Windows 10 Install Lab # 3

1. Install a Virtual Machine Download Ubuntu Create a New Virtual Machine Seamless Operation between Windows an Linux...

Operating Systems Lab 1. Class topic: Installation of the operating system. Install Ubuntu on Oracle VirtualBox

Arabic Ubuntu Support

Ubuntu Manually Mount Cdrom Drive Command Line Vmware

Easy Windows Working with Disks, Folders, - and Files

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

1 Installation (briefly)

Introduction to NS-2

FireFox. CIS 231 Windows 2012 R2 Server Install Lab #1

Install and Configure Ubuntu on a VirtualBox Virtual Machine

Installing VirtualBox and Ubuntu

Sun VirtualBox Installation Tutorial

Setting Up a Linux Operating System

Steps to install Xubuntu on a Virtual Machine

Zephyr Kernel Installation & Setup Manual

CIS 231 Windows 2012 R2 Server Install Lab #1

Installation of Ubuntu, ns3 and compiling first script for Network Animator (nam)

Setting up a Chaincoin Masternode

Code::Blocks Student Manual

VANET-Skeleton for ns2

Setting up Ubuntu with VirtualBox

RWT Network System Installation Guide

Dark Web Investigation Setup Guide.

Application Management

Lab E2: bypassing authentication and resetting passwords

CIS 231 Windows 7 Install Lab #2

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile.

Preparing Your Google Cloud VM for W4705

Installation of Lubuntu Linux, Koha, DSpace and other software using LibLiveCD

Guide to using Simply Web

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on an Virtual Machine

XLink Kai Raspberry Pi Beginners Tutorial

How To Install Flash Player In Ubuntu Using Terminal

The Python Mini-Degree Development Environment Guide

Performance Analysis of Broadcast Based Mobile Adhoc Routing Protocols AODV and DSDV

Your Own Virtual Playground. CS 1585 :: Doug McGeehan

Installing Ubuntu 8.04 for use with ESP-r 8 May 2009 Jon W. Hand, ESRU, Glasgow, Scotland

Ubuntu 7.10 VMware Fusion Virtual Machine Setup Install HOWTO

Ubuntu Remove Manually Install Software From Windows 7 Usb Drive Ubuntu

Lab00: Software Environment Setup

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

Lab Install Windows 8

Labtainer Student Guide

Running MESA on Amazon EC2 Instances: A Guide

Using a virtual machine and a X server to (almost) use Siril on Windows

COLD WALLET + MASTERNODE SETUP ON LINUX

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete

Lab - Install Windows 7 or Vista

Masternode Guide #1. Single masternode on Linux VPS (Ubuntu)+ control wallet on local PC (Windows)

The Ip address / Name value should be: srvvcenter-cis

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Network Monitoring & Management. A few Linux basics

Masternode Setup Guide Local Wallet with VPS Server

Installation Guide: VirtualBox, Windows 10, and Microsoft Visio (Mac OS)

PISCES Installation and Getting Started 1

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras

GUIDE Development tools for Windows(10) installation... 2

Installing MySQL on the Command Line

WA1827 Cloud Programming Workshop. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

bitcurator-access-webtools Quick Start Guide Last updated: May 8th, 2018 Release(s): and later

Parallel Programming

Minix Neo Z64A basics

Installing an OptoBlue Adaptor on Windows 8 Operating System:

BREEZE PLAYER INSTALLATION GUIDE FOR THE AAEON MOTHERBOARD

Mac OS X 10.6 Snow Leopard Installation and Setup Guide

Installing SeisComP3

Installation of Apache OpenMeetings on Ubuntu LTS. This tutorial is made based on fresh installations of. ubuntu desktop-amd64.

Quick Installation Guide for RHV/Ovirt

Lab 3-1 Lab Installing Kofax Capture 10

Reading: Managing Files in Windows 7

Installation and Setup Guide

Lab #5 Guide: Installing Ubuntu as a Virtual Machine

Code::Blocks Student Manual

SUB1X Masternode Setup Guide: LINUX Version

Comparative Bacterial Genomics

Title: Demonstrate the linux installation and administration settings.

Rover Coin. Hot Cold Wallet Masternode VPS setup Guide

CS197U: A Hands on Introduction to Unix

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

How to Dual-Boot OS X and Ubuntu

SQL Server Express 2017 Installation Guide. By Engin Calisir, 06/22/2018

Jackson State University Department of Computer Science CSC / Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

Introduction to Personal Computing

Customizing DAZ Studio

2 Installing the Software

Reference Services Division Presents. Saving & Printing

Sysinstall main menu. Move the cursor down by using the DOWN-ARROW and select Standard.

EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs)

Jackson State University Department of Computer Science CSC 437/539 Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

Installation of Apache OpenMeetings on Ubuntu LTS. This tutorial is made based on a fresh installations of

Adafruit's Raspberry Pi Lesson 6. Using SSH

Capstone PXE Server Documentation

Transcription:

Installing NS-2 on Ubuntu 10.04 & 12.10 for windows users from the ground up Eslam Mostafa Mahmoud Ayman Mahmoud Ezz Mahmoud Mohsen Mahmoud Rashad Mostafa Kishk gp.team.2013@gmail.com

Contents Introduction... 2 Why Ubuntu?... 2 Requirements... 2 Installing Ubuntu... 3 Installing NS-2 on Ubuntu 12.10... 7 Installing NS-2 on Ubuntu 10.04... 11 The First NS-2 Run... 19 Installing NS-2 on Ubuntu 10.04 CUFE EECE 1

Introduction This is a screenshot-aided step-by-step tutorial to install Ubuntu 10.04 and Ubuntu 12.10 inside Windows and then NS-2. This Tutorial is very useful for anyone who wants to try Ubuntu without touching windows. As we ll see later, Ubuntu will be installed inside windows and can be removed from the Control Panel like any other installed windows software. Students who want to use NS-2 may search and find that NS-2 can be installed on windows via Cygwin. But, believe or not, installing Ubuntu and then NS-2 on it is easier. Also, getting familiar with Ubuntu or any Linux OS is very useful for engineers for many reasons that are out of our scope for now. It s our pleasure to receive feedback or to be asked for any help by email: gp.team.2013@gmail.com Why Ubuntu? Of course, Ubuntu is for free and it s the most famous Linux OS. A new release of Ubuntu appears every 6 months, but 10.04 is the last version that has the classic simple GUI and it is too enough for our purpose. But Note that steps of Ubuntu installation here is the same for all the Ubuntu releases. Requirements 1- Internet Connection. Wired Internet Connection is recommended, as Ubuntu may not identify your Wireless Card. 2- A 32-bit Ubuntu 10.04 Desktop ISO. You can download it form: http://releases.ubuntu.com/lucid/ubuntu-10.04.4-desktop-i386.iso Or for 12.10 http://releases.ubuntu.com/quantal/ubuntu-12.10-desktop-i386.iso 3- ISO mounting software. You can download ISODisk from: http://www.softsea.com/download/isodisk.html 4-10GB Free space in your Hard Disk. Installing NS-2 on Ubuntu 10.04 CUFE EECE 2

Installing Ubuntu 1- If you don t have an ISO mounting software, download ISODisk and install it, then restart your computer. 2- From Start Menu, run ISODisk. Right Click then choose run as administrator. Browse for the Ubuntu ISO to mount it in DISK B. Then close it. Go to My Computer. You should find a Driver called B which is a virtual CD-ROM Driver. Double click it. 3- Right Click on wubi then choose run as administrator. Choose install beside windows. Installing NS-2 on Ubuntu 10.04 CUFE EECE 3

4- Ubuntu Install windows should appear. Now, it s recommended that to you disable your internet connection. This will avoid wasting time downloading unimportant updates by the Ubuntu Installer. 5- Choose the installation destination and size (10GB minimum space is recommended). Type your preferred user name and password. Be careful to make the password short and unforgettable, as you ll be always in need of it. Then click install. 6- After Installation, choose Reboot Now, and then click Finish. Note that Ubuntu can open the PDF files. So, put copy this file in any drive except C (or the installation directory) and you then can access it from Ubuntu by clicking the Places menu in the upper menu panel. Installing NS-2 on Ubuntu 10.04 CUFE EECE 4

7- After Reboot, you should now choose your OS to boot. Simply Press the Down Key and OK to choose boot Ubuntu. 8- A message Ubuntu is completing installation will appear. Do not press any key. 9- Ubuntu will complete installation automatically. Just wait. Installing NS-2 on Ubuntu 10.04 CUFE EECE 5

10- Computer will restart. Choose Ubuntu again and then hit the Enter Key to choose Ubuntu Linux generic. 11- The log-in screen will appear and the user name of the windows will appear. Choose it and enter your password, then click log in. Ubuntu 10.04 Ubuntu 12.10 Installing NS-2 on Ubuntu 10.04 CUFE EECE 6

Installing NS-2 on Ubuntu 12.10 1- Click on the up left icon Dash Home and Type terminal then choose it. 2- Type sudo apt-get update and hit Enter. 3- Type your password and hit Enter. Note that the password will not appear on screen. Installing NS-2 on Ubuntu 10.04 CUFE EECE 7

4- Type sudo apt-get install ns2 and hit Enter. 5- Type y and hit Enter. Wait. Installing NS-2 on Ubuntu 10.04 CUFE EECE 8

6- Type sudo apt-get install nam and hit Enter. Wait. 7- Type sudo apt-get install xgraph and hit Enter. Wait. 8- Enter ns. A % should appear. If not, make sure you did all the steps. Installing NS-2 on Ubuntu 10.04 CUFE EECE 9

9- Press ctrl+c. 10- Enter nam. A window should appear as shown. Everything in OK now. Installing NS-2 on Ubuntu 10.04 CUFE EECE 10

Installing NS-2 on Ubuntu 10.04 1- Now, reconnect to the internet. A connection indication should appear. 2- Open FireFox and google download ns2 allineone 2.35 sourceforge and click the source forge result. Download the latest version. Installing NS-2 on Ubuntu 10.04 CUFE EECE 11

3- Choose save file. Wait for download to finish. 4- Open Applications Accessories Terminal. 5- Type sudo passwd then type your password and hit Enter. Repeat 2 Times for Enter New... and Retype... Installing NS-2 on Ubuntu 10.04 CUFE EECE 12

6- Type sudo apt-get update and wait for the update to be completed. 7- Type sudo apt-get install libx11-dev. You can use the mouse right click to copy and paste, but don t use the keyboard shortcut ctrl+v in the terminal window. 8- Type y then hit Enter. Wait. Installing NS-2 on Ubuntu 10.04 CUFE EECE 13

9- Type sudo apt-get install libxt-dev and hit Enter. Type your password and hot Enter. Note that the password will not be shown. Type y and hit Enter. Wait. 10- Type sudo apt-get install build-essential g++ and hit Enter. Type y and hit Enter. Wait. 11- Type sudo apt-get install build-essential autoconf automake libxmu-dev and hit Enter. Wait. 12- Type sudo apt-get install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool and hit Enter. Wait. 13- Type sudo apt-get install dpkg-dev g++ libc6-dev make and hit Enter. Wait. 14- Type sudo apt-get install xorg-dev g++ xgraph and hit Enter. Wait. 15- Type sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3 and hit Enter. Wait. 16- Enter the command cd /home/student/downloads. Terminal should change the directory as shown. Note that student here is the user name you entered while installation in the windows environment. Installing NS-2 on Ubuntu 10.04 CUFE EECE 14

17- Enter sudo tar -xzf ns-allinone-2.34.tar.gz. 18- Enter cd./ns-allinone-2.35. 19- Enter sudo./install and wait until it finishes (it may take time). 20- Enter cd /home/student. 21- Enter gedit.bashrc. A text windows should appear. 22- Scroll to the end of the file. Installing NS-2 on Ubuntu 10.04 CUFE EECE 15

23- Hit Enter 5 times. 24- Open this PDF and take the following text copy and then paste it there. Then, click save and close it. Remember to replace student with the user name you ve entered during installation in the windows environment. #LD_LIBRARY_PATH OTCL_LIB=/home/student/Downloads/ns-allinone-2.35/otcl-1.14 NS2_LIB=/home/student/Downloads/ns-allinone-2.35/lib X11_LIB=/home/X11R6/lib USR_LOCAL_LIB=/home/student/Downloads/local/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB #TCL_LIBRARY TCL_LIB=/home/student/Downloads/ns-allinone-2.35/tcl8.5.10/library USR_LIB=/home/lib export TCL_LIBRARY=$TCL_LIB:$USR_LIB #PATH XGRAPH=/home/student/Downloads/ns-allinone-2.35/bin:/home/student/Downloads/ns-allinone- 2.35/tcl8.5.10/unix:/home/student/Downloads/ns-allinone-2.35/tk8.5.10/unix NS=/home/student/Downloads/ns-allinone-2.35/ns-2.35/ NAM=/home/student/Downloads/ns-allinone-2.35/nam-1.15/ PATH=$PATH:$XGRAPH:$NS:$NAM Installing NS-2 on Ubuntu 10.04 CUFE EECE 16

25- Enter source.bashrc 26- Enter ns. A % should appear. If not, make sure you did all the steps. Installing NS-2 on Ubuntu 10.04 CUFE EECE 17

27- Press ctrl+c. 28- Enter nam. A window should appear as shown. Everything in OK now. Installing NS-2 on Ubuntu 10.04 CUFE EECE 18

The First NS-2 Run 1- Download the file ns-simple.tcl from: http://nile.wpi.edu/ns/example/ns-simple.tcl 2- Open places Downloads, then copy the file to the desktop. 3- Open the terminal from Applications Accessories. 4- Type cd Desktop. Hit Enter. 5- Type ns ns-simple.tcl and hit Enter. 6- The nam windows should appear as shown below. If not, make sure that you ve done all the steps. Installing NS-2 on Ubuntu 10.04 CUFE EECE 19

7- You can now click the play icon and watch the packets moving from node to another. Installing NS-2 on Ubuntu 10.04 CUFE EECE 20