Linux-通过Windows远程桌面访问CentOS

  我的环境是CentOS 7.2,首先要确保该环境能上网。

  1. 首先安装【epel-release-latest-7.noarch.rpm】
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum makecache
install epel.png
  1. 安装【xrdp】
yum -y install xrdp tigervnc-server

运行命令输出如下:

[root@k8smaster ~]# yum -y install xrdp tigervnc-server
Loaded plugins: fastestmirror, langpacks
epel/x86_64/metalink                                                                                                                            | 5.7 kB  00:00:00     
epel                                                                                                                                            | 3.2 kB  00:00:00     
(1/3): epel/x86_64/group_gz                                                                                                                     |  88 kB  00:00:00     
(2/3): epel/x86_64/updateinfo                                                                                                                   | 929 kB  00:00:01     
(3/3): epel/x86_64/primary                                                                                                                      | 3.5 MB  00:00:17     
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
epel                                                                                                                                                       12618/12618
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.8.0-5.el7 will be installed
---> Package xrdp.x86_64 1:0.9.7-1.el7 will be installed
--> Processing Dependency: xorgxrdp for package: 1:xrdp-0.9.7-1.el7.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: 1:xrdp-0.9.7-1.el7.x86_64
--> Running transaction check
---> Package openssl-libs.x86_64 1:1.0.1e-42.el7.9 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-42.el7.9 for package: 1:openssl-1.0.1e-42.el7.9.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be an update
---> Package xorgxrdp.x86_64 0:0.2.7-1.el7 will be installed
--> Processing Dependency: xorg-x11-server-Xorg(x86-64) = 1.19.5 for package: xorgxrdp-0.2.7-1.el7.x86_64
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-42.el7.9 will be updated
---> Package openssl.x86_64 1:1.0.2k-12.el7 will be an update
---> Package xorg-x11-server-Xorg.x86_64 0:1.17.2-10.el7 will be updated
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-dummy-0.3.6-21.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-vesa-2.3.2-20.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-intel-2.99.917-8.20150615.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-v4l-0.2.0-42.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-fbdev-0.4.3-20.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-ati-7.5.0-3.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-vmware-13.0.2-7.20150211git8f0cf7c.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: 1:xorg-x11-drv-nouveau-1.0.11-2.el7.x86_64
--> Processing Dependency: xserver-abi(videodrv-19) >= 0 for package: xorg-x11-drv-qxl-0.1.1-18.el7.x86_64
--> Processing Dependency: xserver-abi(xinput-21) >= 0 for package: xorg-x11-drv-synaptics-1.8.2-1.el7.x86_64
--> Processing Dependency: xserver-abi(xinput-21) >= 0 for package: xorg-x11-drv-void-1.4.1-1.el7.x86_64
--> Processing Dependency: xserver-abi(xinput-21) >= 0 for package: xorg-x11-drv-wacom-0.29.0-1.el7.x86_64
--> Processing Dependency: xserver-abi(xinput-21) >= 0 for package: xorg-x11-drv-vmmouse-13.0.0-11.el7.x86_64
--> Processing Dependency: xserver-abi(xinput-21) >= 0 for package: xorg-x11-drv-evdev-2.9.2-2.el7.x86_64
---> Package xorg-x11-server-Xorg.x86_64 0:1.19.5-5.el7 will be an update
--> Processing Dependency: xorg-x11-server-common >= 1.19.5-5.el7 for package: xorg-x11-server-Xorg-1.19.5-5.el7.x86_64
--> Processing Dependency: libXfont2.so.2()(64bit) for package: xorg-x11-server-Xorg-1.19.5-5.el7.x86_64
--> Running transaction check
---> Package libXfont2.x86_64 0:2.0.1-2.el7 will be installed
---> Package xorg-x11-drv-ati.x86_64 0:7.5.0-3.el7 will be updated
---> Package xorg-x11-drv-ati.x86_64 0:7.10.0-1.el7 will be an update
---> Package xorg-x11-drv-dummy.x86_64 0:0.3.6-21.el7 will be updated
---> Package xorg-x11-drv-dummy.x86_64 0:0.3.7-1.el7 will be an update
---> Package xorg-x11-drv-evdev.x86_64 0:2.9.2-2.el7 will be updated
---> Package xorg-x11-drv-evdev.x86_64 0:2.10.5-2.1.el7 will be an update
---> Package xorg-x11-drv-fbdev.x86_64 0:0.4.3-20.el7 will be updated
---> Package xorg-x11-drv-fbdev.x86_64 0:0.4.3-25.el7 will be an update
---> Package xorg-x11-drv-intel.x86_64 0:2.99.917-8.20150615.el7 will be updated
---> Package xorg-x11-drv-intel.x86_64 0:2.99.917-27.20160929.el7 will be an update
---> Package xorg-x11-drv-nouveau.x86_64 1:1.0.11-2.el7 will be updated
---> Package xorg-x11-drv-nouveau.x86_64 1:1.0.13-3.el7 will be an update
---> Package xorg-x11-drv-qxl.x86_64 0:0.1.1-18.el7 will be updated
---> Package xorg-x11-drv-qxl.x86_64 0:0.1.5-3.el7 will be an update
---> Package xorg-x11-drv-synaptics.x86_64 0:1.8.2-1.el7 will be updated
---> Package xorg-x11-drv-synaptics.x86_64 0:1.9.0-1.el7 will be an update
---> Package xorg-x11-drv-v4l.x86_64 0:0.2.0-42.el7 will be updated
---> Package xorg-x11-drv-v4l.x86_64 0:0.2.0-47.el7 will be an update
---> Package xorg-x11-drv-vesa.x86_64 0:2.3.2-20.el7 will be updated
---> Package xorg-x11-drv-vesa.x86_64 0:2.3.2-25.1.el7 will be an update
---> Package xorg-x11-drv-vmmouse.x86_64 0:13.0.0-11.el7 will be updated
---> Package xorg-x11-drv-vmmouse.x86_64 0:13.1.0-1.el7 will be an update
---> Package xorg-x11-drv-vmware.x86_64 0:13.0.2-7.20150211git8f0cf7c.el7 will be updated
---> Package xorg-x11-drv-vmware.x86_64 0:13.2.1-1.el7 will be an update
---> Package xorg-x11-drv-void.x86_64 0:1.4.1-1.el7 will be updated
---> Package xorg-x11-drv-void.x86_64 0:1.4.1-2.el7 will be an update
---> Package xorg-x11-drv-wacom.x86_64 0:0.29.0-1.el7 will be updated
---> Package xorg-x11-drv-wacom.x86_64 0:0.34.2-5.el7 will be an update
---> Package xorg-x11-server-common.x86_64 0:1.17.2-10.el7 will be updated
---> Package xorg-x11-server-common.x86_64 0:1.19.5-5.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================
 Package                                        Arch                           Version                                           Repository                       Size
