https://access.redhat.com/solutions/4201371
How to configure VNC Server in Red Hat Enterprise Linux 8?
SOLUTION UNVERIFIED - 已更新 2019年六月6日11:25 -
环境
- Red Hat Enterprise Linux 8
- tigervnc-server
问题
- How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux 8 ?
决议
Below are the steps to configure Xvnc server on RHEL8 systems:
-
Copy this file to ~/.config/systemd/user/
$ mkdir -p ~/.config/systemd/user $ cp /usr/lib/systemd/user/vncserver@.service ~/.config/systemd/user/
-
Reload user's systemd
$ systemctl --user daemon-reload
-
Set vnc password for root user
$ vncpasswd
-
Start the service immediately and enable it at boot
$ systemctl --user enable vncserver@:<display>.service --now
Note: Make sure you do not use display number 0 or 1. You can user number between 2 to 99.
-
Enable lingering
$ loginctl enable-linger
Note: For more details, refer "mand Xvnc" and "man loginctl".