How To Install GNS3 on Centos/Redhat/Fedora
2010-08-12 14:03
309 查看
You won't find detailed instructions for GNS3 installation on Centos/Redhat/Fedora over the net, So I decided to make one. Installing GNS3 on Centos/Redhat/Fedora can be very tedious task. But If you follow my Steps given below you can setup and run GNS3 without any difficulty. Since Qt 4.5.1 binary which is required for GNS3 is not available for these OS's, we'll have to compile it from the source.
IMP
:: Installation of all this packages will take a lot of time. So do it when you are free.
OK lets roll
First we'll have to install dependencies
[user@admin ~]$ su
Password: (Type in your root password here)
[root@admin /]# yum install python python-devel xorg-x11-proto-devel libXext-devel
[root@admin /]# yum install gcc-c++
Now we'll download and install Qt4
[root@admin /]#cd /tmp
[root@admin tmp#wget http://ftp.uludag.org.tr/pub/source/2009/qt-x11-opensource-src-4.5.1.tar.gz
[root@admin tmp]#tar xzf qt-x11-opensource-src-4.5.1.tar.gz
[root@admin tmp]# cd qt-x11-opensource-src-4.5.1
[root@admin qt-x11-opensource-src-4.5.1]#./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support
[root@admin qt-x11-opensource-src-4.5.1]#gmake
<====This might take 2-3 hrs.
[root@admin qt-x11-opensource-src-4.5.1]#gmake install
<====Another 30 mins or so
[root@admin qt-x11-opensource-src-4.5.1]#PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH
[root@admin qt-x11-opensource-src-4.5.1]#export PATH
Next we'll install SIP
[root@admin qt-x11-opensource-src-4.5.1]#cd ..
[root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/sip-4.8.1.tar.gz
[root@admin tmp]#tar xzf sip-4.8.1.tar.gz
[root@admin tmp]#cd sip-4.8.1
[root@admin sip-4.8.1]#python configure.py
[root@admin sip-4.8.1]#make
[root@admin sip-4.8.1]#make install
Next we'll Install PyQt4
[root@admin sip-4.8.1]#cd ..
[root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/PyQt-x11-gpl-4.5.2.tar.gz
[root@admin tmp]#tar xzf PyQt-x11-gpl-4.5.2.tar.gz
[root@admin tmp]#cd PyQt-x11-gpl-4.5.2
[root@admin PyQt-x11-gpl-4.5.2]#python configure.py
[root@admin PyQt-x11-gpl-4.5.2]#make
<=====This will take 30-60 mins
[root@admin PyQt-x11-gpl-4.5.2]#make install
We are done with compiling part, now lets download GNS3 source files
[root@admin tmp]#cd /opt
[root@admin opt]#wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7.2/GNS3-0.7.2-src.tar.bz2
[root@admin opt]#tar -xjvf GNS3-0.7.2-src.tar.bz2 && rm GNS3-0.7.2-src.tar.bz2
[root@admin opt]#mv GNS3-0.7.2-src /opt/GNS3
Create the following directories:
These directories will be used by GNS3 – such as projects – where your working projects will be stored, cache, temp, IOS images, etc.
[root@admin opt]#cd /opt/GNS3
[root@admin GNS3]#mkdir Dynamips
[root@admin GNS3]#mkdir IOS
[root@admin GNS3]#mkdir Project
[root@admin GNS3]#mkdir Cache
[root@admin GNS3]#mkdir tmp
[root@admin GNS3]#chmod o+rw -R ./Project
[root@admin GNS3]#chmod o+rw -R ./tmp
[root@admin GNS3]#chmod o+rw -R ./IOS
Download binary of dynamips and make it executable
[root@admin GNS3]#cd Dynamips
[root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin
[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-x86.bin
IMP:: For 64-bit users
[root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin
[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-amd64.bin
You can create a desktop shortcut by right-clicking on the desktop and select “Create Launcher..”, Name it GNS3 and in the command section type in
python "/opt/GNS3/gns3"
Double click to open GNS3 and we will edit the default settings. If you don’t want to use desktop icons you can create a launcher from your programs menu by right clicking on the Main Menu, selecting Edit Menu. Select New Item on the right and you will be presented with the same window where you type in the above. From there you can move the launcher into any menu section of your choice.
Fire up GNS3
* Go to edit | preferences and in the ‘Terminal command:’ section type in:
gnome-terminal -t %d -e 'telnet %h %p' > /dev/null 2>&1 &
* Under ‘Paths’ change the ‘Project directory:’ to
/opt/GNS3/Project
and the ‘IOS/PIX directory:’ to
/opt/GNS3/IOS
* Click on Dynamips tab on the left
For the ‘Executable path:’ type in
/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin
64-bit users
type /opt/GNS3/Dynamips/dynamips-0.2.8-RC2-amd64.bin
* Change the ‘Working directory:’ to
/opt/GNS3/tmp
Click on the Capture tab on the left
* For the ‘Working directory for capture files:’ change it to
/opt/GNS3/Project
After you have done all that, you will be able to Open and Save your GNS3 projects properly and have an efficient setup for GNS3. In order to use the devices in GNS3 you must obtain our own IOS images from Cisco.
Hope this tutorial will help you guys to setup and run GNS3 on your Linux system.
Happy Learning :)
IMP
:: Installation of all this packages will take a lot of time. So do it when you are free.
OK lets roll
First we'll have to install dependencies
[user@admin ~]$ su
Password: (Type in your root password here)
[root@admin /]# yum install python python-devel xorg-x11-proto-devel libXext-devel
[root@admin /]# yum install gcc-c++
Now we'll download and install Qt4
[root@admin /]#cd /tmp
[root@admin tmp#wget http://ftp.uludag.org.tr/pub/source/2009/qt-x11-opensource-src-4.5.1.tar.gz
[root@admin tmp]#tar xzf qt-x11-opensource-src-4.5.1.tar.gz
[root@admin tmp]# cd qt-x11-opensource-src-4.5.1
[root@admin qt-x11-opensource-src-4.5.1]#./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support
[root@admin qt-x11-opensource-src-4.5.1]#gmake
<====This might take 2-3 hrs.
[root@admin qt-x11-opensource-src-4.5.1]#gmake install
<====Another 30 mins or so
[root@admin qt-x11-opensource-src-4.5.1]#PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH
[root@admin qt-x11-opensource-src-4.5.1]#export PATH
Next we'll install SIP
[root@admin qt-x11-opensource-src-4.5.1]#cd ..
[root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/sip-4.8.1.tar.gz
[root@admin tmp]#tar xzf sip-4.8.1.tar.gz
[root@admin tmp]#cd sip-4.8.1
[root@admin sip-4.8.1]#python configure.py
[root@admin sip-4.8.1]#make
[root@admin sip-4.8.1]#make install
Next we'll Install PyQt4
[root@admin sip-4.8.1]#cd ..
[root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/PyQt-x11-gpl-4.5.2.tar.gz
[root@admin tmp]#tar xzf PyQt-x11-gpl-4.5.2.tar.gz
[root@admin tmp]#cd PyQt-x11-gpl-4.5.2
[root@admin PyQt-x11-gpl-4.5.2]#python configure.py
[root@admin PyQt-x11-gpl-4.5.2]#make
<=====This will take 30-60 mins
[root@admin PyQt-x11-gpl-4.5.2]#make install
We are done with compiling part, now lets download GNS3 source files
[root@admin tmp]#cd /opt
[root@admin opt]#wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7.2/GNS3-0.7.2-src.tar.bz2
[root@admin opt]#tar -xjvf GNS3-0.7.2-src.tar.bz2 && rm GNS3-0.7.2-src.tar.bz2
[root@admin opt]#mv GNS3-0.7.2-src /opt/GNS3
Create the following directories:
These directories will be used by GNS3 – such as projects – where your working projects will be stored, cache, temp, IOS images, etc.
[root@admin opt]#cd /opt/GNS3
[root@admin GNS3]#mkdir Dynamips
[root@admin GNS3]#mkdir IOS
[root@admin GNS3]#mkdir Project
[root@admin GNS3]#mkdir Cache
[root@admin GNS3]#mkdir tmp
[root@admin GNS3]#chmod o+rw -R ./Project
[root@admin GNS3]#chmod o+rw -R ./tmp
[root@admin GNS3]#chmod o+rw -R ./IOS
Download binary of dynamips and make it executable
[root@admin GNS3]#cd Dynamips
[root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin
[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-x86.bin
IMP:: For 64-bit users
[root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin
[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-amd64.bin
You can create a desktop shortcut by right-clicking on the desktop and select “Create Launcher..”, Name it GNS3 and in the command section type in
python "/opt/GNS3/gns3"
Double click to open GNS3 and we will edit the default settings. If you don’t want to use desktop icons you can create a launcher from your programs menu by right clicking on the Main Menu, selecting Edit Menu. Select New Item on the right and you will be presented with the same window where you type in the above. From there you can move the launcher into any menu section of your choice.
Fire up GNS3
* Go to edit | preferences and in the ‘Terminal command:’ section type in:
gnome-terminal -t %d -e 'telnet %h %p' > /dev/null 2>&1 &
* Under ‘Paths’ change the ‘Project directory:’ to
/opt/GNS3/Project
and the ‘IOS/PIX directory:’ to
/opt/GNS3/IOS
* Click on Dynamips tab on the left
For the ‘Executable path:’ type in
/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin
64-bit users
type /opt/GNS3/Dynamips/dynamips-0.2.8-RC2-amd64.bin
* Change the ‘Working directory:’ to
/opt/GNS3/tmp
Click on the Capture tab on the left
* For the ‘Working directory for capture files:’ change it to
/opt/GNS3/Project
After you have done all that, you will be able to Open and Save your GNS3 projects properly and have an efficient setup for GNS3. In order to use the devices in GNS3 you must obtain our own IOS images from Cisco.
Hope this tutorial will help you guys to setup and run GNS3 on your Linux system.
Happy Learning :)
相关文章推荐
- Install MongoDB on RedHat Enterprise, CentOS, or Fedora Linux
- Installing Hudson and JDK on centos, redhat or fedora.
- How to install snmpwalk snmpget on CentOS 6.4 6.3 5.9 Redhat RHEL Fedora
- How To Install GNS3 on Centos/Redhat/Fedora .
- neokylin6,centos,redhat,fedora 中django+celery+rabbitmq环境安装过程
- Centos fedora redhat安装kscope-1.6.2报错解决方法
- Install MongoDB on Red Hat Enterprise, CentOS, or Fedora
- Install FFmpeg on CentOS or RedHat EL 6.x
- Install Google Chrome on Fedora 23/22, CentOS/RHEL 7.1
- [CentOS]CentOS/RedHat/Fedora的Proxy设定(yum,wget,,rpm)
- Domino Server installation on Linux (Centos or Redhat) – something somewhere
- How to Install PostgreSQL 9.5 on CentOS/RHEL 7/6/5 and Fedora 23/22
- How to fix yum errors on CentOS, RHEL or Fedora
- Install VirtualBox Guest Additions on Fedora 16/15, CentOS/RHEL 6/5.7
- 安装linux系统之后,开机时没有Windows系统选项的解决办法(Ubuntu,Deepin,Centos,Redhat,Fedora)
- Nagios 4.0.1 Released – Install on RHEL/CentOS 6.x/5.x and Fedora 19/18/17
- (OK) How To Install Wine 1.9.9 (Development Release) on CentOS, RHEL & Fedora
- Install Apache, MySQL 5.5.32 & PHP 5.5.0 on RHEL/CentOS 6.4/5.9 & Fedora 19-12
- Install WordPress 3.6.1 Using LAMP or LEMP on RHEL, CentOS & Fedora
- WordPress 3.9 Released – Install Using LAMP or LEMP on RHEL, CentOS & Fedora