=======================================================================================================================================================================
Installing:
 tigervnc-server                                x86_64                         1.8.0-5.el7                                       base                            214 k
 xrdp                                           x86_64                         1:0.9.7-1.el7                                     epel                            416 k
Installing for dependencies:
 libXfont2                                      x86_64                         2.0.1-2.el7                                       base                            140 k
 xorgxrdp                                       x86_64                         0.2.7-1.el7                                       epel                             62 k
Updating for dependencies:
 openssl                                        x86_64                         1:1.0.2k-12.el7                                   base                            492 k
 openssl-libs                                   x86_64                         1:1.0.2k-12.el7                                   base                            1.2 M
 xorg-x11-drv-ati                               x86_64                         7.10.0-1.el7                                      base                            161 k
 xorg-x11-drv-dummy                             x86_64                         0.3.7-1.el7                                       base                             18 k
 xorg-x11-drv-evdev                             x86_64                         2.10.5-2.1.el7                                    base                             48 k
 xorg-x11-drv-fbdev                             x86_64                         0.4.3-25.el7                                      base                             20 k
 xorg-x11-drv-intel                             x86_64                         2.99.917-27.20160929.el7                          base                            672 k
 xorg-x11-drv-nouveau                           x86_64                         1:1.0.13-3.el7                                    base                             93 k
 xorg-x11-drv-qxl                               x86_64                         0.1.5-3.el7                                       base                             92 k
 xorg-x11-drv-synaptics                         x86_64                         1.9.0-1.el7                                       base                             82 k
 xorg-x11-drv-v4l                               x86_64                         0.2.0-47.el7                                      base                             21 k
 xorg-x11-drv-vesa                              x86_64                         2.3.2-25.1.el7                                    base                             25 k
 xorg-x11-drv-vmmouse                           x86_64                         13.1.0-1.el7                                      base                             24 k
 xorg-x11-drv-vmware                            x86_64                         13.2.1-1.el7                                      base                             83 k
 xorg-x11-drv-void                              x86_64                         1.4.1-2.el7                                       base                             14 k
 xorg-x11-drv-wacom                             x86_64                         0.34.2-5.el7                                      updates                         306 k
 xorg-x11-server-Xorg                           x86_64                         1.19.5-5.el7                                      base                            1.5 M
 xorg-x11-server-common                         x86_64                         1.19.5-5.el7                                      base                             53 k

