반응형




출처 : http://networkingtips-tricks.blogspot.kr/2010/08/tutorial-how-to-install-gns3-on.html



리눅스 초보자가 GNS3를 설치해보겠다고 삽질 했다. CENTOS 6.4에서는 어렵게 설치를 해야 하나
우분트에서는 쉽게 그냥 GUI로 클릭 클릭 설치가 가능하다.(패키지 매니저를 이용하는 것으로 안다.)

CENTOS 6.4(64BIT)에서 설치 방법은 아래와 같은데 잘 안된다. 
예전에 작성한 설치 방법이라 잘 안되는것 같다.
아래 두가지 설치 방법을 보고 최신 소스를 이용해서 설치 하면된다.
최신 소스도 편의상 링크 걸어 놓았다.

그러면 되더라..-_-.....(23시간 꼬박 날세고..성공..ㅠㅠ)






 How To Install GNS3 on Centos 6.4/Redhat/Fedora .



First we'll have to install dependencies 

[user@admin ~]$ su

Password: (Type in your root password here)

yum install python python-devel xorg-x11-proto-devel libXext-devel gcc-c++ libXrender* PyQt4 PyQt4-devel qt qt-devel qemu-img libvirt


Now we'll download and install Qt4

[root@admin /]#cd /tmp

[root@admin tmp#wget http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.tar.gz

[root@admin tmp]#tar xzf qt-everywhere-opensource-src-4.8.4.tar.gz

[root@admin tmp]# cd qt-everywhere-opensource-src-4.8.4.tar.gz

[root@admin qt-everywhere-opensource-src-4.8.4]#./configure -nomake examples -nomake demos -no-exceptions -debug -qt3support

[root@admin qt-everywhere-opensource-src-4.8.4]#gmake -j 6 <====This might take 2-3 hrs.

[root@admin qt-everywhere-opensource-src-4.8.4]#gmake install <====Another 30 mins or so

[root@admin qt-everywhere-opensource-src-4.8.4]#PATH=/usr/local/Trolltech/Qt-4.8.4/bin:$PATH

[root@admin qt-everywhere-opensource-src-4.8.4]#export PATH


Next we'll install SIP

[root@admin qt-x11-opensource-src-4.5.1]#cd ..

[root@admin tmp]#wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.5/sip-4.14.5.tar.gz

[root@admin tmp]#tar xzf sip-4.14.5.tar.gz

[root@admin tmp]#cd sip-4.14.5

[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://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10/PyQt-x11-gpl-4.10.tar.gz


[root@admin tmp]#tar xzf PyQt4/PyQt-4.10/PyQt-x11-gpl-4.10.tar.gz

[root@admin tmp]#cd PyQt4/PyQt-4.10/PyQt-x11-gpl-4.10

[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://sourceforge.net/projects/gns-3/files/GNS3/0.8.4-RC2/GNS3-0.8.4-RC2-src.tar.gz

[root@admin opt]#tar -xjvf GNS3-0.8.4-RC2-src.tar.gz

[root@admin opt]#mv GNS3-0.8.4-RC2-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.opendrive.com/files/25226584_Cmocn_9400/dynamips-0.2.8-RC3-x86.bin

[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC3-x86.bin



[root@admin Dynamips ]#wget http://sourceforge.net/projects/gns-3/files/Dynamips/0.2.8-RC3-community/dynamips-0.2.8-RC3-community-x86_64.bin
[root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC3-community-x86_64.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-RC3-x86.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


 




  • Create app for use in app menu and launcher creation
    Create /usr/share/applications/gns3.desktop with the following contents:
    [Desktop Entry]
    Name=GNS3
    Comment=GNS3
    Exec=gns3
    Icon=gns3.png
    Terminal=0
    Type=Application
    Encoding=UTF-8
    Categories=Development
  • Now you’ll find GNS3 listed in the Applications -> Programming menu location and can create application launchers in panels or on the desktop with ease…
  • Edit /opt/GNS3/src/GNS3/Node/AbstractNode.py to comment out the following lines:
    if QtCore.QT_VERSION >= 0x040600:
    flags = flags | self.ItemSendsGeometryChanges

    To avoid the following error message:
    AttributeError: 'xxxxxxxxxxx' object has no attribute 'ItemSendsGeometryChanges'
  •  






    PyQt v4.10

    http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10/PyQt-x11-gpl-4.10.tar.gz

    http://www.riverbankcomputing.co.uk/news/pyqt-410


    QT4

    http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.tar.gz

    http://qt-project.org/downloads


    -qt-gif옵션이 들어가면 error


    /configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support


    SIP Download

    http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.5/sip-4.14.5.tar.gz

    http://www.riverbankcomputing.co.uk/software/sip/download


    Dynamips 64bit

    http://sourceforge.net/projects/gns-3/files/Dynamips/0.2.8-RC3-community/dynamips-0.2.8-RC3-community-x86_64.bin


    http://sourceforge.net/projects/gns-3/files/GNS3/0.8.4-RC2/GNS3-0.8.4-RC2-src.tar.gz


    + Recent posts