I would like to start a one time session for a specific user.
As a viewer I use remmina.
When I want to connect, it always asks me to enter certificate authentication files. How do I have to configure Xvnc that it doesn’t ask for the certificates? I just would like to use username and password to login.
Educated guess is that it is set in /usr/lib/systemd/system/xvnc@.service. Try “systemctl edit /usr/lib/systemd/system/xvnc@.service” and change ExecStart command to use suitable authentication options.
I’ve posted a rough draft of what I intend to finish some day that attempts to fill in what I consider the holes in the openSUSE official documentation…
In the following section I describe what may be a clue to resolving your problem…
Note that as a rough draft I’m referring to something called XMCCP when it’s likely that should be XMPP
If I run: “systemctl edit /usr/lib/systemd/system/xvnc@.service” I get the following message:
SRV-WEB-01:~ # systemctl edit /usr/lib/systemd/system/xvnc@.service
No files found for usr-lib-systemd-system-xvnc\x40.service.mount.
Run 'systemctl edit --force --full usr-lib-systemd-system-xvnc\x40.service.mount' to create a new unit.
This how my /usr/lib/systemd/system/xvnc@.service looks like:
An what would be suitable authentication option if I just want to use the username and the password?
It really depends on what you want. See “man Xvnc”. The TLSPlain is using operating system to check passwords, TLSVnc is using password file. The following works for me using my OS user to log in:
Can I edit /usr/lib/systemd/system/xvnc@.service with the vi?
You should not edit files in /usr/lib. You can copy it in /etc/systemd/system and edit there (that is what command above effectively does). Do not forget to run “systemctl daemon-reload” or reboot after you copied file so systemd can pick up new definition.
I configured it like this. Now it connects and I can enter the username and the password, but the I only get a black screen instead of the desktop and after a while the session closes.
SRV-WEB-01: # update-alternatives --config default-displaymanager
There are 4 choices for the alternative default-displaymanager (providing /usr/lib/X11/displaymanagers/default-displaymanager).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/X11/displaymanagers/sddm 25 auto mode
1 /usr/lib/X11/displaymanagers/console 5 manual mode
2 /usr/lib/X11/displaymanagers/lightdm 15 manual mode
3 /usr/lib/X11/displaymanagers/sddm 25 manual mode
* 4 /usr/lib/X11/displaymanagers/xdm 10 manual mode
Press <enter> to keep the current choice
[li], or type selection number[/li]```
I’m a bit confused by your output.
I can see that you likely are configured to use xdm but if you use the tool you just ran to set your DM, that should also appear as your “auto mode” setting.