Skip to main content

Install Cisco Packet Tracer from .deb on any Linux distro

Project description

YPT

██    ██ ██████  ████████ 
 ██  ██  ██   ██    ██    
  ████   ██████     ██    
   ██    ██         ██    
   ██    ██         ██    

Your Packet Tracer - Install Cisco Packet Tracer on any Linux distro

License: MIT Python Version PyPI


YPT is a cross-distribution installer for Cisco Packet Tracer that extracts and configures the AppImage from the official .deb package. It solves the infamous login button browser opening issue on Wayland (especially KDE Plasma) and works on Fedora, openSUSE, Arch, Debian, Ubuntu, and other Linux distributions.

✨ Features

Feature Description
🐧 Cross-Distro Works on Fedora, openSUSE, Arch, Debian, Ubuntu, and more
🔓 Login Fix Fixes broken login button on Wayland with URL handler shim
🔒 No Root Installs to ~/.local/ - no sudo required
🔍 Auto Discover Automatically finds .deb file in current directory
🐛 Debug Mode Comprehensive logging to diagnose installation issues

🚀 Quick Start

Installation

pip install ypt

Usage

# Download Packet Tracer .deb from Cisco NetAcad first, then:

# Auto-discover .deb in current directory and install
ypt

# Or specify the .deb file explicitly
ypt ~/Downloads/CiscoPacketTracer_900_Ubuntu_64bit.deb

# Test browser detection before installing
ypt --test-browser

# Enable debug mode for troubleshooting
ypt --debug

# Run diagnostics on existing installation
ypt --diagnose

# Uninstall Packet Tracer
ypt --uninstall

📥 Getting Cisco Packet Tracer

IMPORTANT: YPT does NOT redistribute Cisco software. You must:

  1. Register for a free account at Cisco Networking Academy
  2. Download the Packet Tracer .deb package for Ubuntu from your NetAcad account
  3. Run ypt in the same directory as the downloaded .deb file

YPT only extracts and configures the software YOU downloaded from Cisco. We respect Cisco's End User License Agreement.

🔧 How It Works

The Login Button Problem

Packet Tracer's AppImage on Wayland cannot open URLs because:

  • Qt WebEngine can't access the system DBus session
  • xdg-open isn't available inside the AppImage sandbox
  • Standard browser detection fails on non-Debian distros

YPT's Solution

YPT creates an intelligent wrapper system:

  1. Custom URL Handler: Injects a xdg-open shim into the PATH
  2. Browser Detection: Auto-detects your default browser (Firefox, Chrome, Chromium, Brave, etc.)
  3. Environment Setup: Configures Qt WebEngine with proper browser executable
  4. Debug Logging: Logs every URL opening attempt to ~/.local/share/PacketTracer/debug.log

Installation Structure

~/.local/
├── bin/
│   └── packettracer              # Launcher wrapper script
└── share/
    ├── PacketTracer/
    │   ├── packettracer.AppImage # Extracted from .deb
    │   └── shims/
    │       └── xdg-open          # URL handler shim
    ├── applications/
    │   └── cisco-packet-tracer.desktop
    └── icons/
        └── hicolor/256x256/apps/
            └── cisco-packet-tracer.png

📋 Requirements

  • Python: 3.8 or higher
  • Linux Tools: ar and tar (pre-installed on most distros)
  • Web Browser: Firefox, Chrome, Chromium, Brave, or similar
  • Packet Tracer .deb: Download from netacad.com

🐛 Troubleshooting

Login Button Not Working

# Run diagnostics
ypt --diagnose

# Check debug log
cat ~/.local/share/PacketTracer/debug.log

Browser Not Detected

# Test browser detection
ypt --test-browser

# Manually specify browser
ypt --browser firefox ~/path/to/PacketTracer.deb

Installation Failed

# Run with debug mode
ypt --debug ~/path/to/PacketTracer.deb

# Verify .deb file integrity
file ~/path/to/PacketTracer.deb

📜 Legal Notice

YPT is an installation utility only. This software:

  • ✅ Extracts the AppImage from the .deb package YOU downloaded
  • ✅ Configures desktop integration and URL handlers
  • ✅ Does NOT contain any Cisco software
  • ✅ Does NOT redistribute Cisco Packet Tracer
  • ✅ Does NOT modify Cisco's software

You must:

  1. Download Packet Tracer yourself from Cisco Networking Academy
  2. Accept Cisco's End User License Agreement
  3. Comply with Cisco's terms of use

Cisco, Cisco Packet Tracer, and the Cisco logo are trademarks or registered trademarks of Cisco Systems, Inc. This project is not affiliated with, endorsed by, or sponsored by Cisco Systems, Inc.

📄 License

YPT is licensed under the MIT License - see the LICENSE file for details.

The MIT License applies to YPT (the installer tool) only, not to Cisco Packet Tracer software.

🤝 Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.

🆘 Support

🌟 Star History

If YPT helped you, consider giving it a star ⭐ on GitHub!


Made with ❤️ for the Linux networking community

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ypt-1.0.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ypt-1.0.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file ypt-1.0.0.tar.gz.

File metadata

  • Download URL: ypt-1.0.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ypt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bc842f3086812ceb7f0daf36639df372eedf002c5cc60c9faa3f5db211869b92
MD5 5433c1ff797664bc6cc60d689902fae1
BLAKE2b-256 0eee5b960e14fbbc2733d2284b7db613930cc6aa8b1d924d0dab37838b58a3a9

See more details on using hashes here.

File details

Details for the file ypt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ypt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ypt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f7d6a6e52882c5412c8d3190fcb92728190e7c6dd69f4cea119fbf8379af2ae
MD5 0bccbe08afb95102235261113266235c
BLAKE2b-256 04ab6d126b789bfae03f53482688609cc256203da0d08a6975e96738cc304345

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page