Hi,
I've recently upraded my OS to Fedora 33 from Fedora 25. I had no issues configuring VNC Server for Fedora 25, but I have had nothing but problems in version 33.
First, I tried to do things the same way I did before, by simply running 'vncserver'. It starts, but when I try to log in all I see is a black screen. I went through every post I could find on Stack Overflow to address that issue with no success. For instance, I tried adding 'exec gnome-session' to end of the file, but no luck.
Then, I noticed this message:
WARNING: vncserver has been replaced by a systemd unit and is about to be removed in the next Fedora release.
Please read /usr/share/doc/tigervnc/HOWTO.md for more information.
I read that file. It looks like the developers intend on removing the vncserver command at some point, and they would rather have us use systemd. So, I editted the /etc/tigervnc/vncserver.users file, and added my ':2=rdill' line. I also added
session=gnome
securitytypes=vncauth,tlsvnc
desktop=sandbox
geometry=800x600
localhost
alwaysshared
to /etc/tigervnc/vncserver-config-defaults. I switched to the user, deleted my previous .vnc folder, and ran 'vncpasswd', switched back root, and 'restorecon -RFv /home/rdill/.vnc'. I then attempted to start the vncserver, but it either didn't run or exitted immediately.
Then, I found this article '
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-remote-access-for-the-gnome-desktop-on-centos-7'. I had a lot of hope on this one, but after 'cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service', enabling the service, and running it, once again, nothing is listening on 5902.
So here are my issues, I either get a blank/black screen if I run vncserver or the process exits immediately if I use systemctl.
[root@nerd system]# systemctl start vncserver@:2.service
[root@nerd system]# systemctl status vncserver@:2.service
● vncserver@:2.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:2.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2021-01-14 15:15:08 CST; 3s ago
Process: 9240 ExecStart=/usr/libexec/vncsession-start :2 (code=exited, status=0/SUCCESS)
Main PID: 9246 (code=exited, status=0/SUCCESS)
CPU: 12ms
Jan 14 15:15:06
nerd.cameron.edu systemd[1]: Starting Remote desktop service (VNC)...
Jan 14 15:15:06
nerd.cameron.edu systemd[1]: Started Remote desktop service (VNC).
Jan 14 15:15:08
nerd.cameron.edu systemd[1]: vncserver@:2.service: Succeeded.
At this point, I'm out of resources. Does anyone have suggestions on how fix this? Here's the service file that came with Fedora 33.
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/libexec/vncsession-start %i
PIDFile=/run/vncsession-%i.pid
SELinuxContext=system_u:system_r:vnc_session_t:s0
[Install]
WantedBy=multi-user.target
~ Bob