根据不同的项目网络场景环境,实现远程服务器的方式有很多:
技术协议:
三种协议的对比
SPICE更多 | VNC | RDP | |
---|---|---|---|
BIOS屏幕显示 | 能 | 能 | 不能 |
全彩支持 | 能 | 能 | 能 |
更改分辨率 | 能 | 能 | 能 |
多显示器 | 多显示器支持(高达4画面) | 只有一个屏幕 | 多显示器支持 |
图像传输 | 图像和图形传输 | 图像传输 | 图像和图形传输 |
视频播放支持 | GPU加速支持 | 不能 | GPU加速支持 |
音频传输 | 双向语音可以控制 | 不能 | 双向语音可以控制 |
鼠标控制 | 客户端服务器都可以控制 | 服务器端控制 | 服务器端控制 |
USB传输 | USB可以通过网络传输 | 不能 | USB可以通过网络传输 |
xrdp优点:
下面详细介绍xrdp服务安装与软件包依赖处理过程。
xrdp软件包是epel源中的软件包,需要使用到epel源
依赖
如下的依赖输出可以大概了解到xrdp1是需要epel源中的imlib2软件包,xrdp本身也是epel源中的软件包,其它的都是base源中提供的。服务器有互联网络连接时配置上epel源直接yum 安装即可,yum会自动处理案卷依赖。如果没有网络时,需要下载最新的centos7 iso镜像并配置本地yum源,同时在有网的环境下通过如下方式获取xrdp、imlib2包(epel源不提供iso下载,而且镜像克隆epel源占用的磁盘空间成本太高。):
然后yum localinstall
xxxxxxxxxx
721[root@666 xrdp]# yum install xrdp
2# 联网安装
3Loaded plugins: fastestmirror, getpagespeed
4Loading mirror speeds from cached hostfile
5Resolving Dependencies
6--> Running transaction check
7---> Package xrdp.x86_64 1:0.9.21-1.el7 will be installed
8--> Processing Dependency: tigervnc-server-minimal for package: 1:xrdp-0.9.21-1.el7.x86_64
9--> Processing Dependency: xorg-x11-xinit for package: 1:xrdp-0.9.21-1.el7.x86_64
10--> Processing Dependency: libImlib2.so.1()(64bit) for package: 1:xrdp-0.9.21-1.el7.x86_64
11--> Running transaction check
12---> Package imlib2.x86_64 0:1.4.5-9.el7 will be installed
13--> Processing Dependency: libgif.so.4()(64bit) for package: imlib2-1.4.5-9.el7.x86_64
14---> Package tigervnc-server-minimal.x86_64 0:1.8.0-23.el7_9 will be installed
15--> Processing Dependency: xorg-x11-xkb-utils for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
16--> Processing Dependency: xkeyboard-config for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
17--> Processing Dependency: tigervnc-license for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
18--> Processing Dependency: mesa-dri-drivers for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
19--> Processing Dependency: libXfont2.so.2()(64bit) for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
20--> Processing Dependency: libXdmcp.so.6()(64bit) for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
21---> Package xorg-x11-xinit.x86_64 0:1.3.4-2.el7 will be installed
22--> Processing Dependency: xorg-x11-xauth for package: xorg-x11-xinit-1.3.4-2.el7.x86_64
23--> Running transaction check
24---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed
25---> Package libXdmcp.x86_64 0:1.1.2-6.el7 will be installed
26---> Package libXfont2.x86_64 0:2.0.3-1.el7 will be installed
27---> Package mesa-dri-drivers.x86_64 0:18.3.4-12.el7_9 will be installed
28--> Processing Dependency: mesa-filesystem(x86-64) for package: mesa-dri-drivers-18.3.4-12.el7_9.x86_64
29--> Processing Dependency: libLLVM-7-rhel.so(LLVM_7)(64bit) for package: mesa-dri-drivers-18.3.4-12.el7_9.x86_64
30--> Processing Dependency: libLLVM-7-rhel.so()(64bit) for package: mesa-dri-drivers-18.3.4-12.el7_9.x86_64
31---> Package tigervnc-license.noarch 0:1.8.0-23.el7_9 will be installed
32---> Package xkeyboard-config.noarch 0:2.24-1.el7 will be installed
33---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be installed
34---> Package xorg-x11-xkb-utils.x86_64 0:7.7-14.el7 will be installed
35--> Processing Dependency: libxkbfile.so.1()(64bit) for package: xorg-x11-xkb-utils-7.7-14.el7.x86_64
36--> Running transaction check
37---> Package libxkbfile.x86_64 0:1.0.9-3.el7 will be installed
38---> Package llvm-private.x86_64 0:7.0.1-1.el7 will be installed
39---> Package mesa-filesystem.x86_64 0:18.3.4-12.el7_9 will be installed
40--> Finished Dependency Resolution
41
42Dependencies Resolved
43
44==========================================================================================================================================
45 Package Arch Version Repository Size
46==========================================================================================================================================
47Installing:
48 xrdp x86_64 1:0.9.21-1.el7 epel 458 k
49Installing for dependencies: # 依赖在下面 ,tigervnc也需要,不过安装命令中不需要单独追加。
50 giflib x86_64 4.1.6-9.el7 base 40 k
51 imlib2 x86_64 1.4.5-9.el7 epel 205 k
52 libXdmcp x86_64 1.1.2-6.el7 base 34 k
53 libXfont2 x86_64 2.0.3-1.el7 base 143 k
54 libxkbfile x86_64 1.0.9-3.el7 base 83 k
55 llvm-private x86_64 7.0.1-1.el7 base 23 M
56 mesa-dri-drivers x86_64 18.3.4-12.el7_9 updates 7.2 M
57 mesa-filesystem x86_64 18.3.4-12.el7_9 updates 19 k
58 tigervnc-license noarch 1.8.0-23.el7_9 updates 31 k
59 tigervnc-server-minimal x86_64 1.8.0-23.el7_9 updates 1.0 M
60 xkeyboard-config noarch 2.24-1.el7 base 834 k
61 xorg-x11-xauth x86_64 1:1.0.9-1.el7 base 30 k
62 xorg-x11-xinit x86_64 1.3.4-2.el7 base 58 k
63 xorg-x11-xkb-utils x86_64 7.7-14.el7 base 103 k
64
65Transaction Summary
66==========================================================================================================================================
67Install 1 Package (+14 Dependent packages)
68
69Total download size: 33 M
70Installed size: 113 M
71Is this ok [y/d/N]:
72
xxxxxxxxxx
1191# 配置本地yum,然后准备xrdp软件包,地址yum安装
2[root@666 xrdp]# yumdownloader xrdp --resolv --destdir=/root/xrdp/
3# 在有网的服务器上解析下载相关依赖包,并打包上传到需要安装xrdp的服务器上。
4Loaded plugins: fastestmirror
5Loading mirror speeds from cached hostfile
6--> Running transaction check
7---> Package xrdp.x86_64 1:0.9.21-1.el7 will be installed
8--> Processing Dependency: tigervnc-server-minimal for package: 1:xrdp-0.9.21-1.el7.x86_64
9--> Processing Dependency: xorg-x11-xinit for package: 1:xrdp-0.9.21-1.el7.x86_64
10--> Processing Dependency: libImlib2.so.1()(64bit) for package: 1:xrdp-0.9.21-1.el7.x86_64
11--> Running transaction check
12---> Package imlib2.x86_64 0:1.4.5-9.el7 will be installed
13--> Processing Dependency: libgif.so.4()(64bit) for package: imlib2-1.4.5-9.el7.x86_64
14---> Package tigervnc-server-minimal.x86_64 0:1.8.0-23.el7_9 will be installed
15--> Processing Dependency: xorg-x11-xkb-utils for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
16--> Processing Dependency: xkeyboard-config for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
17--> Processing Dependency: tigervnc-license for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
18--> Processing Dependency: mesa-dri-drivers for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
19--> Processing Dependency: libXfont2.so.2()(64bit) for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
20--> Processing Dependency: libXdmcp.so.6()(64bit) for package: tigervnc-server-minimal-1.8.0-23.el7_9.x86_64
21---> Package xorg-x11-xinit.x86_64 0:1.3.4-2.el7 will be installed
22--> Processing Dependency: xorg-x11-xauth for package: xorg-x11-xinit-1.3.4-2.el7.x86_64
23--> Running transaction check
24---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed
25---> Package libXdmcp.x86_64 0:1.1.2-6.el7 will be installed
26---> Package libXfont2.x86_64 0:2.0.3-1.el7 will be installed
27---> Package mesa-dri-drivers.x86_64 0:18.3.4-12.el7_9 will be installed
28--> Processing Dependency: mesa-filesystem(x86-64) for package: mesa-dri-drivers-18.3.4-12.el7_9.x86_64
29--> Processing Dependency: libLLVM-7-rhel.so(LLVM_7)(64bit) for package: mesa-dri-drivers-18.3.4-12.el7_9.x86_64
30--> Processing Dependency: libLLVM-7-rhel.so()(64bit) for package: mesa-dri-drivers-18.3.4-12.el7_9.x86_64
31---> Package tigervnc-license.noarch 0:1.8.0-23.el7_9 will be installed
32---> Package xkeyboard-config.noarch 0:2.24-1.el7 will be installed
33---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be installed
34---> Package xorg-x11-xkb-utils.x86_64 0:7.7-14.el7 will be installed
35--> Processing Dependency: libxkbfile.so.1()(64bit) for package: xorg-x11-xkb-utils-7.7-14.el7.x86_64
36--> Running transaction check
37---> Package libxkbfile.x86_64 0:1.0.9-3.el7 will be installed
38---> Package llvm-private.x86_64 0:7.0.1-1.el7 will be installed
39---> Package mesa-filesystem.x86_64 0:18.3.4-12.el7_9 will be installed
40--> Finished Dependency Resolution
41(1/15): giflib-4.1.6-9.el7.x86_64.rpm | 40 kB 00:00:00
42(2/15): libXfont2-2.0.3-1.el7.x86_64.rpm | 143 kB 00:00:00
43(3/15): libxkbfile-1.0.9-3.el7.x86_64.rpm | 83 kB 00:00:00
44(4/15): mesa-filesystem-18.3.4-12.el7_9.x86_64.rpm | 19 kB 00:00:00
45(5/15): libXdmcp-1.1.2-6.el7.x86_64.rpm | 34 kB 00:00:01
46(6/15): tigervnc-license-1.8.0-23.el7_9.noarch.rpm | 31 kB 00:00:00
47(7/15): tigervnc-server-minimal-1.8.0-23.el7_9.x86_64.rpm | 1.0 MB 00:00:00
48(8/15): imlib2-1.4.5-9.el7.x86_64.rpm | 205 kB 00:00:02
49(9/15): xkeyboard-config-2.24-1.el7.noarch.rpm | 834 kB 00:00:00
50(10/15): xorg-x11-xauth-1.0.9-1.el7.x86_64.rpm | 30 kB 00:00:00
51(11/15): xorg-x11-xinit-1.3.4-2.el7.x86_64.rpm | 58 kB 00:00:00
52(12/15): xorg-x11-xkb-utils-7.7-14.el7.x86_64.rpm | 103 kB 00:00:00
53(13/15): mesa-dri-drivers-18.3.4-12.el7_9.x86_64.rpm | 7.2 MB 00:00:02
54(14/15): xrdp-0.9.21-1.el7.x86_64.rpm | 458 kB 00:00:01
55(15/15): llvm-private-7.0.1-1.el7.x86_64.rpm | 23 MB 00:00:30
56[root@666 xrdp]# tar -cvf xrdp_rpm.tar -C /root/ xrdp/
57
58[root@666 xrdp]# ls -alh /tmp/
59-rw-r--r-- 1 root root 36M Feb 3 09:05 xrdp_rpm.tar
60
61#
62[root@777 ]# yum groupinstall "GNOME Desktop"
63
64[root@777 ]# tar -xvf /tmp/xrdp_rpm.tar -C /tmp/
65[root@777 tmp]# cd /tmp/xrdp
66[root@777 xrdp]# yum localinstall xrdp-0.9.21-1.el7.x86_64.rpm imlib2-1.4.5-9.el7.x86_64.rpm
67
68Loaded plugins: fastestmirror, langpacks
69Examining xrdp-0.9.21-1.el7.x86_64.rpm: 1:xrdp-0.9.21-1.el7.x86_64
70Marking xrdp-0.9.21-1.el7.x86_64.rpm to be installed
71Examining imlib2-1.4.5-9.el7.x86_64.rpm: imlib2-1.4.5-9.el7.x86_64
72Marking imlib2-1.4.5-9.el7.x86_64.rpm to be installed
73Resolving Dependencies
74--> Running transaction check
75---> Package imlib2.x86_64 0:1.4.5-9.el7 will be installed
76---> Package xrdp.x86_64 1:0.9.21-1.el7 will be installed
77--> Finished Dependency Resolution
78
79Dependencies Resolved
80
81==========================================================================================================================================
82 Package Arch Version Repository Size
83==========================================================================================================================================
84Installing:
85 imlib2 x86_64 1.4.5-9.el7 /imlib2-1.4.5-9.el7.x86_64 625 k
86 xrdp x86_64 1:0.9.21-1.el7 /xrdp-0.9.21-1.el7.x86_64 2.2 M
87
88Transaction Summary
89==========================================================================================================================================
90Install 2 Packages
91
92Total size: 2.8 M
93Installed size: 2.8 M
94Is this ok [y/d/N]: y
95Downloading packages:
96Running transaction check
97Running transaction test
98Transaction test succeeded
99Running transaction
100 Installing : imlib2-1.4.5-9.el7.x86_64 1/2
101 Installing : 1:xrdp-0.9.21-1.el7.x86_64 2/2
102 Verifying : imlib2-1.4.5-9.el7.x86_64 1/2
103 Verifying : 1:xrdp-0.9.21-1.el7.x86_64 2/2
104
105Installed:
106 imlib2.x86_64 0:1.4.5-9.el7 xrdp.x86_64 1:0.9.21-1.el7
107
108Complete!
109[root@ xrdp]# systemctl set-default graphical.target
110systemctl enable xrdp
111
112
113# 参数修改/etc/xrdp/xrdp.ini
114修改端口号3389为其它端口,比如5901,调整tls版本
115
116# 重启服务器
117[root@ xrdp]# reboot -f
118# 检查服务端口状态
119
xxxxxxxxxx
1521
2[root@ xrdp] ss -nlpt
3State Recv-Q Send-Q Local Address:Port Peer Address:Port
4LISTEN 0 5 127.0.0.1:5910 *:* users:(("Xvnc",pid=12359,fd=7))
5LISTEN 0 5 127.0.0.1:5911 *:* users:(("Xvnc",pid=32722,fd=7))
6LISTEN 0 5 [::1]:5910 [::]:* users:(("Xvnc",pid=12359,fd=8))
7LISTEN 0 2 [::1]:3350 [::]:* users:(("xrdp-sesman",pid=11223,fd=11))
8LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=3116,fd=4))
9LISTEN 0 5 [::1]:5911 [::]:* users:(("Xvnc",pid=32722,fd=8))
10LISTEN 0 2 [::]:5901 [::]:* users:(("xrdp",pid=11224,fd=11))
11
12[root@ xrdp]# systemctl status xrdp -l
13● xrdp.service - xrdp daemon
14 Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
15 Active: active (running) since Fri 2023-02-03 09:26:40 CST; 1h 58min ago
16 Docs: man:xrdp(8)
17 man:xrdp.ini(5)
18 Main PID: 11224 (xrdp)
19 Tasks: 1
20 Memory: 2.4M
21 CGroup: /system.slice/xrdp.service
22 └─11224 /usr/sbin/xrdp --nodaemon
23
24Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC sending cursor
25Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC connection complete, connected ok
26Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC: Clipboard (if available) is provided by chansrv facility
27Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] connected ok
28Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] Layout from OldLayout (geom=1920x1080 #screens=1) : 1804289383:(1920x1080+0+0)
29Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] xrdp_sec_recv: xrdp_mcs_recv failed
30Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] xrdp_rdp_recv: xrdp_sec_recv failed
31Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] libxrdp_process_data: xrdp_rdp_recv failed
32Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] xrdp_process_data_in: xrdp_process_loop failed
33Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] SSL_shutdown: I/O error
34
35[root@100-64-1-123 eproot]# journalctl -u xrdp
36# 以下是正常启动服务,以及一次正常的mstsc连接、断开过程中的日志输出。
37-- Logs begin at Fri 2023-02-03 09:23:45 CST, end at Fri 2023-02-03 11:25:19 CST. --
38Feb 04 09:24:47 100-64-1-123 systemd[1]: Started xrdp daemon.
39Feb 04 09:24:47 100-64-1-123 xrdp[10369]: [INFO ] starting xrdp with pid 10369
40Feb 04 09:24:47 100-64-1-123 xrdp[10369]: [INFO ] address [0.0.0.0] port [3389] mode 1
41Feb 04 09:24:47 100-64-1-123 xrdp[10369]: [INFO ] listening to port 3389 on 0.0.0.0
42Feb 04 09:24:47 100-64-1-123 xrdp[10369]: [INFO ] xrdp_listen_pp done
43Feb 04 09:26:40 100-64-1-123 systemd[1]: Stopping xrdp daemon...
44Feb 04 09:26:40 100-64-1-123 xrdp[10369]: [INFO ] Received termination signal, stopping the server accept new connections thread
45Feb 04 09:26:40 100-64-1-123 systemd[1]: Stopped xrdp daemon.
46Feb 04 09:26:40 100-64-1-123 systemd[1]: Started xrdp daemon.
47Feb 04 09:26:40 100-64-1-123 xrdp[11224]: [INFO ] starting xrdp with pid 11224
48Feb 04 09:26:40 100-64-1-123 xrdp[11224]: [INFO ] address [0.0.0.0] port [5901] mode 1
49Feb 04 09:26:40 100-64-1-123 xrdp[11224]: [INFO ] listening to port 5901 on 0.0.0.0
50Feb 04 09:26:40 100-64-1-123 xrdp[11224]: [INFO ] xrdp_listen_pp done
51Feb 04 09:30:19 100-64-1-123 xrdp[11224]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:100.64.1.10 port 37724
52Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
53Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
54Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SS
55Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] SSL_read: I/O error
56Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] libxrdp_force_read: header read error
57Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] Processing [ITU-T T.125] Connect-Initial failed
58Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] [MCS Connection Sequence] receive connection request failed
59Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
60Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
61Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
62Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
63Feb 04 09:30:19 100-64-1-123 xrdp[12355]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
64Feb 04 09:30:20 100-64-1-123 xrdp[11224]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:100.64.1.10 port 37828
65Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
66Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
67Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SS
68Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [INFO ] Connected client computer name: IMY
69Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
70Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
71Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04
72Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
73Feb 04 09:30:20 100-64-1-123 xrdp[12356]: [INFO ] TLS connection established from ::ffff:100.64.1.10 port 37828: TLSv1.2 with cipher ECDHE-RSA-
74Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
75Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 7864320 MB cache entries 100
76Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
77Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [WARN ] xrdp_caps_process_codecs: unknown codec id 5
78Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
79Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
80Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
81Feb 04 09:30:21 100-64-1-123 xrdp[12356]: [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keyma
82Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] connecting to sesman on 127.0.0.1:3350
83Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] xrdp_wm_log_msg: sesman connect ok
84Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] sesman connect ok
85Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] sending login info to session manager. Please wait...
86Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] xrdp_wm_log_msg: login successful for user eproot on display 10
87Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] login successful for user eproot on display 10
88Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] loaded module 'libvnc.so' ok, interface size 4064, version 4
89Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] VNC started connecting
90Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] VNC connecting to 127.0.0.1 5910
91Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] VNC tcp connected
92Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] VNC security level is 2 (1 = none, 2 = standard)
93Feb 04 09:30:28 100-64-1-123 xrdp[12356]: [INFO ] VNC password ok
94...skipping...
95Feb 04 10:56:02 100-64-1-123 xrdp[32611]: [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SS
96Feb 04 10:56:09 100-64-1-123 xrdp[32611]: [ERROR] SSL_read: I/O error
97Feb 04 10:56:09 100-64-1-123 xrdp[32611]: [ERROR] libxrdp_force_read: header read error
98Feb 04 10:56:09 100-64-1-123 xrdp[32611]: [ERROR] Processing [ITU-T T.125] Connect-Initial failed
99Feb 04 10:56:09 100-64-1-123 xrdp[32611]: [ERROR] [MCS Connection Sequence] receive connection request failed
100Feb 04 10:56:09 100-64-1-123 xrdp[32611]: [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
101Feb 04 10:56:10 100-64-1-123 xrdp[32611]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
102Feb 04 10:56:10 100-64-1-123 xrdp[32611]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
103Feb 04 10:56:10 100-64-1-123 xrdp[32611]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
104Feb 04 10:56:10 100-64-1-123 xrdp[32611]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
105Feb 04 10:56:12 100-64-1-123 xrdp[11224]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:100.64.1.10 port 38142
106Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
107Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
108Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SS
109Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] Connected client computer name: PXP
110Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
111Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
112Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04
113Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
114Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] TLS connection established from ::ffff:100.64.1.10 port 38142: TLSv1.2 with cipher ECDHE-RSA-
115Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
116Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
117Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
118Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [WARN ] xrdp_caps_process_codecs: unknown codec id 5
119Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
120Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
121Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
122Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
123Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keyma
124Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] connecting to sesman on 127.0.0.1:3350
125Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_wm_log_msg: sesman connect ok
126Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] sesman connect ok
127Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] sending login info to session manager. Please wait...
128Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] xrdp_wm_log_msg: login successful for user eproot on display 11
129Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] login successful for user eproot on display 11
130Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] loaded module 'libvnc.so' ok, interface size 4064, version 4
131Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] VNC started connecting
132Feb 04 10:56:12 100-64-1-123 xrdp[32719]: [INFO ] VNC connecting to 127.0.0.1 5911
133Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC tcp connected
134Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC security level is 2 (1 = none, 2 = standard)
135Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC password ok
136Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC sending share flag
137Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC receiving server init
138Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC receiving pixel format
139Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC receiving name length
140Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC receiving name
141Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC sending pixel format
142Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC sending cursor
143Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC connection complete, connected ok
144Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] VNC: Clipboard (if available) is provided by chansrv facility
145Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] connected ok
146Feb 04 10:56:13 100-64-1-123 xrdp[32719]: [INFO ] Layout from OldLayout (geom=1920x1080 #screens=1) : 1804289383:(1920x1080+0+0)
147Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] xrdp_sec_recv: xrdp_mcs_recv failed
148Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] xrdp_rdp_recv: xrdp_sec_recv failed
149Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] libxrdp_process_data: xrdp_rdp_recv failed
150Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] xrdp_process_data_in: xrdp_process_loop failed
151Feb 04 11:00:35 100-64-1-123 xrdp[32719]: [ERROR] SSL_shutdown: I/O error
152
电脑打开MSTSC连接工具,输入100.64.1.123:5901,进入登陆界面:
显示清晰,延迟与winodws mstsc 基本一致,体验良好。
https://www.spice-space.org/ 网站
SPICE连接一般使用于IaaS场景中,是一种虚拟桌面实现,需要集中部署规划,效果是最接近真实显示器连接的。