Transaction Summary
=======================================================================================================================================================================
Install  2 Packages (+ 2 Dependent packages)
Upgrade             ( 18 Dependent packages)

Total download size: 5.6 M
Downloading packages:
No Presto metadata available for base
(1/22): libXfont2-2.0.1-2.el7.x86_64.rpm                                                                                                        | 140 kB  00:00:00     
(2/22): openssl-1.0.2k-12.el7.x86_64.rpm                                                                                                        | 492 kB  00:00:01     
(3/22): tigervnc-server-1.8.0-5.el7.x86_64.rpm                                                                                                  | 214 kB  00:00:00     
(4/22): xorg-x11-drv-ati-7.10.0-1.el7.x86_64.rpm                                                                                                | 161 kB  00:00:00     
(5/22): xorg-x11-drv-dummy-0.3.7-1.el7.x86_64.rpm                                                                                               |  18 kB  00:00:00     
(6/22): xorg-x11-drv-evdev-2.10.5-2.1.el7.x86_64.rpm                                                                                            |  48 kB  00:00:00     
(7/22): openssl-libs-1.0.2k-12.el7.x86_64.rpm                                                                                                   | 1.2 MB  00:00:01     
(8/22): xorg-x11-drv-fbdev-0.4.3-25.el7.x86_64.rpm                                                                                              |  20 kB  00:00:00     
(9/22): xorg-x11-drv-nouveau-1.0.13-3.el7.x86_64.rpm                                                                                            |  93 kB  00:00:00     
(10/22): xorg-x11-drv-qxl-0.1.5-3.el7.x86_64.rpm                                                                                                |  92 kB  00:00:00     
(11/22): xorg-x11-drv-synaptics-1.9.0-1.el7.x86_64.rpm                                                                                          |  82 kB  00:00:00     
(12/22): xorg-x11-drv-v4l-0.2.0-47.el7.x86_64.rpm                                                                                               |  21 kB  00:00:00     
(13/22): xorg-x11-drv-intel-2.99.917-27.20160929.el7.x86_64.rpm                                                                                 | 672 kB  00:00:00     
(14/22): xorg-x11-drv-vmmouse-13.1.0-1.el7.x86_64.rpm                                                                                           |  24 kB  00:00:00     
(15/22): xorg-x11-drv-vesa-2.3.2-25.1.el7.x86_64.rpm                                                                                            |  25 kB  00:00:00     
(16/22): xorg-x11-drv-void-1.4.1-2.el7.x86_64.rpm                                                                                               |  14 kB  00:00:00     
(17/22): xorg-x11-drv-vmware-13.2.1-1.el7.x86_64.rpm                                                                                            |  83 kB  00:00:00     
(18/22): xorg-x11-server-common-1.19.5-5.el7.x86_64.rpm                                                                                         |  53 kB  00:00:00     
(19/22): xorg-x11-drv-wacom-0.34.2-5.el7.x86_64.rpm                                                                                             | 306 kB  00:00:00     
warning: /var/cache/yum/x86_64/7/epel/packages/xrdp-0.9.7-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY   ] 715 kB/s | 4.2 MB  00:00:02 ETA 
Public key for xrdp-0.9.7-1.el7.x86_64.rpm is not installed
(20/22): xrdp-0.9.7-1.el7.x86_64.rpm                                                                                                            | 416 kB  00:00:00     
(21/22): xorgxrdp-0.2.7-1.el7.x86_64.rpm                                                                                                        |  62 kB  00:00:00     
(22/22): xorg-x11-server-Xorg-1.19.5-5.el7.x86_64.rpm                                                                                           | 1.5 MB  00:00:02     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                  1.1 MB/s | 5.6 MB  00:00:05     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                                                1/40 
  Updating   : xorg-x11-server-common-1.19.5-5.el7.x86_64                                                                                                         2/40 
  Installing : libXfont2-2.0.1-2.el7.x86_64                                                                                                                       3/40 
  Updating   : xorg-x11-server-Xorg-1.19.5-5.el7.x86_64                                                                                                           4/40 
  Installing : xorgxrdp-0.2.7-1.el7.x86_64                                                                                                                        5/40 
  Installing : 1:xrdp-0.9.7-1.el7.x86_64                                                                                                                          6/40 
  Updating   : xorg-x11-drv-fbdev-0.4.3-25.el7.x86_64                                                                                                             7/40 
  Updating   : xorg-x11-drv-dummy-0.3.7-1.el7.x86_64                                                                                                              8/40 
  Updating   : xorg-x11-drv-intel-2.99.917-27.20160929.el7.x86_64                                                                                                 9/40 
  Updating   : 1:xorg-x11-drv-nouveau-1.0.13-3.el7.x86_64                                                                                                        10/40 
  Updating   : xorg-x11-drv-evdev-2.10.5-2.1.el7.x86_64                                                                                                          11/40 
  Updating   : xorg-x11-drv-vmware-13.2.1-1.el7.x86_64                                                                                                           12/40 
  Updating   : xorg-x11-drv-wacom-0.34.2-5.el7.x86_64                                                                                                            13/40 
  Updating   : xorg-x11-drv-ati-7.10.0-1.el7.x86_64                                                                                                              14/40 
  Updating   : xorg-x11-drv-v4l-0.2.0-47.el7.x86_64                                                                                                              15/40 
  Updating   : xorg-x11-drv-qxl-0.1.5-3.el7.x86_64                                                                                                               16/40 
  Updating   : xorg-x11-drv-void-1.4.1-2.el7.x86_64                                                                                                              17/40 
  Updating   : xorg-x11-drv-synaptics-1.9.0-1.el7.x86_64                                                                                                         18/40 
  Updating   : xorg-x11-drv-vmmouse-13.1.0-1.el7.x86_64                                                                                                          19/40 
  Updating   : xorg-x11-drv-vesa-2.3.2-25.1.el7.x86_64                                                                                                           20/40 
  Updating   : 1:openssl-1.0.2k-12.el7.x86_64                                                                                                                    21/40 
  Installing : tigervnc-server-1.8.0-5.el7.x86_64                                                                                                                22/40 
  Cleanup    : 1:openssl-1.0.1e-42.el7.9.x86_64                                                                                                                  23/40 
  Cleanup    : xorg-x11-drv-vesa-2.3.2-20.el7.x86_64                                                                                                             24/40 
  Cleanup    : xorg-x11-drv-vmmouse-13.0.0-11.el7.x86_64                                                                                                         25/40 
  Cleanup    : xorg-x11-drv-synaptics-1.8.2-1.el7.x86_64                                                                                                         26/40 
  Cleanup    : xorg-x11-drv-void-1.4.1-1.el7.x86_64                                                                                                              27/40 
  Cleanup    : xorg-x11-drv-qxl-0.1.1-18.el7.x86_64                                                                                                              28/40 
  Cleanup    : xorg-x11-drv-v4l-0.2.0-42.el7.x86_64                                                                                                              29/40 
  Cleanup    : xorg-x11-drv-ati-7.5.0-3.el7.x86_64                                                                                                               30/40 
  Cleanup    : xorg-x11-drv-wacom-0.29.0-1.el7.x86_64                                                                                                            31/40 
  Cleanup    : xorg-x11-drv-vmware-13.0.2-7.20150211git8f0cf7c.el7.x86_64                                                                                        32/40 
  Cleanup    : xorg-x11-drv-evdev-2.9.2-2.el7.x86_64                                                                                                             33/40 
  Cleanup    : 1:xorg-x11-drv-nouveau-1.0.11-2.el7.x86_64                                                                                                        34/40 
  Cleanup    : xorg-x11-drv-intel-2.99.917-8.20150615.el7.x86_64                                                                                                 35/40 
  Cleanup    : xorg-x11-drv-dummy-0.3.6-21.el7.x86_64                                                                                                            36/40 
  Cleanup    : xorg-x11-drv-fbdev-0.4.3-20.el7.x86_64                                                                                                            37/40 
  Cleanup    : xorg-x11-server-Xorg-1.17.2-10.el7.x86_64                                                                                                         38/40 
  Cleanup    : xorg-x11-server-common-1.17.2-10.el7.x86_64                                                                                                       39/40 
  Cleanup    : 1:openssl-libs-1.0.1e-42.el7.9.x86_64                                                                                                             40/40 
  Verifying  : xorg-x11-drv-fbdev-0.4.3-25.el7.x86_64                                                                                                             1/40 
  Verifying  : xorg-x11-drv-dummy-0.3.7-1.el7.x86_64                                                                                                              2/40 
  Verifying  : xorg-x11-drv-intel-2.99.917-27.20160929.el7.x86_64                                                                                                 3/40 
  Verifying  : 1:xorg-x11-drv-nouveau-1.0.13-3.el7.x86_64                                                                                                         4/40 
  Verifying  : xorg-x11-drv-evdev-2.10.5-2.1.el7.x86_64                                                                                                           5/40 
  Verifying  : libXfont2-2.0.1-2.el7.x86_64                                                                                                                       6/40 
  Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                                                7/40 
  Verifying  : xorg-x11-server-Xorg-1.19.5-5.el7.x86_64                                                                                                           8/40 
  Verifying  : tigervnc-server-1.8.0-5.el7.x86_64                                                                                                                 9/40 
  Verifying  : xorg-x11-drv-vmware-13.2.1-1.el7.x86_64                                                                                                           10/40 
  Verifying  : xorg-x11-drv-wacom-0.34.2-5.el7.x86_64                                                                                                            11/40 
  Verifying  : xorgxrdp-0.2.7-1.el7.x86_64                                                                                                                       12/40 
  Verifying  : xorg-x11-drv-ati-7.10.0-1.el7.x86_64                                                                                                              13/40 
  Verifying  : 1:xrdp-0.9.7-1.el7.x86_64                                                                                                                         14/40 
  Verifying  : xorg-x11-drv-v4l-0.2.0-47.el7.x86_64                                                                                                              15/40 
  Verifying  : xorg-x11-drv-qxl-0.1.5-3.el7.x86_64                                                                                                               16/40 
  Verifying  : xorg-x11-drv-void-1.4.1-2.el7.x86_64                                                                                                              17/40 
  Verifying  : xorg-x11-drv-synaptics-1.9.0-1.el7.x86_64                                                                                                         18/40 
  Verifying  : xorg-x11-server-common-1.19.5-5.el7.x86_64                                                                                                        19/40 
  Verifying  : xorg-x11-drv-vmmouse-13.1.0-1.el7.x86_64                                                                                                          20/40 
  Verifying  : xorg-x11-drv-vesa-2.3.2-25.1.el7.x86_64                                                                                                           21/40 
  Verifying  : 1:openssl-1.0.2k-12.el7.x86_64                                                                                                                    22/40 
  Verifying  : xorg-x11-drv-intel-2.99.917-8.20150615.el7.x86_64                                                                                                 23/40 
  Verifying  : xorg-x11-drv-vmware-13.0.2-7.20150211git8f0cf7c.el7.x86_64                                                                                        24/40 
  Verifying  : xorg-x11-drv-evdev-2.9.2-2.el7.x86_64                                                                                                             25/40 
  Verifying  : xorg-x11-drv-ati-7.5.0-3.el7.x86_64                                                                                                               26/40 
  Verifying  : 1:xorg-x11-drv-nouveau-1.0.11-2.el7.x86_64                                                                                                        27/40 
  Verifying  : xorg-x11-server-common-1.17.2-10.el7.x86_64                                                                                                       28/40 
  Verifying  : xorg-x11-drv-synaptics-1.8.2-1.el7.x86_64                                                                                                         29/40 
  Verifying  : xorg-x11-drv-vmmouse-13.0.0-11.el7.x86_64                                                                                                         30/40 
  Verifying  : xorg-x11-server-Xorg-1.17.2-10.el7.x86_64                                                                                                         31/40 
  Verifying  : xorg-x11-drv-wacom-0.29.0-1.el7.x86_64                                                                                                            32/40 
  Verifying  : xorg-x11-drv-dummy-0.3.6-21.el7.x86_64                                                                                                            33/40 
  Verifying  : xorg-x11-drv-fbdev-0.4.3-20.el7.x86_64                                                                                                            34/40 
  Verifying  : 1:openssl-libs-1.0.1e-42.el7.9.x86_64                                                                                                             35/40 
  Verifying  : xorg-x11-drv-qxl-0.1.1-18.el7.x86_64                                                                                                              36/40 
  Verifying  : xorg-x11-drv-vesa-2.3.2-20.el7.x86_64                                                                                                             37/40 
  Verifying  : xorg-x11-drv-void-1.4.1-1.el7.x86_64                                                                                                              38/40 
  Verifying  : xorg-x11-drv-v4l-0.2.0-42.el7.x86_64                                                                                                              39/40 
  Verifying  : 1:openssl-1.0.1e-42.el7.9.x86_64                                                                                                                  40/40 

