Ubuntu Server 24.04.1 with added desktop - cannot get VNC working....

Bo Berglund bo.berglund at gmail.com
Mon Feb 3 17:47:16 UTC 2025


On Fri, 31 Jan 2025 22:30:59 -0500, Sam Varshavchik <mrsam at courier-mta.com>
wrote:

>Bo Berglund writes:
>
>> [ snippety ]
>
>I do not systemd to run vnc server on Ubuntu 24.04. I start tigervnc's  
>vncserver by sshing in after each reboot and running "vncserver". It's  
>boring, but it works. I use XFCE desktop.
>
>Here's my ~/.vnc/xstartup:
>
>#!/bin/bash
>unset SESSION_MANAGER
>unset DBUS_SESSION_BUS_ADDRESS
>export XAUTHORITY="$HOME/.vnc/.Xauthority";
>xhost +local:
>xset b off
>cd $HOME
>startxfce4
>
>That's it. Can't get any more simpler than that.

Thanks,
I was thinking on those lines when I foune that using display :2 would work if
done manually. So I created a script to start or shut down the server depending
on argument and this works fine when run manually.
So I am thinking tyaht by adding the script to cron to start on boot after say
60 seconds delay would be OK.

It is a workartound but if it works then why not?


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list