Code Monkey home page Code Monkey logo

packettracer-fedora's People

Contributors

corentinptrl avatar grepjack avatar ignapk avatar littlegamer757 avatar logicbypass avatar ludo-code avatar nl-tch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

packettracer-fedora's Issues

Install script requires binutils

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

QUESTION

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.

Fedora 37 problems

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.

After install i'm not able to add modules to routers etc.

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.

fedora 38 faild

`
❯ 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

Removing old version of Packet Tracer from /opt/pt
Installing dependencies
Last metadata expiration check: 1:28:03 ago on Sun 28 May 2023 05:40:11 PM +06.
Package binutils-2.39-9.fc38.x86_64 is already installed.
Package qt5-qtmultimedia-5.15.9-1.fc38.x86_64 is already installed.
Package qt5-qtwebengine-5.15.12-5.fc38.x86_64 is already installed.
Package qt5-qtnetworkauth-5.15.9-1.fc38.x86_64 is already installed.
Package qt5-qtwebchannel-5.15.9-1.fc38.x86_64 is already installed.
Package qt5-qtscript-5.15.9-1.fc38.x86_64 is already installed.
Package qt5-qtlocation-5.15.9-1.fc38.x86_64 is already installed.
Package qt5-qtsvg-5.15.9-2.fc38.x86_64 is already installed.
Package qt5-qtspeech-5.15.9-1.fc38.x86_64 is already installed.
Dependencies resolved.

Package Architecture Version Repository Size

Installing:
qt5-qtwebsockets x86_64 5.15.9-1.fc38 updates 87 k

Transaction Summary

Install 1 Package

Total download size: 87 k
Installed size: 272 k
Downloading Packages:
qt5-qtwebsockets-5.15.9-1.fc38.x86_64.rpm 126 kB/s | 87 kB 00:00

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
`

couldn't install

[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]$

Works on Fedora 40

Nice!
It runs fine on Fedora 40 kernel 6.8.7-300
Cisco Packet Tracer 8.2.2
Great thanks

image

Packet Tracer version 8.2.1

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.

Postinst script from .deb breaks /etc/profile lines ending with backslashes

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…

Name Change of Files!

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.

Fedora 38

It works perfect on Fedora 37 and 38 too

Name matching problem

The script was unable to find the package with this name:
CiscoPacketTracer822_amd64_signed.deb

Scripts' codes | observations

Hello. You may prefer to make scripts' codes compact.

uninstall.sh

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

install.sh

if [ -e /opt/pt ]; then
 (...) 
fi
  • In respect to Packet Tracer, since the AMD64 architecture is the only one supported for Linux, Fedora user accordingly chooses the appropriate available Fedora release which is x86_64 in order to be able to run that product. RPM package managers, which are 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}
(...)

Certain files weren't present.

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 :
image

Any assistance would be appreciated!

Installation script | Multiple messages 'No such file or directory'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.