Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-02-16 17:12:05

jmcgee
Member
Registered: 2018-11-21
Posts: 2
UbuntuFirefox 134.0

VNC server for XFCE 4.18.3 on Ubuntu 24.04

Can anyone point me to a resource for getting this working.  All I get on another Ubuntu machine Remmina client (or TigerVNC) client is prompt for password, and gray screen.

Last edited by jmcgee (2025-02-16 17:38:13)

Offline

#2 2025-02-17 13:01:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,781
LinuxFirefox 135.0

Re: VNC server for XFCE 4.18.3 on Ubuntu 24.04


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2025-02-17 18:45:42

jmcgee
Member
Registered: 2018-11-21
Posts: 2
UbuntuFirefox 134.0

Re: VNC server for XFCE 4.18.3 on Ubuntu 24.04

If I follow that I get

mythuser@amethi:~$ vncserver

New Xtigervnc server 'amethi:2 (mythuser)' on port 5902 for display :2.
Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.6waqBB/passwd :2 to connect to the VNC server.


=================== tail /home/mythuser/.vnc/amethi:2.log ===================
xrdb: No such file or directory
xrdb: can't open file '/home/mythuser/.Xresources'
=============================================================================

Session startup via '/home/mythuser/.vnc/xstartup' cleanly exited too early (< 3 seconds)!

Maybe try something simple first, e.g.,
    tigervncserver -xstartup /usr/bin/xterm
The X session cleanly exited!
Killing Xtigervnc process ID 21491... success!

Offline

#4 2025-02-18 01:53:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,781
LinuxFirefox 135.0

Re: VNC server for XFCE 4.18.3 on Ubuntu 24.04

Just tested those instructions and they don't work for me either on 24.04. These do though: https://www.server-world.info/en/note?o … esktop&f=6.

My .vnc/xstartup:

#!/bin/sh

xrdb $HOME/.Xresources
startxfce4 &

Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2025-02-20 14:21:18

k3dAR
Member
From: Czech Republic
Registered: 2022-07-27
Posts: 85
LinuxChrome 132.0

Re: VNC server for XFCE 4.18.3 on Ubuntu 24.04

if you don't want separated session, but share same as you see on lcd, then try install x11vnc
and run in simple: x11vnc (as non root, no with sudo)

if work, you can add systemd service for autorun and "tuned" options, save it in /etc/systemd/system/x11vnc.service:

[Unit]
Description=x11vnc VNC Server for X11
Requires=lightdm.service
After=lightdm.service

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -display WAIT:0 -forever -shared  -rfbauth /root/.config/vnc/passwd -rfbport 5900 -no6 -rfbportv6 -1 -ping 60 -noxdamage -ncache_cr -dontdisconnect -noxrecord
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
RestartSec=2
SuccessExitStatus=3

[Install]
WantedBy=graphical.target

this run as root, but in this way is also usable to access lightdm login screen via vnc...
before activate service, you must prepare password file using:

sudo mkdir /root/.config/vnc
sudo x11vnc -storepasswd /root/.config/vnc/passwd

and enable and autostart service:

sudo systemctl enable --now x11vnc

Offline

Registered users online in this topic: 0, guests: 2
[Bot] ChatGPT-User,
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.005 seconds, 7 queries executed - Memory usage: 540.77 KiB (Peak: 542.05 KiB) ]