Score:2

Remmina VNC - how to automatically accept connection

cn flag

I am trying to connect remotely from an Ubuntu 22.04 desktop to another Ubuntu 22.04 desktop via the internet through VNC on Remmina. The connection works finely, but in order to connect on the connected computer I have to click "accept" which I do not want, because the computer is unattended. How can I enable automatic acceptance?

ar flag
Have you installed and set up a VNC server on the remote desktop or are you using the legacy option of built in Gnome Remote Desktop feature?
Tintin avatar
cn flag
I am not aware of a VNC server in particular. I am applying the sharing options in the Ubuntu 22.04 settings.
Score:2
ar flag

Setup Gnome Remote Desktop with a password

Note: This has nothing to do with the Remmina on the local computer. You have to set it up in the remote computer.

This option is somewhat hidden. Go to the system Setup > Sharing on the left panel >

  1. Turn on Sharing toggle at the right side of the top bar.
  2. Click on the Remote Desktop to open the Remote desktop window.
  3. Make sure the toggle the remote desktop connection is on.
  4. Check the box for Enable legacy VNC Protocol
  5. Click on the three dots next to the Enable legacy VNC Protocol
  6. Click on the radio button Require a Password
  7. Make sure the the Remote Control toggle is on.

See the picture below:

enter image description here

The username and password will be at the bottom of the screen, not shown in the picture. You may change them.

I strongly advice everyone to set the remote access password to something long and random particularly if the remote connection is over the internet. You don't want some hacker to guess and get into your remote computer.

Save the usename and password in Remmina

If you don't want Remmina to ask for the username and password every time you try to connect you may save these within Remmina's Basic Tab. These are what you set in the Remote Desktop settings and can be different from your login username and password.

Hope this helps

Score:1
us flag

On the remote computer you set the vino-server option for this.

Using dconf-editor go to /org/gnome/desktop/remote-access/ and toggle off the prompt-enabled setting.

Then restart vino-server

Tintin avatar
cn flag
how do I restart the vino-server?
Tintin avatar
cn flag
Also, it seems to ignore the prompt-disabling, even after a relog
ar flag
Note, `vino` is not installed by default in Ubuntu 22.04. VNC desktop sharing is handled by `gnome-remote-desktop`'s legacy toggle in the System Setup app. By default `gnome-remote-desktop` uses the RDP protocol (without installing `xrdp`).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.