Cisco Packettracer 7.1 on Fedora 27

Cisco Packet Tracer 7.1 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.1.  So you can register and download from here.

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

  • nss,linicu and ssl libraries.
  • QT5 script-tools, WebKit.
  • Cisco NetSpace account. (Mandatory)
  • x86_64 family processor (Cisco droped i86 support for Linux)

We need install some libraries as follows:

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

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.fc27.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.1 will be downloaded from Cisco Networking Academy Portal,

$ tar -xzf PacketTracer71_*_linux.tar.gz && cd PacketTracer71
$ 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
$ sudo chmod +x /opt/pt/set_qtenv.sh
$ sudo /opt/pt/set_qtenv.sh

And finally fixing some missing dependencies (Many thanks to Robertpro for this fix )

# As user...
mkdir ~/.lib64
wget https://github.com/robertpro/tips/raw/59d14e7b148ebd10698ad3621b4c8a0bad38844b/packet_tracer_fedora26/libicudata.so.52 -O ~/.lib64/libicudata.so.52
wget https://github.com/robertpro/tips/raw/59d14e7b148ebd10698ad3621b4c8a0bad38844b/packet_tracer_fedora26/libicui18n.so.52 -O ~/.lib64/libicui18n.so.52
wget https://github.com/robertpro/tips/raw/59d14e7b148ebd10698ad3621b4c8a0bad38844b/packet_tracer_fedora26/libicuuc.so.52 -O ~/.lib64/libicuuc.so.52

# Adding new library path ONLY for the packettracer startup script 
sudo sed -i "s|lib|lib:$HOME/.lib64|g" /opt/pt/packettracer

If for some reason Robertpro stops hosting that libraries, you can download it from here.

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.1 
Comment=Networking Cisco 
GenericName=PacketTracer 7.1 
Type=Application
Exec=/opt/pt/packettracer 
Icon=pt7
StartupNotify=true

Or as point me the always clever x3mboy, you can just:

$ sudo cp /opt/pt/bin/Cisco-PacketTracer.desktop /usr/share/applications/

 

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

Enjoy 😛

 

19 comments

  1. Hi I did everything that is in the post however I can not get it to start packet Tracer 7.1. This is the error message /lib64/libcrypto.so.1.0.0: no version information available (required by ./PacketTracer7). Search the web but do not manage to correct this error. Can you help me please. Thanks and regards.

    1. Hello Charlie,

      I hope you are doing well,

      maybe if you can be more specific on your problem i will help you:

      what said ldd /opt/pt/bin/PacketTracer7?

      You copy the libicu-* to your home??
      Regards

      P.D: Sorry for the delay, u know Holidays

      1. Hi, i did all those steps on my fresh Fedora 27, but it just keeps starting but never starts, i found this with ldd:
        [root@Fedora23 ~]# ldd /opt/pt/bin/PacketTracer7 |more
        /opt/pt/bin/PacketTracer7: /lib64/libcrypto.so.1.0.0: no version information available (required by /opt/pt/bin/PacketTracer7)
        linux-vdso.so.1 (0x00007ffd5ed4f000)
        libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007fd1f2a62000)

        I did all the steps mentioned, so what can i do?

        1. that means than we don’t have some symbol

          Hello Cesar,

          I hope you are doing well,

          maybe if you can be more specific on your problem i will help you, by example , You seen another dependences missing?? You copy the libicu-* to your home??

          regards

        2. Hi
          Yes , you always get this WARNING message, with the ldd checking, because actually the version information is NOT included in the source of fedora 17 package openssl-1.0.0i
          BUT IT IS NOT an ERROR message.
          Packet tracer will start any way if there is not other lacking libraries.
          Packet tracer 7.1 require extra libraries not required by PacketTracer 7.0:
          the /usr/lib64/libicu*.52.*
          While Fedora 27 (26 and 25) are providing
          the /usr/lib64/libicu*.57.*
          So if you do nothing more, than
          # ldd /opt/pt/bin/PacketTracer7
          will show that PacketTracer7, is linked with three of these:
          /usr/lib64/libicu*.57.* libraries.

          So once /usr/lib64/libicu*.52.*, are installed
          You must execute
          # /sbin/ldconfig
          so that ldd can include theese new libs as a possible alternative to the current ones /usr/lib64/libicu*.57.*
          SO DONT TRY to start PacketTracer-7.1 until you can sea only reference to libicu*.52.*, in the command
          # ldd /opt/pt/bin/PacketTracer7
          OTHERWISE you’ll get a COREDUMP !!!!!

  2. Just tried and instructions above. There is no set_ptenv.sh or set_qtenv.sh scripts included in the packet tracker tar file. The linux tar file was for Ubuntu 14.04. As a result the /opt/pt/packettracer file is empty.

    ls -l packettracer
    -rwxr-xr-x. 1 root root 0 Jan 28 20:50 packettracer

    If I try to run /opt/pt/bin/PacketTracer7 directly I get:
    ./PacketTracer7
    ./PacketTracer7: error while loading shared libraries: libicui18n.so.52: cannot open shared object file: No such file or directory

    1. Hi again, that means than you need add the libcui* to the lib path (LD_LIBRARY_PATH environment variable) the empty /opt/pt/packettracer sounds tricky but maybe a failed installation was provoked it. For what architecture is the tar file?

      1. The tar ball was for ubuntu 14.04. That was the only one I noticed for linux. I looked in the tar ball and didn’t see any where that it has the env setup scripts.

        1. Sounds like a catch22, maybe a buggy installation. You tried uninstall and install it again??, the /opt/pt/packettracer not will be empty. Regards

  3. When I put this “sudo rpm -Uvh openssl-1.0.0i-1.fc17.src.rpm”, it show me this line “””” user mockbuild does not exist – using root “””””

    and then I cant continue with the others stepts! what can i do????

Leave a Reply

Your email address will not be published. Required fields are marked *