$ read -e -p "VNC Password: " -i "ubuntu" VNCPASSWORD $ dconf write /org/gnome/desktop/remote-access/enabled true $ dconf write /org/gnome/desktop/remote-access/authentication-methods " ['vnc']" $ dconf write /org/gnome/desktop/remote-access/prompt-enabled false $ dconf write /org/gnome/desktop/remote-access/require-encryption false $ dconf write /org/gnome/desktop/remote-access/vnc-password "'$ (echo -n $VNCPASSWORD | base64)'" $ sudo service lightdm restart
Full Answer
How do I enable remote access in dconf editor?
Launch dconf-editor. $ dconf-editor Navigate to org->gnome->desktop->remote-accesson the left panel of dconf-editor. Then you will see various desktop sharing options. Most importantly, click on enabledto activate desktop remote access. Besides this, you can customize other options.
How does the VNC start the GNOME session?
The VNC server starts the GNOME session when a remote user logs in. Multiple users can connect to the VNC server at the same time. Remote clients must enter this password when connecting to the desktop on the server.
How to enable desktop remote access in Linux?
Navigate to org->gnome->desktop->remote-accesson the left panel of dconf-editor. Then you will see various desktop sharing options. Most importantly, click on enabledto activate desktop remote access. Besides this, you can customize other options. For example, you can enable VNC password authentication by changing the following fields:
How do I enable VNC desktop sharing in Linux Mint Cinnamon?
The latest Linux Mint Cinnamon desktop comes with vino-serverpre-installed for VNC desktop sharing, but it's reported that desktop sharing configuration menu is missing. An alternative way to configure vino-serverand enable desktop sharing is to use dconf-editor's graphical interface, as described in the following.
What is dump command?
The dump command is just there to confirm all the settings took hold, you don't really need that.
Can you change settings in the absence of a GUI?
In the absence of a GUI, the settings must be changed using gsettings. Something like
Can I use Vino to connect to GNOME?
It's similar to x11vnc, but I find it much easier to set up (though I'm typically using a GUI). With Vino enabled, gnome is set up to accept vnc connections for the active session (the one that is currently logged in), for every boot. Any windows or applications open on the screen will be viewable in the vnc connection.
Can you run a vnc script in GNOME?
You can place this script in startup programs in gnome, so that it could be run automatically when the user logins. Please note that this script is not secure as session PASSWORD variable is clearly seen to anyone who could read the file and anyone knowing password can connect to vnc session (password in this case is 8 symbols word asked when you are connecting remotely). If you want more secure connection search how to do vnc ssh tunneling.
What is a VNC session?
This method enables remote access on the client and the server using graphical GNOME applications. It configures a Virtual Network Computing (VNC) session so that only a single user can connect to the desktop on the server at a given time.
What is a user logged into in GNOME?
A user is logged into the GNOME graphical session on the server.
What affects the behavior of a VNC server?
Several configuration files affect the behavior of the VNC server. You can configure the user mapping and various global options.
How to enable screen sharing in GNOME?
Navigate to the Sharing menu: Click Screen Sharing . The screen sharing configuration opens: Click the switch button in the window header to enable screen sharing: Select the Allow connections to control the screen check box. Under Access Options, select the Require a password option.
Can you remotely connect to a RHEL server?
You can remotely connect to the desktop on a RHEL server using graphical GNOME applications. Only a single user can connect to the desktop on the server at a given time .
Can you export a VNC session in Red Hat?
Red Hat recommends that you do not configure the root user to export a VNC session. A root VNC session is unsafe and certain elements of the session might not work as expected.
Can a VNC client connect to a server?
Any VNC client application can connect to a server configured using this method.
jamesfreeman959 commented on May 21, 2020
I am trying to write a playbook to set the VNC password using dconf for a new server build. It works if I use the dconf CLI tool in the shell, but when I attempt to replicate this in a playbook using the Ansible dconf module, I receive an error about the value I am writing.
ansibullbot commented on May 21, 2020
cc @MorrisA @azaghal @bcoca @d-little @flynn1973 @gforster @kairoaraujo @marvin-sinister @mator @molekuul @ramooncamacho @wtcross click here for bot help
jamesfreeman959 commented on May 2
All - thanks for the prompt! The original project I was working on that raised this was abandoned so my test-bed for this isn't up and running right now. I'm going to close the issue as requested as it seems to be ok for everyone so I'm pretty confident if I test it it'll work ok.
How to remotely access a desktop in dconf?
Navigate to org->gnome->desktop->remote-accesson the left panel of dconf-editor. Then you will see various desktop sharing options.
What is a notification on connect?
notify-on-connect:shows a desktop notification when vino-serverreceives a connection request.
Does Linux Mint Cinnamon have a VNC server?
The latest Linux Mint Cinnamon desktop comes with vino-serverpre-installed for VNC desktop sharing, but it's reported that desktop sharing configuration menu is missing.