Troubles installing Tigervnc Fedora 39

Hi everyone,

I am trying to install tigervnc for Fedora 39, following what is reported in /usr/share/doc/tigervnc/HOWTO.md , but when I try to start vnc, the result is :

systemctl status vncserver@:1
○ vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead) since Sat 2023-11-18 17:36:00 CET; 47s ago
Duration: 30ms
Process: 50059 ExecStartPre=/usr/libexec/vncsession-restore :1 (code=exited, status=0/SUCCESS)
Process: 50075 ExecStart=/usr/libexec/vncsession-start :1 (code=exited, status=0/SUCCESS)
Main PID: 50084 (code=exited, status=0/SUCCESS)
CPU: 41ms

Nov 18 17:36:00 fedora.fritz.box systemd[1]: Starting vncserver@:1.service - Remote desktop service (VNC)…
Nov 18 17:36:00 fedora.fritz.box systemd[1]: Started vncserver@:1.service - Remote desktop service (VNC).
Nov 18 17:36:00 fedora.fritz.box systemd[1]: vncserver@:1.service: Deactivated successfully.
and vnc does not run.

Can anyone help me?

Thank you in advance.

Alkaddy

This method still works on Fedora 39:
I'm trying to run a remote desktop without monitor but i cannot find out how it works - #4 by vgaetera

Thank you for your prompt reply.

Unfortunately, it didn’t work either, with the same behaviour:

sudo systemctl status vncserver@:2
[sudo] password for alkaddy:
○ vncserver@:2.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead) since Sun 2023-11-19 08:14:21 CET; 2h 3min ago
Duration: 5.016s
Process: 74965 ExecStartPre=/usr/libexec/vncsession-restore :2 (code=exited, status=0/SUCCESS)
Process: 74976 ExecStart=/usr/libexec/vncsession-start :2 (code=exited, status=0/SUCCESS)
Main PID: 74984 (code=exited, status=0/SUCCESS)
CPU: 40ms

Nov 19 08:14:16 fedora.fritz.box systemd[1]: Starting vncserver@:2.service - Remote desktop service (VNC)…
Nov 19 08:14:16 fedora.fritz.box systemd[1]: Started vncserver@:2.service - Remote desktop service (VNC).
Nov 19 08:14:21 fedora.fritz.box systemd[1]: vncserver@:2.service: Deactivated successfully.

Any other way to fix it?

Thank you

tail ~/.vnc/*.log

Warning: Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost

waiting for X server to shut down
Sun Nov 19 12:25:29 2023
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)

Thank you!

Check the log:

cat ~/.vnc/*.log

This is the complete ~/.vnc/xxyy
.log file :

Using desktop session gnome

New ‘fedora.fritz.box:2 (alessandro)’ desktop is fedora.fritz.box:2

Starting desktop session gnome

Xvnc TigerVNC 1.13.1 - built Nov 2 2023 00:00:00
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12014000

Sun Nov 19 12:51:34 2023
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5902
vncext: created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:

Warning: Could not resolve keysym XF86CameraAccessEnable
Warning: Could not resolve keysym XF86CameraAccessDisable
Warning: Could not resolve keysym XF86CameraAccessToggle
Warning: Could not resolve keysym XF86NextElement
Warning: Could not resolve keysym XF86PreviousElement
Warning: Could not resolve keysym XF86AutopilotEngageToggle
Warning: Could not resolve keysym XF86MarkWaypoint
Warning: Could not resolve keysym XF86Sos
Warning: Could not resolve keysym XF86NavChart
Warning: Could not resolve keysym XF86FishingChart
Warning: Could not resolve keysym XF86SingleRangeRadar
Warning: Could not resolve keysym XF86DualRangeRadar
Warning: Could not resolve keysym XF86RadarOverlay
Warning: Could not resolve keysym XF86TraditionalSonar
Warning: Could not resolve keysym XF86ClearvuSonar
Warning: Could not resolve keysym XF86SidevuSonar
Warning: Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost

waiting for X server to shut down
Sun Nov 19 12:51:37 2023
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)

Thank you very much.

1 Like

It looks the same for me until this line:

Let’s check your permissions and configuration:

ls -a -l -Z ~/.vnc; cat ~/.vnc/config

ls -a -l -Z ~/.vnc; cat ~/.vnc/config
total 12
drwx------. 1 alessandro alessandro unconfined_u:object_r:vnc_home_t:s0 68 Nov 19 12:25 .
drwx------. 1 alessandro alessandro unconfined_u:object_r:user_home_dir_t:s0 290 Nov 19 17:43 …
-rw-------. 1 alessandro alessandro unconfined_u:object_r:vnc_home_t:s0 87 Nov 19 11:57 config
-rw-r–r–. 1 alessandro alessandro system_u:object_r:vnc_home_t:s0 1961 Nov 19 12:51 fedora.fritz.box:2.log
-rw-------. 1 alessandro alessandro unconfined_u:object_r:vnc_home_t:s0 8 Nov 19 12:17 passwd
session=gnome
securitytypes=vncauth,tlsvnc
geometry=2000x1200
localhost=0
alwaysshared

1 Like

Here’s a similar issue:
[SOLVED] TigerVNC error: xinit connection to X server lost / Applications & Desktop Environments / Arch Linux Forums

Thank you, but, actually, I don’t have that file.

It must depends on something else.

I have no idea.

1 Like

Can anyone help me with the following issue?:

sudo systemctl status vncserver@:2
[sudo] password for alkaddy:
○ vncserver@:2.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead) since Sun 2023-11-19 21:46:10 CET; 20h ago
Duration: 3.916s
Process: 123936 ExecStartPre=/usr/libexec/vncsession-restore :2 (code=exited, status=0/SUCCESS)
Process: 123947 ExecStart=/usr/libexec/vncsession-start :2 (code=exited, status=0/SUCCESS)
Main PID: 123955 (code=exited, status=0/SUCCESS)
CPU: 43ms

Nov 19 21:46:06 fedora.fritz.box systemd[1]: Starting vncserver@:2.service - Remote desktop service (VNC)…
Nov 19 21:46:06 fedora.fritz.box systemd[1]: Started vncserver@:2.service - Remote desktop service (VNC).
Nov 19 21:46:10 fedora.fritz.box systemd[1]: vncserver@:2.service: Deactivated successfully.

It’s if vnc started and immediately stopped.

Thank you very much in advance.

Alkaddy

Try the following:

  • Log in the remote host locally using a physical keyboard and monitor and verify the GNOME session works correctly.
  • Decrease the server resolution in the VNC config: geometry=800x600

Thank you.

I am not sure I knowhow to “Log in the remote host locally using a physical keyboard and monitor and verify the GNOME session works correctly”

Can you help me?

Thank you very much.

I tried doing what you suggested:

gnome-connections vnc://host:5902

(gnome-connections:164230): Gtk-WARNING **: 17:27:30.384: GtkFlowBox with a model will ignore sort and filter functions

(gnome-connections:164230): Gtk-CRITICAL **: 17:27:52.458: gtk_container_add: assertion ‘GTK_IS_WIDGET (widget)’ failed

Along this message a GNOME desktop popped up but no connection could be established.

Before doing that I reduced the server resolution to 800x600

Thank you very much.