Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Below is a script that I put together to download and install the packages and libraries needed to run PacketTracer 6+ on a fresh install of Fedora 21 x86_64. This script assumes that PacketTracer is already downloaded and is in the 'Downloads' folder and that the tarball begins with 'Cisco'. Please feel free to make changes as needed. Enjoy!

#!/bin/bash
# Script to install Cisco PacketTracer 6 on Fedora 21 x64-bit
# This script assumes that Cisco PacketTracer is already downloaded with the default name
# and is in the 'Downloads' folder.
# Author: Isom Rodebush
# Email: isom.rodebush@gmail.com
# Last edited: 2015/02/17

# Download and install necessary libraries packages.
cd Downloads/

wget ftp://rpmfind.net/linux/opensuse/update/12.2/x86_64/libopenssl1_0_0-32bit-1.0.1e-2.8.1.x86_64.rpm

wget ftp://rpmfind.net/linux/Mandriva/official/9.1/i586/Mandrake/RPMS/XFree86-libs-4.3-5mdk.i586.rpm

wget ftp://rpmfind.net/linux/fedora/linux/releases/21/Everything/i386/os/Packages/l/libXrender-0.9.8-4.fc21.i686.rpm

sudo yum install -y vim glib* glib.i686 libX.rpm XFree*.rpm libX11.i686 libacpi.i686 libacpi.x86_64 ld-linux.so.2 libpng12.so.0 libopenssl1_0_0-32bit-1.0.1e-2.8.1.x86_64.rpm libstdc++.i686

sudo yum groupinstall -y 'Development Tools' 'C Development Tools and Libraries'

# Create symbolic links for 'libssl' and 'libcrypto'
cd /lib
ln -s libssl.so.1.0.0 /usr/bin/libssl.so.1.0.0
ln -s libcrypto.so.1.0.0 /usr/bin/libcrypto.so.1.0.0

# Extract Cisco PacketTracer
cd /home/irodebush/Downloads
tar xzf Cisco*.tar.gz

# Install Cisco PacketTracer
cd PacketTracer6* sudo ./install

# Replace 'packettracer' executable
sudo rm -R /opt/pt/packettracer

sudo touch /opt/pt/packettracer

sudo chmod +x /opt/pt/packettracer

sudo echo -e '#!/bin/bash

echo Starting Packet Tracer 6.2

PTDIR=/opt/pt
export LD_LIBRARY_PATH=$PTDIR/lib
# pushd $PTDIR/bin > /dev/null
# ./PacketTracer6 "$@" > /dev/null 2>&1
# popd > /dev/null
pushd $PTDIR/bin
./PacketTracer6 $@
popd \n' \
> /opt/pt/packettracer

# Create Cisco PacketTracer Desktop icon
sudo touch /usr/share/applications/Cisco-PacketTracer.desktop

sudo echo -e '[Desktop Entry] Encoding=UTF-8
Type=Application

Exec=/opt/pt/packettracer
Icon=/opt/pt/art/app_student.png

Name=Cisco Packet Tracer
Categories=Application;Network;

MimeType=application/x-pkt;application/x-pka;application/x-pkz;' \
> /usr/share/applications/Cisco-PacketTracer.desktop