Ubuntu – Vino VNC Server unable to start on startup

gnomeremote desktopserversshvnc

So I am trying to get the Vino VNC Server to startup on boot, meaning I don't have to login to have the VNC Server start. I am on Ubuntu GNOME 15.04, and I have already added

/usr/lib/vino/vino-server

to 'Startup Applications'. However, the VNC Server still won't start as soon as I boot up. I have to login in order for the VNC Server to start. What should I do? Do I need to create a systemd unit file? If so, how do I do it?

Edit: This question is different from this becuase I need Vino Server to work, while that guide suggests x11vncserver.

Best Answer

create a systemd unit or service to run vino server at startup

  1. cd /etc/systemd/system/
    
  2. sudo vim vinostartup.service
    
  3. [Unit]
    Description = description about the service
    After = network.target
    [Service]
    ExecStart = /usr/lib/vino/vino-server
    [Install]
    WantedBy = multi-user.target
    
  4. Enable the service

    sudo systemctl enable vinostartup.service
    
  5. Verify it using below command vinostartup.service will be there

    ls multi-user.target.wants/
    
  6. If you don’t want to wait until next boot (it’s already enabled) we can start the service

    sudo systemctl start vinostartup.service
    
Related Question