GithubHelp home page GithubHelp logo

ignema / ns2-nam-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 263 KB

This repository contains instructions on how to work with ns2 (network simulator) and its graphical user interface nam using docker containers.

Dockerfile 100.00%
nam ns2 docker x11 mobile-networks

ns2-nam-docker's Introduction

Mobile Networks: Setting up ns2 and nam with Docker

This repository contains instructions on how to work with ns2 (network simulator) and its graphical user interface nam using docker containers.

Installation

1. Make sure you have docker set up

2. Build the docker image using the Dockerfile in this repo

docker build . -t ignema/ns2

Choose any name you want for your image.

3. (For Windows Only) Set up an X11 Session to run GUI apps with Docker

1st way (using chocolatey)

choco install vcxsrv

2nd way

Download it directly from the sourceforge website.

Important: Make sure you start XLaunch.exe that we just downloaded and keep it running in the background.

XLaunch

Make sure you check Disable Access Control !

4. Look up your private IP address

Windows

C:\> ipconfig

ipconfig

Linux

# sudo apt-get install net-tools
#
# ifconfig

ifconfig

5. Run the docker container from the image we built

docker run -it --rm -e DISPLAY=<YOUR-IP-ADDRESS>:0.0 ignema/ns2

Enjoy!

nam

ns2-nam-docker's People

Contributors

ignema avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.