I have a server I prepped here in the office and got everything working. I set up auto-login followed by an immediate lock-screen so that vino would start automatically after a reboot. I took the rack out to an ISP to COLO the server, -without- a monitor/keyboard/mouse, and everything still works except vino does not start up now that it is headless. Auto-login is still working. w shows:

mylogin      :0       :0               14:32   ?xdm?  41.02s  0.01s /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubu

But nothing in the listeners for vino-server. netstat -anp shows:

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0*               LISTEN      1496/mysqld         
tcp        0      0    *               LISTEN      3314/apache2        
tcp        0      0 *               LISTEN      1309/systemd-resolv 
tcp        0      0    *               LISTEN      6582/sshd           
tcp        0      0  *               LISTEN      2722/master         
tcp        0      0   *               LISTEN      3314/apache2        
tcp        0      0*               LISTEN      1894/xinetd         

I'd like to make it possible to turn vino-server on and off at will via the command line like we've done in the past with VNC server. My plan was to use ufw to firewall/un-firewall port 5900 as needed - so just getting vino-server running would solve my problem.

I tried running /usr/lib/vino/vino-server --display=:0 from a secure shell session, but it appears that only works from session with access to DBUS. - Any help is appreciated.


Found it here: https://wiki.archlinux.org/index.php/Vino#Running_on_a_headless_server

Just had to create ~/.config/autostart/vino-server.desktop with this:

[Desktop Entry]
Name=Vino VNC server

And then reboot the server.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.