Last active
March 23, 2023 01:35
-
-
Save caot/adb560f976d6a3203db165db0307251e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-remote-access-for-the-gnome-desktop-on-centos-7#step-4-%E2%80%94-configuring-vnc-service-for-two-clients | |
systemctl status vncserver@:.service | |
systemctl is-enabled vncserver@.service | |
systemctl enable vncserver@:.service | |
systemctl is-enabled vncserver@.service |
Sharing an Existing Desktop https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-vnc-sharing-an-existing-desktop
By default a logged in user has a desktop provided by X Server on display 0. A user can share their desktop using the TigerVNC server x0vncserver.
Procedure 15.5. Sharing an X Desktop
To share the desktop of a logged in user, using the x0vncserver, proceed as follows:
Enter the following command as root
~]# yum install tigervnc-server
Set the VNC password for the user:
~]$ vncpasswd
Password:
Verify:
Enter the following command as that user:
~]$ x0vncserver -PasswordFile=.vnc/passwd -AlwaysShared=1
Provided the firewall is configured to allow connections to port 5900, the remote viewer can now connect to display 0, and view the logged in users desktop. See Section 15.3.2.1, “Configuring the Firewall for VNC” for information on how to configure the firewall.
[system]$ pwd
/lib/systemd/system
[system]$ ls -lrt | grep -E 'vnc|xrdp'
-rw-r--r-- 1 root root 416 Mar 11 2020 xrdp-sesman.service
-rw-r--r-- 1 root root 263 Mar 11 2020 xrdp.service
-rw-r--r-- 1 root root 105 Apr 1 2020 xvnc.socket
-rw-r--r-- 1 root root 1419 Apr 1 2020 xvnc@.service
-rw-r--r-- 1 root root 1707 Apr 1 2020 vncserver@.service
[system]$
[system]$
[system]$
[system]$ systemctl status xvnc.socket
● xvnc.socket - XVNC Server
Loaded: loaded (/usr/lib/systemd/system/xvnc.socket; disabled; vendor preset: disabled)
Active: inactive (dead)
Listen: [::]:5900 (Stream)
Accepted: 0; Connected: 0
[system]$ systemctl status xvnc@.service
Failed to get properties: Unit name xvnc@.service is missing the instance name.
[system]$ systemctl status vncserver@.service
Failed to get properties: Unit name vncserver@.service is missing the instance name.
[system]$
[system]$
[system]$ systemctl status xrdp-sesman.service
● xrdp-sesman.service - xrdp session manager
Loaded: loaded (/usr/lib/systemd/system/xrdp-sesman.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2022-03-11 09:21:34 EST; 2 weeks 0 days ago
Docs: man:xrdp-sesman(8)
man:sesman.ini(5)
Main PID: 1734 (xrdp-sesman)
Tasks: 1
CGroup: /system.slice/xrdp-sesman.service
└─1734 /usr/sbin/xrdp-sesman --nodaemon
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254528898]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x1cd
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x48
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x47
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0xfd
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x1bb
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x1cb
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x49
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x1cc
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254539537]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x1cd
Mar 25 12:50:34 localhost xrdp-sesman[1734]: [3254559846]: CLIPBOARD clipboard_event_selection_notify: 1954 : ERROR: clipboard_event_selection_notify: unknown atom 0x48
[system]$
[system]$ systemctl status xrdp.service
● xrdp.service - xrdp daemon
Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2022-03-11 09:21:34 EST; 2 weeks 0 days ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 1735 (xrdp)
Tasks: 2
CGroup: /system.slice/xrdp.service
├─ 1735 /usr/sbin/xrdp --nodaemon
└─12068 /usr/sbin/xrdp --nodaemon
Mar 25 12:50:13 localhost xrdp[1735]: [20220325-12:49:48] [DEBUG] VNC got clip data
Mar 25 12:50:13 localhost xrdp[1735]: [20220325-12:49:50] [DEBUG] VNC got clip data
Mar 25 12:50:13 localhost xrdp[1735]: [20220325-12:50:01] [DEBUG] VNC got clip data
Mar 25 12:50:13 localhost xrdp[1735]: [20220325-12:50:03] [DEBUG] VNC got clip data
Mar 25 12:50:13 localhost xrdp[1735]: [20220325-12:50:12] [DEBUG] VNC got clip data
Mar 25 12:50:29 localhost xrdp[12068]: (12068)(140235178351040)[DEBUG] VNC got clip data
Mar 25 12:50:33 localhost xrdp[12068]: (12068)(140235178351040)[DEBUG] VNC got clip data
Mar 25 12:50:34 localhost xrdp[12068]: (12068)(140235178351040)[DEBUG] VNC got clip data
Mar 25 12:50:44 localhost xrdp[12068]: (12068)(140235178351040)[DEBUG] VNC got clip data
Mar 25 12:50:45 localhost xrdp[12068]: (12068)(140235178351040)[DEBUG] VNC got clip data
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to specify to MSTSC which session to connect to?
Configuring VNC Service for Two Clients