TeamViewer is a remote connectivity cloud platform that enables secure remote access to any device, across platforms, from anywhere in the world. The platform can be used for online meetings, remote control, desktop sharing, and file transfer between computers.
In the following tutorial, you will learn how to install, open and use TeamViewer on your Ubuntu 20.04 desktop.
Table of Contents
- Recommended OS: Ubuntu 20.04 – optional (Ubuntu 21.04)
- User account: A user account with sudo or root access.
Updating Operating System
Update your Ubuntu 20.04 operating system to make sure all existing packages are up to date:
sudo apt update && sudo apt upgrade
Enable TeamViewer Repository
Import GPG Key
The first step is to open up your Ubuntu terminal (CTRL+ALT+T), then copy and paste the following command to import the GPG key, which is required to verify the authenticity of the packages from the repository:
wget -qO - https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | sudo apt-key add -
Example output if imported successfully:
The next step after importing the GPG key is to import the repository itself. From here, you can not only install TeamViewer but also receive future updates. To import the directory, run the following echo command in your Ubuntu terminal:
echo "deb http://linux.teamviewer.com/deb stable main" | sudo tee /etc/apt/sources.list.d/teamviewer.list
Once you have enabled the TeamViewer repository, you now need to update your packages list to reflect the changes using the apt update command:
sudo apt update
Next, install TeamViewer using the following command:
sudo apt install teamviewer
Type Y, then press enter key to complete installation.
Note, you may be asked the following:
Configuration file '/etc/apt/sources.list.d/teamviewer.list' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** teamviewer.list (Y/I/N/O/D/Z) [default=N] ?
Type N or Y depending on your decision; most would type N. Once done, press enter key to proceed.
Verify the installation and TeamViewer build by entering the following command:
TeamViewer 15.21.4 (DEB)
As you can see, TeamViewer is successfully installed and is version 15.21.4 at the time of the creation of this tutorial.
With the installation complete, you can run TeamViewer in a few different ways. First, while you are in your Ubuntu terminal, you can use the following command:
Alternatively, run the teamviewer command in the background to free up the terminal:
However, this isn’t practical, and you would use the following path on your Debian desktop to open with the path: Activities > Show Applications > TeamViewer. If you cannot find it, use the search function in the Show Applications menu if you have many applications installed.
The first time you open TeamViewer, you will see the following window advising you to read the EULA and accept it.
Next, you will arrive at the default TeamViewer application screen as below:
How to Use TeamViewer
Using TeamViewer is quite straightforward. You are given a connection ID, and so is the opposite computer, along with a password.
For example, you want to connect from computer B to computer A. You will need computer A connection i.d located under TeamViewer Allow Remote Control in the top center location; the Your ID 374 392 364 will be used for the tutorial.
On the secondary computer, named computer B, use the connection ID of computer A which in the tutorial case is 374 392 364 in the Insert partner ID field, and click connect.
Still, on Computer B, the connection will establish to Computer A. A new window advising the connection session request will appear and prompt you to enter computer A’s (partner i.d you connecting to) password. Enter the password and press the Log on button.
Next, if everything has worked correctly, you will be remotely connected in a TeamViewer session, and that’s it.
Example of session:
How to Uninstall TeamViewer
To remove the TeamViewer software from your Ubuntu system, run the following command in your terminal:
sudo apt autoremove teamviewer
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: libminizip1 libxcb-xinerama0 teamviewer 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. After this operation, 250 MB disk space will be freed. Do you want to continue? [Y/n]
Type Y, then press enter key to proceed with the uninstallation. Note, all dependencies will also be uninstalled that are no longer needed.
Then for complete removal, delete the repository.
sudo rm /etc/apt/sources.list.d/teamviewer.* sudo apt update
Comments and Conclusion
In the tutorial, you have learned how to install, launch and connect to a remote computer using TeamViewer on your Ubuntu 20.04 operating system. Overall, TeamViewer is perhaps one of the easiest and popular solutions for many to have on their desktops to remote login to other people’s systems for all sorts of reasons. One is primarily to help with support issues. TeamViewer is free for individual use. However, any commercial use will require a license to be purchased.