Coder Social home page Coder Social logo

ug3si's Introduction

ug3si

Ultimate GNS3 server installer for Linux host machines (Ubuntu/Mint, Fedora and Arch/Manjaro).

Installation is based on QEMU-KVM virtualization and libvirt virtual network.

KVM is required to complete an installation.

All scripts are 'self-descriptive' so you can easily check and modify to run for your purpose.

Files

  • install.sh – main script, defines runtime path and bridge interface name
  • uninstall.sh $gns3path $gns3bridge – uninstall script; gets runtime path and bridge name
  • toolssetup.sh – tools and programs installer
  • networksetup.sh $gns3bridge – libvirt configuration script; gets bridge interface name
  • gns3bridge.xml – virtual network bridge interface name (also name of bridge configuration file) for libvirt
  • filessetup.sh $gns3path $gns3bridge – files setup (configures runtime location); gets runtime path and bridge interface name
  • runtime.sh $gns3path $gns3bridge – runtime script; gets runtime path and bridge interface name
  • wiresharkinstaller.sh – Wireshark installer (manual run)

Installation

IMPORTANT! – before installation you should adjust server capabilities (RAM, RAM+swap and CPU cores). To do that modify gns3mem, gns3maxmem and gns3cores values at beginning of runtime.sh

To install GNS3 server just run install.sh in terminal – script will automatically download required files from GNS3 repository, install and create menu shortcut.

In case you are asked if non-super users should be able to do something always choose "Yes".

Defaults and modifications

  • Location: ~/.gns3runtime/ folder
  • IP address: 10.10.10.10
  • SSH username/password: gns3/gns3

To change default location edit file install.sh (it is defined at the beginning).

To modify IP address (what is not recommended) you have to modify gns3bridge.xml file (more about libvirt configuration files), determine which IP will be leased to GNS3 server and put it to runtime.sh (it is defined at the beginning).

Usage

To start GNS3 server open menu and find GNS3 Server shortcut. While starting it will configure virtual network environment and login via ssh to it (which is not necessary to cooperate with server). In case you have lost server window you can just relogin by SSH:

After startup you can open GNS3 app and connect to "remote server" (Host: 10.10.10.10, Port: 80 TCP, Authentication: disabled).

Also, you can open browser and just type 10.10.10.10.

IMPORTANT! – server will work in a background until you shutdown it manually from server menu or reboot your host system.

Uninstall script

To remove server files and menu shortcut run:

uninstall.sh <RUNTIME_PATH>

Packages such as gns3-gui, bride-utils and others will not be uninstalled. You can find packages' names in toolssetup.sh if you want to uninstall them manually.

Additionals

To extend GNS3 functionalities you can install Wireshark (i.e. by using wiresharkinstaller.sh).

Moreover, to fasten login to server you can generate ssh-keys and paste it to ~/.ssh/authorized_keys on GNS3 server (by Shell in a server menu).

ug3si's People

Contributors

piotrjwegrzyn 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.