In this article, we will examine how to set up and use the Cisco Packet Tracer 8.1 (8.1.1) simulator software on Ubuntu 22.04 (Jammy Jellyfish), one of the most popular and widely used Linux distributions.
How to Install Packet Tracer 8.1.1 on Ubuntu
The person or people preparing for Cisco exams prefer Packet Tracer (PT) as a start. They start to make network designs by installing Packet Tracer network software on Windows, Linux, and macOS systems. Although it is easy to install this software on a Windows operating system, this may not be the case on Linux systems.
In order to install and run Cisco network simulator software or any program on an Ubuntu distribution, you must have some command of basic terminal commands. Because when installing a program on Linux, you may need to install additional dependent packages.
The setup files of the older versions of Packet Tracer, such as 7.1, had the extension tar.gz. The extension of the setup file was changed to .run in version 7.2. In the current latest version (8.1), the setup file is now published as a .deb extension.
Packet Tracer 8 version has the ability to cable network devices with physical appearance experience and network controller features to monitor and manage network devices on the project from the host machine.
How to Download and Install Packet Tracer
Before installing the Cisco network simulator software, you must register on the Netacad website and then download the software to your computer for Linux systems and start the installation process.
Open your web browser on your Ubuntu computer and after viewing the Netacad site, enter your registered user information and log in. Then, click Download Packet Tracer from the Resources drop-down list on the Cisco Networking Academy homepage.
After scrolling down the webpage a little bit, click on the 64 Bit Download link under the Ubuntu Desktop Version 8.1.1 English title and save the CiscoPacketTracer_811_Ubuntu_64bit.deb file to your computer.
To install the Packet Tracer setup file with the deb extension that you downloaded to your computer, first open the terminal by pressing the CTRL + Alt + T keys together, and then go to the location where you downloaded the file.
Then, execute the command “sudo dpkg -i CiscoPacketTracer_810_Ubuntu_64bit.deb” in the terminal to start the installation and continue by typing your root password.
In the Configuring Packet Tracer window, press Enter to accept the software license agreement. If you want more information, you can visit Cisco’s official website as specified in the license agreement.
After confirming the software license agreement, press Enter on the Yes option to accept the EULA terms.
The files with Deb extension in Linux systems are extracted from the archive and installed with the dpkg command. However, when trying to install Packet Tracer or any other program, you may find that dependent packages need to be installed.
When you extract the installation file of Packet Tracer and see that the required dependent packages are not installed, first press Y to confirm the necessary packages such as “libgl1-mesa-glx or libxcb-xinerama0-dev” to be downloaded and installed from the Internet by executing the “sudo apt install -f” command in the terminal and then press Enter.
sudo apt install -f
After the packages required for Packet Tracer 8.1 are downloaded from Linux servers and installed on your system, run the simulator software by executing the packettracer command in the terminal.
You can use the multi-user feature to connect the different networks that you have created in your Packet Tracer software with the software running on the same computer or on a different computer. So if you want to run the multi-user feature every time you start the application, click Yes.
In old versions of Packet Tracer, you had the right to register up to 3 projects without logging in to Cisco. However, in new versions, you now need to log in to your Netacad account.
In this step, when you try to log in to Netacad, the login screen where you enter your account information appears black or white and if you cannot log in, you can fix this problem by temporarily turning off your internet, or you should edit the cisco-pt.desktop file as a permanent solution.
To solve the login problem, open the terminal and execute the command “sudo nano /usr/share/applications/cisco-pt.desktop”. After viewing the contents of the cisco-pt.dektop file, change the Exec value as follows.
Change (Exec=/opt/pt/packettracer %f)
To (Exec=/opt/pt/packettracer --no-sandbox %f)
After clicking Cisco Networking Academy, type your registered email account and click Next.
Type your Netacad account password and click Log in.
To verify that you have installed the latest version of Packet Tracer, click Help / About to check the version number.
After copying the shortcut, execute the command “chmod +x cisco-pt.desktop” to make the file executable.
chmod +x ~/Desktop/cisco-pt.desktop
If the Packet Tracer desktop shortcut is still not active, right-click on it and click Allow Launching. After this process, you will see that the desktop shortcut is active.
How to Create a New Project
After installing Packet Tracer, you can now start creating new projects to prepare for your Cisco exams and to better understand network protocols.
As an example, let’s connect a desktop computer and a laptop computer with Cisco Switch.
After clicking the end-user devices from the device categories, you can see devices such as PC, Laptop, Server, phone, or TV. Add a PC and Laptop to the workspace.
To establish a network connection between the PC and Laptop, click on the Switch group from the network devices category and add the 2960 Switch to the workspace.
To connect the computers you have added to the Switch, click Automatically choose the connection type from the cabling category.
After connecting the computers to the Switch, click PC0 and click IP Configuration on the Desktop tab.
Type the static IP address 192.168.1.100 in the FastEthernet0 interface of PC0 and type 255.255.255.0 in the Subnet Mask field.
Likewise, configure Laptop0’s IP configuration as 192.168.1.200 / 255.255.255.0.
Open Command Prompt to ping PC0 from Laptop0.
Ping from Laptop0 to PC0 using the command ping 192.168.1.100 and check the network connection.
Likewise, ping Laptop0 using the ping 192.168.1.200 command in PC0’s command prompt and check the connection.
How to Uninstall Packet Tracer
If you want to uninstall the Packet Tracer software from your Ubuntu computer, you can do this with a single line command using the terminal.
Open Terminal and execute the sudo apt remove packettracer command and type Y and press Enter to confirm the removal of dependent packets that were automatically installed but no longer needed.
sudo apt remove packettracer
Execute the command below to delete the Cisco Packet Tracer desktop shortcut as well.
sudo rm -rf ~/Desktop/cisco-pt.desktop
Finally, after uninstalling a program in Ubuntu, execute the command below to delete the useless files of the packages received and prevent your system’s cache from growing.
sudo apt autoclean && sudo apt autoremove
Installing Old Versions
Packet Tracer 7.2.2
To install Packet Tracer.run, first open the terminal and change the permission of the file with the chmod command as follows. Then, start the installation process with the command ./PacketTracer-7.2.2-ubuntu-setup.run.
When the PT Setup Wizard window opens, click the Next button to start the installation.
In the Installation Folder window, continue without changing the /opt/pt/ location that is selected by default.
Accept the PT license in the License Agreement window and click the Next button.
Click the Install button to confirm that 307.58 MB of disk space will be used for the installation in the Ready to Install window.
You will be prompted for the authorized password for your sudo account as soon as you click the Install button. Here, type your root password for your sudo account and click the OK button.
Wait while the necessary files for Packet Tracer are copied.
After the Wizard completes the installation, click the Finish button to run the program.
You will get an error when you try to open the simulator by executing the packettracer command in Terminal. The reason for this error is dependent packages that are not installed on your Linux system. One of the must-have packages for Packet Tracer is Libpng. Now, run the commands below in the terminal to download and install Libpng.
This time, if you encounter the error (unable to install new version of ‘/usr/lib/x86_64-linux-gnu/libpng12.so.0’: No such file or directory), you should extract the deb package to the folder and add the relevant package to /opt/pt/bin/. To copy the libpng12.so.0 file;
After extracting the installation files to the folder, run the install file in the CPT72 folder with the command below to start the installation. Then press Enter to complete the installation and continue.
Execute the cd /opt/pt/bin/ command in the terminal to go to the installation location, and then execute the ./PacketTracer7 command to run the program. If the program cannot start, you need to install libpng12.
To run Packet Tracer 7.2.1, double-click on the file and click the Trust and Launch button in the window that opens.
Packet Tracer 7.1.1
Installing the 7.1.x (7.1.1) versions of Packet Tracer on your Linux computer is almost the same as the above steps. However, as we said, you may need to install different dependent packages for the program. Download and install the dependent packages for version 7.1.1 using the commands below.