Packettracer 7 in Fedora 26

Cisco Packet Tracer 7.0 is created by Cisco SystemsTM and is now provided for free distribution. Self learners are now able to download Cisco Packet Tracer after registering on Cisco Netacad website. A free Packet Tracer 101 (English), a 1-hour self-paced online course is also offered to every registered (free) student to help them get started with PacketTracer 7.0, So you can register and download from here.

The cisco packettracer 7.0 is available for GNU/Linux under the next requirements:

  • nss and ssl libraries.
  • QT4 script-tools, WebKit and QT3 backward support.
  • Cisco NetSpace account. (Mandatory)

We need install some libraries as follows:

$ sudo dnf install zlib-devel ncurses-devel gtk2 glibc glibc-devel \\
 libstdc++ libX11-devel libXrender libXrandr libusb libXtst nss \\
 qt qtwebkit

This time we have x86 (32bits) and x86_64(64bits) Packet Tracer packages, to be sure what is our version, run:

$ uname -m

i686 (32bits)

Still we have the ugly openssl-1.0.0 dependency, so if we have a i686 (32bits) version of Fedora 26

$ wget  http://www.deltaeridani.com/openssl-lib-compat-1.0.0i-1.fc26.i686.rpm
$ sudo rpm -Uvh openssl-lib-compat-1.0.0i-1.fc26.i686.rpm

x86_64 (64bits)

Today most people have a x86_64 machine and this time we have three options for resolve the OpenSSL dependency:

1.- Just download the package generated by me and simply trust me (I call this the ugliest method because i don’t provide any warranty):

$ sudo dnf copr enable bt0dotninja/openssl-lib-compat
$ sudo dnf install openssl-lib-compat

2.- Compile your own version (I call the “just ugly” method because you can check the source):

First get the code:

$ wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/17/Everything/source/SRPMS/o/openssl-1.0.0i-1.fc17.src.rpm
$ sudo dnf install @development-tools fedora-packager krb5-devel
$ sudo rpm -Uvh openssl-1.0.0i-1.fc17.src.rpm

For the build process we need super user access:

$ su -
# cd rpmbuild/SPECS/
# wget http://bt0.ninja/rpm/openssl-lib-compat-1.0.0.spec
# rpmbuild -bb openssl-lib-compat-1.0.0.spec
# rpm -i ../RPMS/x86_64/openssl-lib-compat-1.0.0i-1.fc26.x86_64.rpm
# exit

So many thanks to Yves L’ECUYER owner of http://www.deltaeridani.com, the original spec and the example are all from him.

Cisco Packet Tracer 7.0 will be downloaded from Cisco Networking Academy Portal,

$ tar -xzf PacketTracer70_*_linux.tar.gz && cd PacketTracer70
$ chmod +x install
$ sudo ./install

After accept the EULA, the installation begins, we need set the environment variables with the next command:

$ sudo chmod +x /opt/pt/set_ptenv.sh
$ sudo /opt/pt/set_ptenv.sh

Graphical Launcher on Gnome

With our favorite plain text editor we will edit the file /usr/share/applications/pt7.desktop as follows:

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=PacketTracer 7.0 
Comment=Networking Cisco 
GenericName=PacketTracer 7 
Type=Application
Exec=/opt/pt/packettracer 
Icon=pt7
StartupNotify=true

Now we will run Cisco Packet Tracer 7.0 from our Desktop:

17 comments

  1. Any luck with Packet Tracer 7.1 in Fedora 26? I have tried the same instructions for 7.0 and am unable to launch the program.

    1. seems to need more dependencies, try add qt5-qtmultimedia, qt5-qtwebkit and please tell me if this works to update the blog entry. thanks

      1. I added both the qt5-qtmultimedia and qt5-qtwebkit (and dependencies) but packet tracer will not start. On a ubuntu page they suggest running ./PacketTracer7 from the /opt/pt/bin folder, which also did not work, but now I have an output on error messages.

        The error message was:
        ./PacketTracer7: error while loading shared libraries: libQt5Script.so.5: cannot open shared object file: No such file or directory

        So I installed the qt5-qtscript package. Now the error is:
        /PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by ./PacketTracer7)
        ./PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by /lib64/libQt5Network.so.5)
        ./PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by /lib64/libQt5Network.so.5)
        ./PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by /lib64/libQt5Network.so.5)
        ./PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by /lib64/libssl.so.10)
        ./PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by /lib64/libssl.so.10)
        ./PacketTracer7: relocation error: /lib64/libQt5Network.so.5: symbol EC_KEY_get0_group, version OPENSSL_1.0.1_EC not defined in file libcrypto.so.10 with link time reference

        You mentioned in a previous post that the openssl package may be broken?

        Soruce: https://askubuntu.com/questions/944717/packet-tracer-7-1-wont-lauch-ubuntu-16-04-lts

        1. Yeah, but looking
          ldd /usr/lib64/libQt5Network.so.5 | grep -i crypto
          libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fa5e9dac000)
          That is not the ssl than we compile, i need more time to research the error and add the correct patch to the compat-ssl package.

          1. I’ve pretty much got it down to this one error: ./PacketTracer7: /lib64/libcrypto.so.1.0.0: version `OPENSSL_1.0.0′ not found (required by ./PacketTracer7)

            libcrypto.so.10 and libcrypto.so.1.0.0 are simlinked to /usr/lib64/libcrypto.so.1.0.2j

            I have tried several different version with similar failing results.

          2. Yeah, I think the openssl version installed don’t have the proper symbols defined to get all the parts working properly (we can load only one, our version or the version shipped with Fedora), the fix is patch our version but we need the fedora shipped will load first for another applications and our version only with packettracer, in other case, this may be a security problem

    1. Hi, it’s difficult, We need one more complete sslcompat but we can’t do it to much complete because we don’t want replace the official package compat-openssl10

  2. PacketTracer 7.1 on Fedora 26 is working for me. My solution was to install the following via dnf:
    – qt5-qtwebkit
    – qt5-qtsvg
    – qt5-qtscript

    The libcrypto problem I solved by going to rpmfind.net and searching for libopenssl1_0_0. Found it in an OpenSuse repo. Downloaded latest rpm and installed via dnf.

    Still can’t get packettracer to work from command line though. However if you move /opt/pt/bin/Cisco-PacketTracer.desktop to your ~/.local/share/applications directory and change the line in the file that reads Exec=packettracer %F to Exec=/opt/pt/bin/PacketTracer7 %F, then you can click on its icon and launch.

  3. Hello,

    I have been using openSUSE and have tried to install PT 7.2 but core dumped.
    After execute ldd PacketTracer7 found this:
    ./PacketTracer7: ./libcrypto.so.1.0.0: no version information available (required by ./PacketTracer7)

    Have tried many times to search and download the file but still success yet.

    Any suggestion?

    Thanks

Leave a Reply to Presian Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.