Tigervnc-server startup error on fedora 40

I’ve installed tigervnc-server on a new fedora 40 installation and followed the setup instructions here:

When I attempt to start the vncsever I get the following error:

vncserver@:1.service: Failed to change SELinux context to system_u:system_r:vnc_session_t:s0: Operation not permitted

Is there something new required on fedora 40 for the selinux policy of tigervnc-server? I haven’t encountered this issue on prior fedora versions.

This is how it works for me:
I'm trying to run a remote desktop without monitor but i cannot find out how it works - #4 by vgaetera

Are the Docs out of date for this particular topic? :thinking: Please ping me if you have more info on this. :writing_hand:t5:

There’s no need to edit the service file and modify ExecStart.
All the necessary options can be customized using the configs:
tigervnc/unix/vncserver/vncserver-config-defaults at master · TigerVNC/tigervnc · GitHub

1 Like

Ok, I’ll look that over. Just needed to know it we need to update the Docs in particular. I am making notes on some Docs that “could/should” be refreshed.

1 Like

Hi, thanks for you responses. There isn’t much customization to be done to the tigervnc-server conifgs out of the box. Assuming one is running gnome desktop only an entry needs to be added to /etc/tigervnc/vncserver.users, /lib/systemd/system/vncserver@.service needs to be copied to /lib/systemd/system/vncserver@.service and a vncpassword needs to be created.

The tigervnc server is starting however it’s not able to run because the server isn’t able to change the selinux context:

vncserver@:1.service: Failed to change SELinux context to system_u:system_r:vnc_session_t:s0: Operation not permitted

Something seems to have changed in Fedora 40. I was able to run tigervnc using Fedora 39. After doing a clean upgrade to Fedora 40 I started getting this error when starting tigervnc server.

The approach you are using looks unconventional and outdated as it goes against the upstream documentation and prone to cause more mistakes.

1 Like

Hi Vlad,

I don’t understand why you would think my approach is unconventional and outdated. My approach comes directly from the fedora tigervnc-server wiki. Have you read the fedora wiki? Is the wiki outdated? If so which parts of it are outdated?

:thinking: Sorry i can’t test this myself, so i need to go off of your experience right now. @vgaetera can provide a more concrete answer, if the Docs are outdated I would also like to note this.

Thanks :fedora:

I think the fedora tigervnc wiki docs are most likely correct. They need to be updated with info on. how to set up the selinux policy for the tigervnc server.

1 Like

The page is not found, can any body check this ?