TeamViewer is a popular software for remote access over the Internet to and from your system for Linux, macOS, and Windows. This application can connect to any personal computer or server, so you can use it as if you were sitting right in front of it. TeamViewer works as a remote control for your partner’s computer system and allows you to establish a remote session. Both you and your partner need to have this little application installed and running, even if you’re not an administrator. All you need to know is your partner’s ID and password to control their computer.

In this article, we will explain how to install the TeamViewer application on your Ubuntu system, both from the user interface and from the command line.

The commands and procedures mentioned in this article were run on an Ubuntu 20.04 LTS system. The same instructions can also be used for the older Ubuntu 18.04 version.

Installation of TeamViewer Through Ubuntu Command Line

If you prefer the command line over the graphical interface, follow these steps in order to install TeamViewer through the Ubuntu Terminal application:

Step 1: Download and add the TeamViewer repository key

Open the Terminal either through the system Dash or the Ctrl Alt T shortcut.

First, you need to download the TeamViewer repository key as we will install TeamViewer through its official website. Run the following command in order to download the key:

$ cd /tmp
$ wget https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc

How to Install TeamViewer on Ubuntu 20.04 LTS Desktop linux shell ubuntu

The .asc key file will be downloaded to your Downloads folder by default.

Please add this key to your system through the following apt-key command as sudo:

$ sudo apt-key add TeamViewer2017.asc

<img data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-50.png624ff79ed7f1a.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="61" loading="lazy" src="data:image/svg xml,” width=”457″>

Step 2: Add the TeamViewer repository

Run the following command to add the official TeamViewer repository from where we will be installing TeamViewer.

For TeamViewer Stable version:

$ sudo sh -c 'echo "deb http://linux.teamviewer.com/deb stable main" >> /etc/apt/sources.list.d/teamviewer.list'

For the TeamViewer Preview version:

$ sudo sh -c 'echo "deb http://linux.teamviewer.com/deb preview main" >> /etc/apt/sources.list.d/teamviewer.list'

We are adding the repository for the TeamViewer Preview version in this tutorial.

<img alt="Add Teamviewer repository" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-51.png624ff79f02722.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="39" loading="lazy" src="data:image/svg xml,” width=”732″>

Now, enter the following command as root in order to update your system’s repository index with that on the internet:

$ sudo apt update

<img alt="Update Ubuntu package list" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-52.png624ff79f1dde3.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="214" loading="lazy" src="data:image/svg xml,” width=”562″>

Step 3: Install TeamViewer through the apt command

Finally, run the following command as sudo in order to install TeamViewer to your system:

$ sudo apt install teamviewer

<img alt="Install TeamViewer with apt" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-53.png624ff79f3b5ea.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="271" loading="lazy" src="data:image/svg xml,” width=”730″>

The system will prompt you with a Y/n option in order to continue the installation procedure. Please enter Y and hit Enter to continue. TeamViewer will then be installed on your system.

Step 4: Launch TeamViewer

If you wish to launch TeamViewer through the command line, enter the following command in your Terminal:

$ teamviewer

Uninstall TeamViewer

In order to uninstall TeamViewer from your system without removing any configurations you might have made, enter the following command as sudo:

$ sudo apt remove teamviewer

<img alt="Uninstall TeamViewer on the shell" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-54.png624ff79f5f1c3.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="335" loading="lazy" src="data:image/svg xml,” width=”732″>

The system will prompt you with a Y/n option in order to begin the uninstall procedure. Please enter Y and hit Enter to begin. TeamViewer will then be removed from your system.

If you have made any configurations, you can remove TeamViewer and all those by using the following command:

$ sudo apt purge teamviewer

TeamViewer Installation on Ubuntu Through Graphical Installer

For a person who does not want to open the Command Line much, installing software present in the Ubuntu repository through the UI is very simple. For Teamviewer, we will be downloading the .deb package and then installing it through the Ubuntu Software Install.

You can download the official .deb installation package from the following website:

https://www.teamviewer.com/en/download/linux/

Scroll down on the page and click on the download link for Ubuntu, Debian (stable version) or TeamViewer Preview version.

<img alt="Download TeamViewer" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-55-1024×437.png" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="320" loading="lazy" src="data:image/svg xml,” width=”750″>

Save the file on your system, which will be saved to the Downloads folder by default.

Open the Downloads folder where you will be able to see the TeamViewer .deb package.

<img alt="Open package with Software Installer" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-56.png624ff79f8a98c.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="437" loading="lazy" src="data:image/svg xml,” width=”651″>

Right-click on the package and select the Open with Software Install option from the menu. This will open the following installer:

<img alt="Install TeamViewer" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-57.png624ff79fc1248.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="530" loading="lazy" src="data:image/svg xml,” width=”973″>

Click the Install button on the above window. The following authentication dialog will display for you to provide the authentication details for a sudo user as only an authorized user can install software on Ubuntu.

<img alt="get admin privileges" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-58.png624ff79fda307.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="236" loading="lazy" src="data:image/svg xml,” width=”360″>

Enter your password and click the Authenticate button. After that, the installation process will begin, displaying a progress bar as follows.

<img alt="Installing the software" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-59.png624ff79ff2e36.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="550" loading="lazy" src="data:image/svg xml,” width=”969″>

TeamViewer will then be installed to your system and you will get the following message after a successful installation:

<img alt="Installation finished" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-60.png624ff7a0261e0.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="535" loading="lazy" src="data:image/svg xml,” width=”970″>

Launch TeamViewer

You can launch TeamViewer any time you want by entering ‘TeamViewer’ in the Ubuntu Dash or access it from the Applications list.

<img alt="Launch TeamViewer" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-61.png624ff7a0400d0.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="219" loading="lazy" src="data:image/svg xml,” width=”376″>

<img alt="TeamViewer started on Ubuntu" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-62.png624ff7a046dc5.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="553" loading="lazy" src="data:image/svg xml,” width=”905″>

TeamViewer will open in the following view; through which you can connect or be connected to a remote computer.

Uninstall

Uninstalling Teamviewer through the UI is fairly simple. On your Ubuntu desktop Activities toolbar, click the Ubuntu Software icon.

<img alt="Ubuntu Software Center" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/ubuntu-software-center-icon.png" ezimgfmt="rs rscb10 src ng ngcb10" height="60" loading="lazy" src="data:image/svg xml,” width=”62″>

The Ubuntu Software manager will open in the following view:

<img alt="Ubuntu Software center" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-64.png624ff7a081a65.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="497" loading="lazy" src="data:image/svg xml,” width=”696″>

Click on the Installed tab and locate the TeamViewer entry from the list of installed software.

<img alt="Select TeamViewer in installed software list" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-65.png624ff7a0ac6d5.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="614" loading="lazy" src="data:image/svg xml,” width=”726″>

Click the Remove icon against the TeamViewer entry.

<img alt="Click on the remove button" data-ezsrc="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-66.png624ff7a0c32cd.jpg" data-ez ezimgfmt="rs rscb10 src ng ngcb10 srcset" height="171" loading="lazy" src="data:image/svg xml,” width=”613″>

A dialog box will ask you if you are sure that you want to remove the software from your system. Please click the Remove button to uninstall TeamViewer. An authentication dialog is displayed where you need to provide authentication credentials for a sudo user, as only an authorized user can install software on Ubuntu. Enter your password and click the Authenticate button. After that, the uninstallation process will begin, which will remove TeamViewer from your system.

By following the steps described in this article, you can learn how to download and install the latest version of TeamViewer on your Ubuntu system, both from the graphical user interface and the command line.