![]() ![]() I think you still need to be logged in to the desktop on the actual Ubuntu machine to connect with VNC after this. For dconf to be able to write it needs access to XWindows, so that's why the export DISPLAY part is needed. The quoting is important for any of the string settings (single ticks inside quotes). Read -e -p "VNC Password: " -i "ubuntu" passwordĭconf write /org/gnome/desktop/remote-access/enabled trueĭconf write /org/gnome/desktop/remote-access/prompt-enabled falseĭconf write /org/gnome/desktop/remote-access/authentication-methods ""ĭconf write /org/gnome/desktop/remote-access/require-encryption falseĭconf write /org/gnome/desktop/remote-access/vnc-password \"\'$(echo -n $password | base64)\'\"ĭconf dump /org/gnome/desktop/remote-access/ I was able to set a fresh Ubuntu 16.04 install from a remote ssh connection with the following script: If successful at this step, you should now be viewing and controlling the host machine's desktop from your client machine through an SSH tunnel. When asked for the VNC password, enter the passphrase you previously entered into the host machine. On the client machine, when asked for 's password, enter it to create the SSH tunnel. Point your Desktop Client to your non-standard SSH port.Fill in your IP address where it says Server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |