If you run Debian 'Wheezy' you'll find that python3 is too old for the GNS3 1.0 Alpha, which leaves with a few choices...
- Run Debian Jessie (Testing)
- Try and pick the bits you need from testing (could lead to an unstable system)
- Run a VM of Debian Testing
- Setup a chroot
If like myself, your restricted by older hardware, running a VM introduces a lot of extra overhead... whereas running a
chroot doesn't!
The steps below will allow to create a chroot and run gns3 from within it. All the commands shown below should be used in a terminal window.
INSTRUCTIONSInstall debootstrap and schroot
Code:
sudo apt-get install debootstrap schroot
First decide where you want to store the chroot (you'll need about 850Mb of space for the chroot, not including IOS/IOU Images)
Code:
mkdir -p /srv/chroot/jessie
Create Debian Jessie (Testing) chroot
Code:
debootstrap --components=main,contrib,non-free --include=sudo,locales,unzip jessie /srv/chroot/jessie/ http://ftp.uk.debian.org/debian
Note: The mirror at the end of the command can be any mirror as found here:
https://www.debian.org/mirror/listDepending on the speed of your internet connection and proximity to the mirror, it may take a while to download and setup the base system. Once it has finished we can move on...
Add chroot definition to schroot.conf
Code:
sudo nano /etc/schroot/schroot.conf
Add the following to the end of the file:
Code:
[jessie]
type=directory
description=Debian Jessie(testing)
directory=/srv/chroots/jessie
users=daniel
root-groups=root
aliases=testing
Replace the user on the users line with
your usernameNow lets get inside the chroot, where the real fun can begin!
Code:
schroot -p -c jessie
*** WE ARE NOW IN THE CHROOT! ***
Fix the locale errors
Code:
sudo dpkg-reconfigure locales
Select the locales you wish to generate for you chroot from the list displayed.
For example for English (GB) choose "en_GB.UTF-8 UTF-8" from the list (highlight and press space)
Now <TAB> and <ENTER> on OK
Select the default locale, press <ENTER>. The system will now generate the locale and store the settings
Install packages required for GNS3 v1
Code:
sudo apt-get install dynamips
sudo apt-get install python3-setuptools python3-zmq python3-tornado python3-netifaces python3-pyqt4
Install a terminal emulator (gnome-terminal doesn't seem to work currently)
Code:
sudo apt-get install xterm
OR
Code:
sudo apt-get install roxterm
Install telnet (required to console to routers)
Code:
sudo apt-get install telnet
Install i386 libssl1.0.0 for IOU
Code:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libssl1.0.0:i386
sudo ln -s /usr/lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.4
OPTIONAL: Install uml-utilities (to get tunctl needed for tap interfaces)
Code:
sudo apt-get install uml-utilities
Install GNS3 Server
Code:
wget https://github.com/GNS3/gns3-server/archive/master.zip
unzip gns3-server.zip
cd gns3-server-master
sudo python3 setup.py install
Install GNS3 GUI
Code:
wget https://github.com/GNS3/gns3-gui/archive/master.zip
unzip gns3-gui.zip
cd gns3-gui-master
sudo python3 setup.py install
Now you can run GNS3!
Code:
gns3
If when you start GNS3 an error is diplayed on the console about GTK+
Install qtconfig and pick a GUI style other than GTK+ (Cleanlooks works well)
Code:
sudo apt-get install qt4-qtconfig
qtconfig