Install Gns3 On Kali Linux - Khalid Katkout

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

I have written articles previously on How to install Gns3 on Kali Linux and Debian.

Today i will write an article


on how to install Gns3 1.3.9 as of this writing on Kali Linux 2.0, Debian 8 and Latest ubuntu.
This article will work on other new release of Gns3 and i will post an update when new release come out. Gns3
on Linux come with 7 components that we'll build one by one.

Dynamips 0.2.14
gns3 gui 1.3.9
gns3 server 1.3.9
initparser
iouyap 0.95
ubridge 0.9.0
vpcs 0.6.1

The procedure will be same for the three different distributions but for Kali Linux 2.0 you'll have to put correct
repo list.On your Kali sana 2.0,ensure you put this repositories to your sources.list
NOTE: This is for Kali Linux 2.0 only. Paste the following on your terminal.

cat << EOF > /etc/apt/sources.list


# Regular Repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
EOF

Now do system update and upgrade, same for Kali, ubuntu and Debian

sudo apt-get update && apt-get upgrade

Let's add multiarch for i386 support as IOU needs them

sudo dpkg --add-architecture i386


sudo apt-get update

Install GNS3 dependencies

sudo apt-get install gcc


sudo apt-get install python3-setuptools
sudo apt-get install python3-dev
sudo apt-get install python3-netifaces
sudo apt-get install python3-pyqt4
sudo apt-get install python3-ws4py
sudo apt-get install python3-tornado
sudo apt-get install python3-zmq

Install Dynamips dependencies

sudo apt-get install cmake


sudo apt-get install libelf-dev
sudo apt-get install uuid-dev
sudo apt-get install libpcap-dev

Download Gns3 source files from "https://www.gns3.com/software/download"


Use terminal to change to directory containing downloaded file, then extract it,

unzip GNS3-1.3.9.source.zip -d GNS3-1.3.9-source


cd GNS3-1.3.9-source

Install Gns3 server

unzip gns3-server-1.3.9.zip
cd gns3-server-1.3.9
sudo python3 setup.py install
cd ..

Installing Gns3 gui

unzip gns3-gui-1.3.9.zip
cd gns3-gui-1.3.9
sudo python3 setup.py install
cd ..

Installing Dynamips Hypervisor

unzip dynamips-0.2.14
cd dynamips-0.2.14
mkdir build
cd build
cmake ..
make
sudo make install
sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips
cd ../..

Install GNS3 IOUYAP


unzip iouyap-0.95.zip
cd iouyap-95
sudo make install
sudo cp iouyap /usr/local/bin
cd ..

Install IOU prerequisites

sudo apt-get install libssl1.0.0:i386


sudo ln -s /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so.4
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install git
git clone http://github.com/ndevilla/iniparser.git
cd iniparser
make
sudo cp libiniparser.* /usr/lib/
sudo cp src/iniparser.h /usr/local/include
sudo cp src/dictionary.h /usr/local/include

Installing Vpc virtual pc for gns3.

unzip vpcs-0.6.1.zip
cd vpcs-0.6.1
cd src
./mk.sh
sudo cp vpcs /usr/local/bin/
cd ../..

That's all. To start Gns3 just type gns3 command on terminal

gns3

Kali 2.0 comes with Gnome 3.14 and dash to dock, if you want to create launcher for gns3 to pin to dash to dock
do the following

1) Install gnome panel

sudo apt-get install --no-install-recommends gnome-panel

2) Download gns3 icon image

wget http://www.gns3.com/images/gns3_logo.png

3) Then run this command to create a launcher


sudo gnome-desktop-item-edit /usr/share/applications --create-new

4) For name put Gns3

5) On command option click on browse

6) Browse to /usr/local/bin/gns3 and select it by clicking on open

7) On comment type anything you want

8) For icon click on icon on the top left corner and select downloaded icon image

9) Save it by clicking okay button

Your Gns3 launcher will be placed in Applications>Usual Applications>Other>GNS3


See picture below for help

You might also like