I am trying to configure TigerVNC Server to run on Ubuntu GNOME 16.04.3. I installed the latest version (1.8) of TigerVNC using this post. If I start a server using:
vncserver :4 -geometry 1920x1080 -depth 24 -nolisten tcp -localhost
it works perfectly. I can connect to display 4 over SSH, and have full access to my computer, without unlocking the real (physical) displays in my lab. Also, I can tune the geometry to match my laptop's display, so everything is perfect.
Then I tried to get the server to start at startup, using systemd
, and I found this post to help me. However, I am running the GNOME desktop, and the settings from the blog are for Unity. I do not have Unity installed on my machine, and I would prefer to avoid it.
How do I modify steps 7 and 8 in that post to use GNOME desktop instead of Unity? I know that it does not work if they are skipped, as I just get a black screen when I connect remotely.
In fact, if there is another way to ensure vncserver
is started at startup, that will be accepted as answer as well. TigerVNC does install a script called vncserver
in /etc/init.d/
, but I am not able to launch it using update-rc.d