網頁

2015年4月3日 星期五

Ubuntu/Lubuntu --- How to install the latest GNS3 as 1.3.0 from GitHub

We have already installed git on Lubuntu 14.04 x64 by using the sudo apt-get install git command (maybe its version is older) or compiling the source. Once the installation complete, a good suggestion might be to have a folder called git in the home directory which has sub-folders for each of the individual projects. In the moment, the home directory is "My Git" and sub-folder is "source" for locating the download files.

Install GNS3 Server from GitHub
Before the process begin, we have to install the GNS3 Server dependencies as follows by using the sudo apt-get install python3-dev python3-zmq python3-tornado python3-setuptools python3-netifaces command
  • Python 3.3 or above
  • aiohttp
  • setuptools
  • netifaces
  • jsonschema
After the above install, we will get the gns3-server version by visiting the GNS3/gns3-server project's page on GitHub
If we want the latest stable release, we should go change the branch to the latest non-"rc" tag using this button along the left side of the project header

Back on your Lubuntu 14.04, you can type wget and follow it by pasting the address you copied
and download it by using the wget https://github.com/GNS3/gns3-server/archive/v1.3.0.zip -O gns3-server.zip command

Unzip the file that you downloaded and move into the resulting directory by typing unzip gns3-server.zip and cd gns3-server-1.3.0 command

Now, we can install the gns3-server with the dependencies by typing sudo python3 setup.py install command

Install GNS3 GUI from GitHub
Before the process begin, we have to install the GNS3 GUI dependencies as follows by using the sudo apt-get install python3-dev python3-setuptools python3-pyqt4 command
  • Python 3.3 or above
  • Setuptools
  • PyQt libraries
  • Apache Libcloud library
  • Requests library
  • Paramiko library
After the above install, we will get the GNS3-gui version by visiting the GNS3/gns3-gui project's page on GitHub
If we want the latest stable release, we should go change the branch to the latest non-"rc" tag using this button along the left side of the project header

Back on your Lubuntu 14.04, you can type wget and follow it by pasting the address you copied
and download it by using the wget https://github.com/GNS3/gns3-gui/archive/v1.3.0.zip -O gns3-gui.zip command

Unzip the file that we downloaded and move into the resulting directory by typing unzip gns3-gui.zip and cd gns3-gui-1.3.0 command

Now, we can install the gns3-gui with the dependencies by typing sudo python3 setup.py install command

Install Dynampis from GitHub
Before the process begin, we have to install the Dynampis dependencies as follows by using the sudo apt-get install libelf-dev uuid-dev libpcap0.8-dev cmake command
  • libelf-dev
  • uuid-dev
  • libpcap0.8-dev
After the above install, we will get the Dynampis version by visiting the GNS3/dynamips project's page on GitHub
If we want the latest stable release, we should go change the branch to the latest non-"rc" tag using this button along the left side of the project header

Back on your Lubuntu 14.04, you can type wget and follow it by pasting the address you copied
and download it by using the wget https://github.com/GNS3/dynamips/archive/v0.2.14.zip -O dynampis.zip command

Unzip the file that we downloaded and move into the resulting directory by typing unzip dynampis.zip and cd dynampis-0.2.14 command

Due to Dynamips now uses the CMake build system, we have to generate the Makefiles required for compiling Dynamips by typing mkdir build and cd build and cmake .. command

Now, we can build and install Dynamips by typing make prefix=/usr/local all and sudo make prefix=/usr/local install command
Finally, provide network support for IOU by typing the sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips command

Install IOUYAP from GitHub
Before the process begin, we have to install the IOU dependencies as follows
$ 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 gcc flex bison git

$ git clone http://github.com/ndevilla/iniparser.git
$ cd iniparser
$ sudo make

$ sudo cp libiniparser.* /usr/lib/
$ sudo cp src/iniparser.h /usr/local/include
$ sudo cp src/dictionary.h /usr/local/include

After the above install, we will get the IOUYAP version by visiting the GNS3/iouyap project's page on GitHub
and only choose the non-"rc" tag using this button along the left side of the project header

Back on your Lubuntu 14.04, you can type wget and follow it by pasting the address you copied
and download it by using the wget https://github.com/GNS3/iouyap/archive/0.95.zip -O iouyap.zip command

Unzip the file that we downloaded and move into the resulting directory by typing unzip iouyap.zip and cd iouyap-0.95 command

Due to IOUYAP Makefiles exist, we can directly install IOUYAP by typing sudo make prefix=/usr/local install command

Finally, copy it to /usr/local/bin by using the sudo cp iouyap /usr/local/bin command and then provide network support for IOU by typing the sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/iouyap command.

Install VPCS from GitHub (# 1)
For virtual PC connections to the Routers and switches, we need to install Simple Virtual PC Simulator.
At first, we will get the VPCS version by visiting the GNS3/vpcs project's page on GitHub
and only choose the non-"rc" tag using this button along the left side of the project header
Back on your Lubuntu 14.04, you can type wget and follow it by pasting the address you copied
and download it by using the wget https://github.com/GNS3/vpcs/archive/v0.5b1.zip -O vpcs.zip command

Unzip the file that we downloaded and move into the resulting directory by typing unzip vpcs.zip and cd vpcs-0.5b1/src command

We can directly compile VPCS by typing ./mk.sh command and copy it to /usr/local/bin by using the sudo cp vpcs /usr/local/bin command


Until now, we have successfully installed GNS3 1.3.0 and run it by typing the gns3 command.

In the future, how to upgrade to a new version? example for gns3-gui
To find the URL to use for the clone operation, navigate to the branch or tag that we want on the project's GitHub page and then copy the clone URL on the right side
Next we can simply clone the repository by using the git clone https://github.com/GNS3/gns3-gui.git command so that will create a new directory within your current directory.

As to the next step, please follow the above installation procedure based on each function.
So does that will overwrite your older version with the new version now.

Reference:
(# 1)   Due to it will not be updated version in GitHub, we can download/Install the latest VPCS from http://sourceforge.net/projects/vpcs/files/

沒有留言:

張貼留言

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.