How to Install TeamViewer Remote Desktop on Ubuntu 24

In this tutorial, I will show you how to install TeamViewer on Ubuntu 24 so you can access your computer remotely.

Download and Install TeamViewer on Ubuntu 24

First, navigate to the TeamViewer Linux download page. Download the TeamViewer full client. Make sure to download the 64-bit package marked for Ubuntu/Debian.

Download TeamViewer for Ubuntu
Download TeamViewer for Ubuntu

After the download is finished, open a terminal and install the gdebi-core package:

sudo apt update
sudo apt install gdebi-core

After installing gdebi-core, navigate to your download folder and install the downloaded TeamViewer .deb package using the gdebi command.

sudo gdebi teamviewer_15.64.3_amd64.deb

Make sure to replace the .deb package name with the one you downloaded.

install teamviewer on ubuntu 24

That covers the basic installation. Now, let's talk about unattended remote access.

Fix the Wayland Unattended Remote Desktop Issue

If you try to connect to your Ubuntu 24 machine remotely at this point, you might find that the desktop doesn't appear.

This is because Ubuntu 24 uses Wayland as its default display server, and TeamViewer currently doesn't fully support unattended remote desktop with Wayland.

To Fix This Problem, You Have to Switch to the X11 Display Server

For unattended remote access, we need to switch to the X11 display server.

First, log out from your current user session. Then, on the login screen, after selecting your user, you'll see a small gear icon in the bottom right corner.

TeamViewer X11

Click the gear icon, select Xorg, and log in to your user account.

With X11 as your display server, you should now be able to access your Ubuntu desktop remotely without any issues.

TeamViewer Remote Desktop

Update TeamViewer

To update TeamViewer, run the following command:

sudo apt install teamviewer

Alternatively, you can also download the latest .deb package from teamviewer.com and install it using the gdebi command to update TeamViewer to the latest version.

Uninstall TeamViewer

To uninstall TeamViewer, first remove the TeamViewer package using the apt purge command:

sudo apt purge teamviewer

Then, run the apt autoremove command to remove any dependency packages that are no longer required.

sudo apt autoremove