Installed:
  tigervnc-server.x86_64 0:1.8.0-5.el7                                                    xrdp.x86_64 1:0.9.7-1.el7                                                   

Dependency Installed:
  libXfont2.x86_64 0:2.0.1-2.el7                                                     xorgxrdp.x86_64 0:0.2.7-1.el7                                                    

Dependency Updated:
  openssl.x86_64 1:1.0.2k-12.el7                               openssl-libs.x86_64 1:1.0.2k-12.el7                xorg-x11-drv-ati.x86_64 0:7.10.0-1.el7              
  xorg-x11-drv-dummy.x86_64 0:0.3.7-1.el7                      xorg-x11-drv-evdev.x86_64 0:2.10.5-2.1.el7         xorg-x11-drv-fbdev.x86_64 0:0.4.3-25.el7            
  xorg-x11-drv-intel.x86_64 0:2.99.917-27.20160929.el7         xorg-x11-drv-nouveau.x86_64 1:1.0.13-3.el7         xorg-x11-drv-qxl.x86_64 0:0.1.5-3.el7               
  xorg-x11-drv-synaptics.x86_64 0:1.9.0-1.el7                  xorg-x11-drv-v4l.x86_64 0:0.2.0-47.el7             xorg-x11-drv-vesa.x86_64 0:2.3.2-25.1.el7           
  xorg-x11-drv-vmmouse.x86_64 0:13.1.0-1.el7                   xorg-x11-drv-vmware.x86_64 0:13.2.1-1.el7          xorg-x11-drv-void.x86_64 0:1.4.1-2.el7              
  xorg-x11-drv-wacom.x86_64 0:0.34.2-5.el7                     xorg-x11-server-Xorg.x86_64 0:1.19.5-5.el7         xorg-x11-server-common.x86_64 0:1.19.5-5.el7        

