TeamViewer is a remote access and remote control computer software. The following tutorial will demonstrate how to import the DNF repository to install TeamViewer on Rocky Linux 9 and the Rocky Linux 8 series using cli commands to ensure you have the latest updated version at all times.
What is TeamViewer? What does it do?
TeamViewer provides a convenient and secure solution for remote access, control, and support of computers and mobile devices. Using TeamViewer, you can access a computer or mobile device anywhere in the world as if you were there in person. With features such as file transfer, chat, data exchange, and more, TeamViewer enables you to provide technical support without even being onsite. It also supports an impressive range of supported platforms, including Windows, macOS, Android, iOS, and more. All these features make TeamViewer one of the most comprehensive remote access solutions available today.
Recommended Steps Before Installation
Before you continue, your system is advised to ensure all existing packages are up to date to avoid system conflicts.
sudo dnf upgrade --refresh
Install TeamViewer
The first step is importing the TeamViewer repository and using a text editor such as nano to create and open the file.
sudo nano /etc/yum.repos.d/teamviewer.repo
Next, copy and paste the following.
[teamviewer]
name=TeamViewer - $basearch
baseurl=https://linux.teamviewer.com/yum/stable/main/binary-$basearch/
gpgkey=https://linux.teamviewer.com/pubkey/currentkey.asc
gpgcheck=1
repo_gpgcheck=1
enabled=1
type=rpm-md
I have sometimes seen people copy and paste incorrectly, and somehow the $basearch is removed from the above. Ensure this is copied, or else you will get a 403 error.
Now save the file for users using the nano text editor as the tutorial did with CTRL+O and exit with CTRL+X.
Next, proceed with installing TeamViewer using the following command.
sudo dnf install teamviewer -y
For new users to Linux, you will be prompted to import the GPG key and type Y to proceed when you see this prompt; ensure you do this.
Example:
Importing GPG key 0x0C1289C0:
Userid : "TeamViewer GmbH (TeamViewer Linux 2017) <[email protected]>"
Fingerprint: 8CAE 012E BFAC 38B1 7A93 7CD8 C5E2 2450 0C12 89C0
From : https://linux.teamviewer.com/pubkey/currentkey.asc
Is this ok [y/N]:
Once installed successfully, you should see a similar output in your terminal.
Installed:
libXScrnSaver-1.2.3-10.el9.x86_64 minizip1.2-1.2.11-24.el9.x86_64
teamviewer-15.37.3-0.x86_64 xcb-util-image-0.4.0-19.el9.x86_64
xcb-util-keysyms-0.4.0-17.el9.x86_64 xcb-util-renderutil-0.3.9-20.el9.x86_64
xcb-util-wm-0.4.1-22.el9.x86_64
Complete!
Rocky Linux 9 – troubleshooting GPG import.
Rocky Linux 9.xx users will notice the following error when importing the GPG key. Rocky Linux 8.xx users should not receive this error.
warning: Signature not supported. Hash algorithm SHA1 not available.
Key import failed (code 2). Failing package is: teamviewer-15.37.3-0.x86_64
GPG Keys are configured as: https://linux.teamviewer.com/pubkey/currentkey.asc
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Please note that Rocky Linux 8 users do not need to do the above unless the error appears; this is only present in EL9 onwards.
The easiest method to fix this is to change the crypto policies and set the policy to LEGACY.
sudo update-crypto-policies --set LEGACY
It is highly recommended you reboot your system. You usually do not need to, but if you encounter issues, do a restart.
reboot
Launch TeamViewer
Launching can be done in a few ways now that you have the software installed.
Using the command line terminal, you can open it quickly by using the following command.
teamviewer
The best way to use TeamViewer for desktop users that prefer not to use the command line terminal is to open the GUI of the application by following the path.
Activities > Show Applications > TeamViewer
Example:
Most seasoned Rocky Linux and any Linux user know that Wayland is not supported. You will notice a message saying Wayland is not supported when you launch the TeamViewer GUI.
Example:
Sadly, the planned support for Wayland is not going to come soon. It has already been in discussion for a few years, so I would expect it to go in the next decade, so for now, you will need to log out and log back in using the X11 display driver.
Example:
Once open, you can begin using TeamViewer using Xorg, and you can start connecting to a remote PC by getting its address or giving another user your own
Example:
For novice users or users new to computing, remember to proceed with caution with who you give your details. This goes for any software of this type, and it is highly recommended to use the refresh button on the password to generate a new one every time someone externally has finished.
Additional Commands & Tips
Update TeamViewer
The software should update itself with your system packages for desktop users using the DNF package manager. For users who want to check manually, use the following command in your terminal.
sudo dnf update --refresh
Remove (Uninstall) TeamViewer
When you no longer want the video conference software installed on your system, use the following command to remove it.
sudo dnf autoremove teamviewer
Remove the repository if you plan not to re-install the software again.
sudo rm /etc/yum.repos.d/teamviewer.repo
Conclusion
By now, you should understand how to install TeamViewer on Rocky Linux using the RPM file and installing the latest version. If you run into any GPG key errors, remember to fix them before proceeding. Lastly, don’t forget to change to X11 if you are using Wayland!