grepjack / packettracer-fedora Goto Github PK
View Code? Open in Web Editor NEWEasily install Cisco Packet Tracer latest version on Fedora.
License: GNU General Public License v3.0
Easily install Cisco Packet Tracer latest version on Fedora.
License: GNU General Public License v3.0
It's would be nice to add in the README a Board to see tested version of fedora, with which version of packet tracer and if work or not..
Hello,
I noticed a small oversight in the install script which affects at least Fedora 38 Workstation.
A fresh install of Fedora 38 Workstation cannot run install.sh without first installing package binutils.
Without binutils, install.sh cannot unarchive: output: "install.sh: line 32: ar: command not found".
After installing binutils, ar is available and the install script succeeds.
Thank you for your work on this! Much appreciated.
Kindest regards,
Conrad Gryba
Hi, I have tested the repository and everything is fine, but I have a question.
When I run the packet tracer application it creates a folder with the name "pt" in the /home/user directory.
I would like to know how I can change the Packet Tracer configuration to put that folder somewhere else on my computer.
Do you know what I could do to change the location of the "pt" folder?
Thanks.
I'm a very new linux user.
It doesn't work for me,i followed every instruction.
After running the install.sh script i get several error messages:
no entry /home/chiro/Downloads/CiscoPacketTracer_820_Ubuntu_64bit.deb in archive
tar: packettracer/control.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: packettracer/data.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
cp: cannot stat 'packettracer/usr': No such file or directory
cp: cannot stat 'packettracer/opt': No such file or directory
sed: can't read /usr/share/applications/cisco-pt.desktop: No such file or directory
sudo: ./packettracer/postinst: command not found
The installing dependencies part worked fine.
It's a totally clean install of Fedora 37, altough ran updates
Thank you for your help in advance.
!!!!After doing everything the script does by hand packet tracer works fine for me.
I've recently installed packet tracer 8.2.1 with this script and everything is working except the modules neither I'm able to add modules nor I'm able to remove modules from previous configured routers. I currently use Nobara 38, which is based on Fedora 38. I also don't have a log, because i don't know where i could get one.
`
❯ cp ~/Downloads/CiscoPacketTracer_821_Ubuntu_64bit.deb ~/
❯sudo ./install.sh
The Packet Tracer installer was found at:
/home/krafi.info/Downloads/CiscoPacketTracer_821_Ubuntu_64bit.deb
/home/krafi.info/CiscoPacketTracer_821_Ubuntu_64bit.deb
Installing:
qt5-qtwebsockets x86_64 5.15.9-1.fc38 updates 87 k
Install 1 Package
Total 54 kB/s | 87 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : qt5-qtwebsockets-5.15.9-1.fc38.x86_64 1/1
Running scriptlet: qt5-qtwebsockets-5.15.9-1.fc38.x86_64 1/1
Verifying : qt5-qtwebsockets-5.15.9-1.fc38.x86_64 1/1
Installed:
qt5-qtwebsockets-5.15.9-1.fc38.x86_64
Complete!
Extracting files
no entry /home/krafi.info/CiscoPacketTracer_821_Ubuntu_64bit.deb in archive
tar: packettracer/control.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: packettracer/data.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
cp: cannot stat 'packettracer/usr': No such file or directory
cp: cannot stat 'packettracer/opt': No such file or directory
sed: can't read /usr/share/applications/cisco-pt.desktop: No such file or directory
sed: can't read ./packettracer/postinst: No such file or directory
sed: can't read ./packettracer/postinst: No such file or directory
sudo: ./packettracer/postinst: command not found
`
Sed doesn't find the cisco-pt.desktop
Actual file found in the folder are
/usr/share/applications/cisco-pt821.desktop
/usr/share/applications/cisco-ptsa821.desktop
but must to be find after refreshing icon cache
The install was succesful but i cant find the path where it is installed.
[pranesh@fedora packettracer-fedora]$ sudo bash install.sh
The Packet Tracer installer was found at:
/home/pranesh/.local/share/Trash/files/CiscoPacketTracer_821_Ubuntu_64bit.deb
/home/pranesh/Downloads/CiscoPacketTracer_821_Ubuntu_64bit.deb
Removing old version of Packet Tracer from /opt/pt
Installing dependencies
Last metadata expiration check: 0:14:45 ago on Wed 21 Jun 2023 09:29:03 PM +0545.
Package binutils-2.39-9.fc38.x86_64 is already installed.
Package qt5-qtmultimedia-5.15.10-1.fc38.x86_64 is already installed.
Package qt5-qtwebengine-5.15.12-6.fc38.x86_64 is already installed.
Package qt5-qtnetworkauth-5.15.10-1.fc38.x86_64 is already installed.
Package qt5-qtwebsockets-5.15.10-1.fc38.x86_64 is already installed.
Package qt5-qtwebchannel-5.15.10-1.fc38.x86_64 is already installed.
Package qt5-qtscript-5.15.10-1.fc38.x86_64 is already installed.
Package qt5-qtlocation-5.15.10-1.fc38.x86_64 is already installed.
Package qt5-qtsvg-5.15.10-1.fc38.x86_64 is already installed.
Package qt5-qtspeech-5.15.10-1.fc38.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Extracting files
no entry /home/pranesh/Downloads/CiscoPacketTracer_821_Ubuntu_64bit.deb in archive
tar: packettracer/control.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: packettracer/data.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
cp: cannot stat 'packettracer/usr': No such file or directory
cp: cannot stat 'packettracer/opt': No such file or directory
sed: can't read /usr/share/applications/cisco-pt.desktop: No such file or directory
sed: can't read ./packettracer/postinst: No such file or directory
sed: can't read ./packettracer/postinst: No such file or directory
sudo: ./packettracer/postinst: command not found
[pranesh@fedora packettracer-fedora]$
Depending on the font or theme, the text can be difficult to read.
Does this script work with packet tracer version 8.2.1? I have an important job in that version and I need to recover it. I tried to download it and run the install.sh file and I get the following error:
Selected installer: /home/bajon/Escritorio/mondra/segundo_curso/segundo_cuatri/REDES_2/CiscoPacketTracer_811_Ubuntu_64bit.deb
Removing old version of Packet Tracer from /opt/pt
Installing dependencies
Last metadata expiration check done 0:05:03 ago, on Tue 14 May 2024 14:13:21.
Package binutils-2.40-14.fc39.x86_64 is now installed.
Package qt5-qtmultimedia-5.15.12-1.fc39.x86_64 is now installed.
The package qt5-qtwebengine-5.15.16-1.fc39.x86_64 is now installed.
The package qt5-qtnetworkauth-5.15.12-1.fc39.x86_64 is now installed.
The package qt5-qtwebsockets-5.15.12-1.fc39.x86_64 is now installed.
The qt5-qtwebchannel-5.15.12-1.fc39.x86_64 package is now installed.
The qt5-qtscript-5.15.12-1.fc39.x86_64 package is now installed.
The qt5-qtlocation-5.15.12-1.fc39.x86_64 package is now installed.
The qt5-qtsvg-5.15.12-1.fc39.x86_64 package is now installed.
Package qt5-qtspeech-5.15.12-1.fc39.x86_64 is now installed.
Dependencies resolved.
Nothing to do.
Ready!
Extracting files
ar: /home/bajon/Desktop/mondra/second_course/second_cuatri/REDES_2/CiscoPacketTracer_811_Ubuntu_64bit.deb: file format not recognized
tar: packettracer/control.tar.xz: Cannot perform open: File or directory does not exist
tar: Error is not recoverable: exiting now
tar: packettracer/data.tar.xz: Cannot perform open: File or directory does not exist
tar: Error is not recoverable: exiting now
cp: unable to perform stat' on 'packettracer/usr': File or directory does not exist cp: can't perform
stat' on 'packettracer/opt': File or directory does not exist
sed: can't read ./packettracer/postinst: file or directory does not exist
sed: can't read ./packettracer/postinst: file or directory does not exist
sed: can't read ./packettracer/postinst: file or directory does not exist
sudo: ./packettracer/postinst: command not found
sed: can't read /usr/share/applications/cisco-pt*.desktop: File or directory does not exist
(I have tried with version 8.2.2 and it works.)
Thanks,
b4j0n1tz.
Fedora's /etc/profile has lines that end with backslashes, and this part of the postinst
script from the cisco packet tracer deb package corrupts the /etc/profile:
PROFILE="/etc/profile"
# error exit if file does not exist or unreadable
if [ ! -f $PROFILE ]; then
exit 1
elif [ ! -r $PROFILE ]; then
exit 2
fi
# read contents
CONTENTS=""
EXPORT_PT8_EXISTS=0
PT8HOME_EXISTS=0
PT8HOME_FOUND=0
exec 3<&0
exec 0<$PROFILE
while IFS= read -r line
do
# replace existing entries
PT8HOME_FOUND=`expr match "$line" 'PT8HOME'`
if [ $PT8HOME_FOUND -gt 0 ]; then
line="PT8HOME=$PTDIR"
PT8HOME_EXISTS=1
fi
# check for export statement
if [ $EXPORT_PT8_EXISTS -eq 0 ]; then
EXPORT_PT8_EXISTS=`expr match "$line" 'export PT8HOME'`
fi
#append the line to the contents
CONTENTS="$CONTENTS\n$line"
done
exec 0<&3
if [ $PT8HOME_EXISTS -eq 0 ]; then
CONTENTS="$CONTENTS\nPT8HOME=$PTDIR"
fi
if [ $EXPORT_PT8_EXISTS -eq 0 ]; then
CONTENTS="$CONTENTS\nexport PT8HOME"
fi
sudo echo -e "$CONTENTS" > /etc/profile
Specifically line
CONTENTS="$CONTENTS\n$line"
Because the $CONTENTS ends with a backslash, it escapes the backslash from the newline symbol and as a result we get single letter "n" instead of a new line. This in turn results in following error when opening terminal session:
bash: n: command not found…
Need correct new name on install.sh line 12 installer_name_2=Packet_Tracer*.deb
old name: CiscoPacketTracer*Ubuntu_64bit.deb
new name: Packet_Tracer821_amd64_signed.deb
Only with this change it works very well in Fedora 38, excellent work in its Script.
It works perfect on Fedora 37 and 38 too
I just installed packet tracer with your script and it works perfect!
Skills for All not launching the browser is happening again with Packet Tracer 8.2 on Fedora 36 even after previous fixes.. Any help would be appreciated.
Not really a surprise, but according to the readme success should be reported. Nice work on the script :)
The script was unable to find the package with this name:
CiscoPacketTracer822_amd64_signed.deb
Hello. You may prefer to make scripts' codes compact.
if [ -e /opt/pt ]; then
(...)
sudo rm -rf /opt/pt /usr/share/applications/cisco*-pt*.desktop
sudo xdg-desktop-menu uninstall /usr/share/applications/cisco-pt*.desktop
(...)
fi
if [ -e /opt/pt ]; then
(...)
fi
rpm
and dnf
, automatically select the appropriate architecture IDs for package to be installed via those managers, for instance noarch and x86_64. Then those IDs can be omitted in code. Also some expressions can be grouped.echo "Installing dependencies"
sudo dnf -y install qt5-qt{multimedia,webengine,networkauth,websockets,webchannel,script,location,svg,speech}
(...)
Thanks :)
Hi! I was trying to install the Packet Tracer and during the extraction process of the files, I got this message.
./opt/pt/translations/qtxmlpatterns_uk.qm
./opt/pt/translations/qtxmlpatterns_zh_CN.qm
./opt/pt/translations/qtxmlpatterns_zh_TW.qm
./usr/
./usr/share/
./usr/share/icons/
./usr/share/icons/gnome/
./usr/share/icons/gnome/48x48/
./usr/share/icons/gnome/48x48/mimetypes/
./usr/share/icons/gnome/48x48/mimetypes/pka.png
./usr/share/icons/gnome/48x48/mimetypes/pks.png
./usr/share/icons/gnome/48x48/mimetypes/pksz.png
./usr/share/icons/gnome/48x48/mimetypes/pkt.png
./usr/share/icons/gnome/48x48/mimetypes/pkz.png
./usr/share/mime/
./usr/share/mime/packages/
./usr/share/mime/packages/cisco-pka.xml
./usr/share/mime/packages/cisco-pks.xml
./usr/share/mime/packages/cisco-pksz.xml
./usr/share/mime/packages/cisco-pkt.xml
./usr/share/mime/packages/cisco-pkz.xml
sed: can't read /usr/share/applications/cisco-pt.desktop: No such file or directory
gtk-update-icon-cache: Cache file created successfully.
touch: cannot touch '/root/.config/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: line 873: /root/.config/mimeapps.list.new: No such file or directory
And then the script terminate itself. I am using the 8.2.1
version of the Packet Tracer from the given URL. The operating system I was using is this :
Any assistance would be appreciated!
Hello. sh install.sh
run on Fedora, edition 37. Resulting output relevant for report.
gtk-update-icon-cache: No theme index file.
touch: cannot touch '/root/.config/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: line 873: /root/.config/mimeapps.list.new: No such file or directory
Once the installation process has ended, packettracer
triggers a successful opening of the application. Nonetheless, it cannot be determined whether the underlying causes of that output may affect the behaviour or any functionality of that application.
Note: running the script with sudo
as instructed by Run sudo bash install.sh and (...) in code tab would lead as expected to installation errors caused by the misuse of sudo
. So it is dully avoided at least on my system.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.