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

简介:   我的环境是CentOS 7.2,首先要确保该环境能上网。首先安装【epel-release-latest-7.noarch.rpm】rpm -Uvh https://dl.

  我的环境是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
img_74c206081414e1fed87a73011962f844.png
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 {用户名}
img_f9c53e86d07bbfab99bcf210a4ccb338.png
set vnc user.png
  1. 修改【xrdp】配置文件
vi /etc/xrdp/xrdp.ini

将【max_bpp】由32修改为24

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

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


img_068698a0f30b41a95ae6fd7573cfead8.png
远程连接.png

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

img_665686528c8e33a4991f30d4dd056088.png
启动失败1

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

img_a6fb9f9a1254908de9ea65d43bd4062f.png
启动失败2

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

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

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

img_b9fc1af6b8a663da45730182e606dbfe.png
启动成功
目录
相关文章
|
3月前
|
Linux 网络安全 Python
linux centos上安装python3.11.x详细完整教程
这篇文章提供了在CentOS系统上安装Python 3.11.x版本的详细步骤,包括下载、解压、安装依赖、编译配置、解决常见错误以及版本验证。
1699 1
linux centos上安装python3.11.x详细完整教程
|
2天前
|
Ubuntu 网络协议 Linux
快速部署WSL(Windows Subsystem for Linux)
WSL提供了一种轻量级的方法,使开发者能够在Windows上无缝运行Linux环境。通过本文介绍的步骤,可以快速安装、配置和使用WSL,以满足开发和测试的需求。
22 8
|
7天前
|
负载均衡 Ubuntu 应用服务中间件
nginx修改网站默认根目录及发布(linux、centos、ubuntu)openEuler软件源repo站点
通过合理配置 Nginx,我们可以高效地管理和发布软件源,为用户提供稳定可靠的服务。
41 13
|
22天前
|
关系型数据库 MySQL Linux
MySQL数据库下载安装教程(Windows&Linux)
本文档详细介绍了MySQL的安装步骤,包括安装前的准备工作、下载安装包、Windows和Linux系统下的具体安装流程,以及如何配置MySQL服务、设置环境变量、启动服务和连接数据库等关键操作。
|
1月前
|
网络安全 Windows
Windows server 2012R2系统安装远程桌面服务后无法多用户同时登录是什么原因?
【11月更文挑战第15天】本文介绍了在Windows Server 2012 R2中遇到的多用户无法同时登录远程桌面的问题及其解决方法,包括许可模式限制、组策略配置问题、远程桌面服务配置错误以及网络和防火墙问题四个方面的原因分析及对应的解决方案。
|
2月前
|
Web App开发 搜索推荐 Unix
Linux系统之MobaXterm远程连接centos的GNOME桌面环境
【10月更文挑战第21天】Linux系统之MobaXterm远程连接centos的GNOME桌面环境
473 4
Linux系统之MobaXterm远程连接centos的GNOME桌面环境
|
2月前
|
Linux 网络安全 数据安全/隐私保护
Linux系统之Centos7安装cockpit图形管理界面
【10月更文挑战第12天】Linux系统之Centos7安装cockpit图形管理界面
112 1
Linux系统之Centos7安装cockpit图形管理界面
|
1月前
|
数据库 数据安全/隐私保护 Windows
Windows远程桌面出现CredSSP加密数据修正问题解决方案
【10月更文挑战第30天】本文介绍了两种解决Windows系统凭据分配问题的方法。方案一是通过组策略编辑器(gpedit.msc)启用“加密数据库修正”并将其保护级别设为“易受攻击”。方案二是通过注册表编辑器(regedit)在指定路径下创建或修改名为“AllowEncryptionOracle”的DWORD值,并将其数值设为2。
502 3
|
2月前
|
Web App开发 网络协议 Linux
linux命令总结(centos):shell常用命令汇总,平时用不到,用到就懵逼忘了,于是专门写了这篇论文,【便持续更新】
这篇文章是关于Linux命令的总结,涵盖了从基础操作到网络配置等多个方面的命令及其使用方法。
80 1
linux命令总结(centos):shell常用命令汇总,平时用不到,用到就懵逼忘了,于是专门写了这篇论文,【便持续更新】
|
2月前
|
Linux Docker 容器
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!
本篇博客重在讲解Centos安装docker,经博主多次在不同服务器上测试,极其的稳定,尤其是阿里的服务器,一路复制命令畅通无阻。
2205 4
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!