13

I am trying to use TeamViewer to remote into my Ubuntu-based server, so that I could manage it when I am away. The problem is, every time I try to remote into the server, I get this message displayed:

enter image description here

The problem with this is that I have to be present next to the server to be able to get rid of it and start the TeamViewer session. Is there a way to get rid of it for good, so that I could remote into the server without being next to it? Thanks in advance. I assume this is some stupid privacy or security thing, but I didn't find anything about it online.

user68186
  • 37,461

5 Answers5

11

So the problem with a default install of Ubuntu is the Wayland GNOME requires a user at the desktop to accept the TeamViewer connection. Of course that doesn't work for Unmanned Kiosks or IOT machines.

To change to the X11 GNOME, you need to make a simple change to config file. Navigate to /etc/gdm3/custom.conf

In that config file look for this line:

# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false

All you have to do is delete the # to uncomment the WaylandEnable=false. Then restart the computer and connect with TeamViewer.


That sounds simple, but if you have just installed the default Ubuntu, you don't have permission to make changes to this file.

If you are familiar with a terminal file editor, such as vim, simply open this file using the editor with sudo:

sudo vim /etc/gdm3/custom.conf

Otherwise, first you must give yourself sudo permission for this folder. To give yourself permission, open the terminal and type this:

sudo chmod a+rwx /etc/gdm3

When you run that line it will ask for your password. Once complete, you should be able to save the change to the custom.conf file mentioned above.

ideaztech
  • 211
5

Ok so I found out that Ubuntu's windowing sistem, Wayland, and TeamViewer don't like each other. To use TeamViewer on Ubuntu 22.04, you need to use X11. Now everything is working fine.

0

Using the GUI 'Software & Updates', click on 'Additional Drivers', switch there from the proprietary NVIDIA driver to the X.Org X server - Nouveau. This will change the use of Wayland to use of Xorg without resorting to the command line for editing the config file.

0

I posted a simpler solution here:

Just figured this out. I used ssh to login to Ubuntu then did:

sudo nano /etc/gdm3/custom.conf

In this file I changed:

[daemon]
AutomaticLoginEnable=False

to:

[daemon]
AutomaticLoginEnable=True

I saved the file then did:

sudo service gdm3 restart

I am now able to login to Ubuntu with TeamViewer.

parsley72
  • 382
0

Use rustdesk, it will keep your monitor preferences with wayland (if you have multiple monitors, it works only for one).