Ubuntu – How to get vino VNC server to start on startup in Ubuntu 18.04.1

18.04vinovnc

I have a headless Ubuntu PC running 18.04.1 Desktop. If I plug a monitor into it, Vino starts automatically and I can VNC into the box. I did set the "Sharing" item in the control panel to share the screen.

I followed the instructions at How to use Ubuntu 18.04 on VNC without display attached? to install the dummy monitor.

If I ssh into the box and manually start Vino with

/usr/lib/vino/vino-server --display=:0

then it works fine and I can VNC. How can I make it work without needing to do this?

Best Answer

After startup, click the square array of dots in the lower left of the screen.

Type 'startup applications' (no quotes) into the search box that appears at the top of the screen. Clock on the resulting icon.

Click Add at the right of the box, Type 'start vino' in the Name box, and paste /usr/lib/vino/vino-server into the command box.

Click Add at the bottom of the box.

Close the app.

You're done.

Related Question