The vncserver service is a template unit: `vncserver@$X_DISPLAY` (eg. `vncserver@:1`). The TigerVNC Archwiki article [1, 2] has details on on how to set up and start the service or use `x0vncserver` to access an existing X session. (still good if you're not on Arch) -- set up the config and enable the service for a specific server.
According to the devs the service is a system (root) unit because creating a DE session needs to set up the session scope, which cant be done from a normal shell [2]. Multiple users can use different X displays and instances of the service (`vncserver@:1`, `@:2`, ...) Remote wayland is a much different beast and depends on what DE the target has [4] since that is done through each individual compositor, though you can use Waypipe for individual programs like X-forwarding. [1] https://wiki.archlinux.org/title/TigerVNC#Running_vncserver_for_virtual_(headless)_sessions [2] https://wiki.archlinux.org/title/TigerVNC#Accessing_vncserver_via_SSH_tunnels [3] https://github.com/TigerVNC/tigervnc/issues/1096#issuecomment-694248552 [4] https://wiki.archlinux.org/title/Wayland#Remote_display On Tue, Nov 7, 2023 at 2:16 PM Tomas Kuchta <[email protected]> wrote: > Anyone can share their working setup experience with tiger VNC server these > days? > > I guess that my experience is too out of date and I cannot make heads or > tails of what has happened.... > > For decades, literally - I used to ssh to any linux/sunOS/solaris/hpux/... > Run: vncserver ... Then connected to it using vncviewer. > > Recently it was tigerVNC variety on centos, opensuse, .... This worked > marvelously. > > I have rebuild linux box, it has tigerVNC installed, but there is no > vncserver script. Their GitHub blurb mentions to use systemd to start it. > OK - but there is no service target file installed, and how would non-root > user used it, does it work with Wayland - how?... I have a lot of > practical questions, unable to find answer for. > > Anyone able to give reasonable advice and guide about how is this supposed > to work in multiuser environment? > > No rants please - I would love to get it working again. > > Thanks, Tomas >
