Description of problem: I'm unable to start a vncserver on Mageia 8 despite having the tigervnc-server package installed. Version-Release number of selected component (if applicable): tigervnc-server-1.11.0-4.mga8.x86_64 How reproducible: Always Steps to Reproduce: 1. vncserver -geometry 1920x1080 -alwaysshared 2. 3. This gives me the following output: vncserver has been replaced by a systemd unit. Please read /usr/share/doc/tigervnc/HOWTO.md for more information. The file does not exist. There is a systemd service under /lib/systemd/system/vncserver\@.service and copying that to /etc/systemd/system/ also allows the service to start, eg with systemctl start vncserver@:2.service but no vncserver is started. ● vncserver@:2.service - Remote desktop service (VNC) Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled) Active: inactive (dead) since Fri 2021-09-24 00:46:23 CEST; 17min ago Process: 641554 ExecStart=/usr/libexec/vncsession-start :2 (code=exited, status=0/SUCCESS) Main PID: 641560 (code=exited, status=0/SUCCESS) CPU: 10ms Sep 24 00:46:23 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)... Sep 24 00:46:23 localhost.localdomain systemd[1]: Started Remote desktop service (VNC). Sep 24 00:46:23 localhost.localdomain systemd[1]: vncserver@:2.service: Succeeded.
Created attachment 12931 [details] The HOWTO.md file from my install rpm -q -f /usr/share/doc/tigervnc-server/HOWTO.md tigervnc-server-1.11.0-4.mga8 That's in the core release repo. So the question is why is it not present on that installation?
CC: (none) => davidwhodgins
Thanks Dave for the HOWTO bug attachment. Herbert, can you report the result of following it? I am puzzled by the contradictory: > Active: inactive (dead) and > vncserver@:2.service: Succeeded Can you comment on that, Dave? As for the missing file: $ urpmf /usr/share/doc/tigervnc/HOWTO.md yields nothing. $ urpmq -l tigervnc | grep HOWTO also yields nothing. $ urpmq -l tigervnc | grep /doc/ /usr/share/doc/tigervnc /usr/share/doc/tigervnc/LICENCE.TXT /usr/share/doc/tigervnc/README.rst Could the last be helpful? Assigning to Thierry who mostly deals with tigervnc, and committed 'package README.rst'. There seem to be two problem here: - starting it - the HOWTO.
Assignee: bugsquad => thierry.vignaudCC: (none) => lewyssmith
I haven't tested vnc since Mageia 7, so did some cleanup first. - used urpme to remove all packages shown by "rpm -qa|grep vnc". Used "systemctl disable vncserver@:1.service" which removed lrwxrwxrwx 1 root root 42 Sep 24 16:21 '/etc/systemd/system/multi-user.target.wants/vncserver@:1.service' -> '/usr/lib/systemd/system/vncserver@.service' In /home/tester (the account I use for the testing), deleted ~/.vnc Rebooted, just to ensure a normal startup as far as vnc is concerned. # urpmi tigervnc tigervnc-server which also pulled in vnc-server-common Appended two lines to /etc/tigervnc/vncserver-config-defaults session=Plasma geometry=1024x768 Appended one line to /etc/tigervnc/vncserver.users :1=tester I noticed that the package vnc-server-common still has an init.d file, so even though it's not in the instructions, ran # chkconfig vncserver on # systemctl start vncserver.service Used "su -l tester" to become the tester user, ran vncpassd and set it's password. As root, enabled and started the server for the user with # systemctl start vncserver@:1 # systemctl start vncserver@:1 Back as the tester user ran "vncviewer localhost:1", and it started Plasma. [tester@x3 ~]$ systemctl status vncserver.service ● vncserver.service - LSB: Start TigerVNC server at boot time Loaded: loaded (/etc/rc.d/init.d/vncserver; generated) Active: active (exited) since Fri 2021-09-24 16:15:28 EDT; 28min ago Docs: man:systemd-sysv-generator(8) CPU: 15ms Warning: some journal files were not opened due to insufficient permissions. [tester@x3 ~]$ systemctl status vncserver@:1.service ● vncserver@:1.service - Remote desktop service (VNC) Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2021-09-24 16:21:21 EDT; 22min ago Main PID: 4811 (vncsession) Tasks: 1 (limit: 19119) Memory: 452.0K CPU: 10ms CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service ‣ 4811 /usr/sbin/vncsession tester :1 Warning: some journal files were not opened due to insufficient permissions. So it works for me, though I haven't confirmed if the instructions should be modified to add the "chkconfig vncserver on" and "systemctl start vncserver.service".
Oops, copied the wrong line. The enable should have been ... # systemctl enable vncserver@:1
CC: lewyssmith => (none)