GNS3 Linux Installation Tutorial

// There is an easier way to install GNS3 on Ubuntu, for instance using apt-get install gns3.
// However the version you get from that install is quite old. 0.8.7 something


// It is best to run this installatiion as root and make sure your packages are up to date
sudo su
apt-get update
apt-get upgrade

// Get a whole bunch of installation dependencies out of the way
apt-get install build-essential libelf-dev uuid-dev libpcap-dev python3-dev python3-pyqt4 python3-netifaces git cmake bison flex vim tmux pastebinit libelf-dev libpcap0.8-dev python3-setuptools python3-zmq gcc wireshark

// Install pip and setuptools get and install the source files:
wget -O get-pip.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python3 get-pip.py

// Once we have pip installed we need to use it to get some prerequisite python modules for GNS3:
pip3 install pyzmq && pip3 install tornado

// To fix the missing library for IOU on 64bit systems execute the following:
dpkg --add-architecture i386 && apt-get update && apt-get install libc6:i386 libstdc++6:i386 libssl1.0.0:i386

// We can now create a symbolic link to the missing library:
ln -s /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/i386-linux-gnu/libcrypto.so.4

// To install iniparser which is a dependency for IOU we need to grab the source and compile it:
wget http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz
tar xf iniparser-3.1.tar.gz
cd iniparser
make
cp libiniparser* /usr/lib
cp src/*.h /usr/include

// Setup gns3 directory:
cd /home/yourusername
mkdir gns3
cd gns3

git clone https://github.com/GNS3/gns3-gui.git
cd gns3-gui
python3 setup.py install

git clone https://github.com/GNS3/gns3-server.git
cd gns3-server
python3 setup.py install

git clone https://github.com/GNS3/dynamips.git
cd dynamips
mkdir build
cd build
cmake ..

make install

// The reason for the next step is to ensure GNS3 knows where the dynamips binary is.
ln -s /usr/local/bin/dynamips /usr/bin/dynamips

// Once these steps have been completed, simply run gns3 with the command below:
gns3

Topic revision: r1 - 2015-07-13 - CameronDavidson
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback