In this tutorial, you will learn how to install Teamviewer on Ubuntu.
Teamviewer is one of the best solutions when it comes to remote control a device from anywhere in the world, via the internet. Teamviewer supports Linux, and other Operating Systems such as Windows, MacOS, Android and IOS.
Teamviewer can be installed in Ubuntu via the official Teamviewer repository.
In this tutorial also we'll be installing Teamviewer via terminal, by using the official Teamviewer repository.
Installing Teamviewer via its own repository allows you to receive automatic updates whenever a new version is released, without having to download the teamviewer package manually.
Install Teamviewer on Ubuntu
Step 1 - Update your machine
Before we start with this tutorial, we need to update packages in our system, to ensure that we can install Teamviewer without issues.
So to update Ubuntu, we can do so by using apt package manager.
sudo apt update
The command above, will check for updates but it won't automatically upgrade packages, to check for updates and automatically upgrade packages, then you need to run the commands below.
sudo apt update && apt upgrade -y
Step 2 - Add Teamviewer Key
In this step, we need to add Teamviewer Key on the system, to ensure that we can download Teamviewer package.
Adding teamviewer key is quite simple, and it can be done by using curl.
To add Teamviewer key on your system, simply run the following command.
curl -fSsL https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/teamviewer-key.gpg > /dev/null
Step 3 - Setup Teamviewer Repository
Teamviewer key should be now added in your system, which means, you need now to create Teamviewer repository.
To create teamviewer repository file in the sources.list.d directory, you can do so by running the command below.
echo "deb [signed-by=/usr/share/keyrings/teamviewer-key.gpg] https://linux.teamviewer.com/deb stable main" | sudo tee /etc/apt/sources.list.d/teamviewer.list
Step 4 - Update package database
Teamviewer repository file is now created in
/etc/apt/sources.list.d/teamviewer.list , in order to use the newly added repository in your system, you need to update the package database, so that Teamviewer repository can be used to download Teamviewer.
To do so, simply run the command below.
sudo apt update -y
Once the update process starts, you should see the Teamviewer repository in the output, this means that Teamviewer repository is now active, and you can proceed to install teamviewer.
Step 5 - Install Teamviewer
Now that Teamviewer key and its repository is activated and ready to be used, you can proceed to install Teamviewer.
To install teamviewer, you can do so by using the
apt package manager.
To do so, simply run the command below.
sudo apt install teamviewer
Step 6 - Launch Teamviewer
Teamviewer should be now installed in your system, and you can start using it.
You can launch teamviewer by using the terminal, or by using GUI.
To launch Temviewer via terminal, run the command below.
To launch Teamviewer by using GUI, you can do so by clicking Activities> Show apps> TeamViewer
Before Teamviewer GUI starts, you will be asked to accept EULA and DPA, in order to use Teamviewer.
Simply check the box "I accept the EULA and DPA", then click "Continue".
And Teamviewer GUI will start, now you should be able to use Teamviewer on your Ubuntu system.
Uninstall Teamviewer on Ubuntu
To uninstall Teamviewer, you can easily do so by using the
remove command via apt package manager.
To do so, simply run the following.
sudo apt remove teamviewer
Once teamviewer package is fully removed from your system, proceed to remove Teamviewer repository and the gpg key.
To remove Teamviewer repository, run the command below.
sudo rm /etc/apt/sources.list.d/teamviewer.list
To delete Teamviewer GPG key, simply run the following.
sudo rm /usr/share/keyrings/teamviewer-key.gpg
By now Teamviewer package, the repository file and its GPG key should be removed from your machine, which means whenever you update your system, the system won't download teamviewer package or any teamviewer updates on your system.
In this tutorial, you learned how to install and uninstall Teamviewer on Ubuntu.
You should be able to install Teamviewer on any of the supported Ubuntu versions by following our tutorial.
The difference of using Teamviewer repository to install Teamviewer vs downloading Teamviewer binary file manually, is that when you install Teamviewer via repository, your system can get teamviewer updates when released.
When Teamviewer is installed via the binary file manually, you won't get updates, so you would need to manually install the new Teamviewer version in this case.