Complete!
  1. 设置登录用户和密码
vncpasswd {用户名}
set vnc user.png
  1. 修改【xrdp】配置文件
vi /etc/xrdp/xrdp.ini

将【max_bpp】由32修改为24

修改配置文件.png
  1. 打开防火墙3389端口
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
打开3389端口.png
  1. 启动xrdp服务,并设置为开机启动
systemctl start xrdp
systemctl enable xrdp

  现在通过Windows远程桌面试一下,看到如下界面


远程连接.png

【遇到问题一】启动xrdp服务出现错误【Failed at step EXEC spawning /usr/sbin/xrdp: Permission denied】

启动失败1

【遇到问题二】启动xrdp服务出现错误【xrdp.service: main process exited, code=exited, status=203/EXEC】

启动失败2

针对以上两种问题,请执行以下命令

chcon -t bin_t /usr/sbin/xrdp /usr/sbin/xrdp-sesman

执行完后再启动就没问题了

启动成功
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,884评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,755评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 158,369评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,799评论 1 285
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,910评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,096评论 1 291
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,159评论 3 411
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,917评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,360评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,673评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,814评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,509评论 4 334
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,156评论 3 317
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,882评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,123评论 1 267
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,641评论 2 362
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,728评论 2 351

推荐阅读更多精彩内容

  • 常用命令 查看系统版本: head -n 1 /etc/issue lsb_release-a (centos ...
    Notonlyphper阅读 1,961评论 1 4
  • 一、项目目标 搭建一个高可用web集群网站 二、项目规划 2.1 ip地址规划 2.2 拓扑图 2.3 相关说明 ...
    夏日之光阅读 3,387评论 0 1
  • 一、拥有自信和风度男人到了二十几岁后,就要开始学着用心去经营自己了,他体现在自己的思想和涵养上。自信是一个男人最重...
    祠堂湾阅读 797评论 0 1
  • 那一程 于午后初见 阳光微醺 玉兰绽开 已记不起你的模样 昏黄的路灯下 我们是夜归人 一路无语 那一晚 你的歌声动...
    日落黄昏的乌鸦阅读 264评论 0 0
  • 清晨 睁开眼睛的那一刻,明亮的光恍惚了我的眼睛,推开门发现窗外的绿荫更加挺拔俊俏。 蜿蜒的青石板路上垂直而下,不远...
    白点点阅读 408评论 0 2