前言:xrdp模块说明

参考文档:xrdp-genkeymap man page - xrdp - System Administration (mankier.com)

xrdp:远程桌面协议 (RDP) 服务器。

xrdp-sesman: 会话管理器它通过对用户进行身份验证并启动相应的 X 服务器来管理用户会话。

xrdp-dis: 运行 xrdp-dis 时不带任何参数来断开 xrdp 会话的连接。

xrdp-sesadmin:是一个控制台程序来管理正在运行的 XRDP 会话。

一、在初次启动xrdp服务

sudo systemctl restart xrdp

1、xrdp

[20221013-14:10:56] [INFO ] starting xrdp with pid 23602
               ./xrdp/xrdp.c:685:    LOG(LOG_LEVEL_INFO, "starting xrdp with pid %d", pid);  [main 入口]
[20221013-14:10:56] [INFO ] address [0.0.0.0] port [3389] mode 1
               xrdp/xrdp_listen.c:678: LOG(LOG_LEVEL_INFO, "address [%s] port [%s] mode %d", [xrdp_listen_main_loop]
[20221013-14:10:56] [INFO ] listening to port 3389 on 0.0.0.0
                ./xrdp/xrdp_listen.c:687:        LOG(LOG_LEVEL_INFO, "listening to port %s on %s",
[20221013-14:10:56] [INFO ] xrdp_listen_pp done
               xrdp/xrdp_listen.c:674 [break]

2、xrdp-session

[20221013-14:10:54] [INFO ] sesman_main_loop: sesman asked to terminate
[20221013-14:10:54] [INFO ] starting xrdp-sesman with pid 23588
[20221013-14:10:54] [INFO ] Sesman now listening on /var/run/xrdp-sesman/sesman.socket

二、远程桌面开机启动指定app /usr/bin/pluma

1、xrdp

[20221013-17:23:04] [INFO ] Socket 12: connection accepted from 192.168.163.1:59633
[20221013-17:23:05] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20221013-17:23:05] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20221013-17:23:05] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20221013-17:23:05] [ERROR] SSL_read: I/O error
[20221013-17:23:05] [ERROR] libxrdp_force_read: header read error
[20221013-17:23:05] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
[20221013-17:23:05] [ERROR] [MCS Connection Sequence] receive connection request failed
[20221013-17:23:05] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
[20221013-17:23:05] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20221013-17:23:05] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[20221013-17:23:05] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20221013-17:23:05] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[20221013-17:23:05] [INFO ] Socket 12: connection accepted from 192.168.163.1:59635
[20221013-17:23:05] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20221013-17:23:05] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20221013-17:23:05] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20221013-17:23:05] [INFO ] Connected client computer name: WYY-PC
[20221013-17:23:05] [WARN ] Physical desktop dimensions (0x0) are invalid
[20221013-17:23:05] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20221013-17:23:05] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20221013-17:23:05] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000804]
[20221013-17:23:05] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20221013-17:23:05] [INFO ] TLS connection established from 192.168.163.1:59635 TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384
[20221013-17:23:05] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20221013-17:23:05] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
[20221013-17:23:05] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20221013-17:23:05] [WARN ] xrdp_caps_process_codecs: unknown codec id 5
[20221013-17:23:05] [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
[20221013-17:23:05] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20221013-17:23:05] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20221013-17:23:05] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20221013-17:23:05] [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keymap file
[20221013-17:23:06] [WARN ] No information is available to determine login screen DPI
[20221013-17:23:06] [WARN ] No DPI value is available to find login font
[20221013-17:23:06] [WARN ] Using the default_dpi of 96
[20221013-17:23:06] [INFO ] connecting to sesman on sesman.socket
[20221013-17:23:06] [WARN ] Ignoring obsolete SCP port value '3350'
[20221013-17:23:06] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20221013-17:23:06] [INFO ] sesman connect ok
[20221013-17:23:06] [INFO ] sending login info to session manager. Please wait...
[20221013-17:23:06] [ERROR] dynamic_monitor_open_response: error
[20221013-17:23:06] [ERROR] xrdp_rdp_recv: xrdp_channel_process failed
[20221013-17:23:06] [INFO ] xrdp_wm_log_msg: login successful for user kylin on display 10
[20221013-17:23:06] [INFO ] login successful for user kylin on display 10
[20221013-17:23:06] [INFO ] loaded module 'libxup.so' ok, interface size 10408, version 4
[20221013-17:23:06] [INFO ] started connecting
[20221013-17:23:06] [INFO ] lib_mod_connect: connecting via UNIX socket
[20221013-17:23:08] [INFO ] lib_mod_log_peer: xrdp_pid=2397 connected to X11rdp_pid=2404 X11rdp_uid=1000 X11rdp_gid=1000 client=192.168.163.1:59635
[20221013-17:23:08] [INFO ] connected ok

2、xrdp-session

[20221013-17:20:20] [INFO ] sesman_main_loop: sesman asked to terminate
[20221013-17:20:20] [INFO ] starting xrdp-sesman with pid 65947
[20221013-17:20:20] [INFO ] Sesman now listening on /var/run/xrdp-sesman/sesman.socket
[20221013-17:20:38] [INFO ] sesman_main_loop: sesman asked to terminate
[20221013-17:20:55] [WARN ] Window manager (pid 65282, display 11) exited with non-zero exit code 255 and signal 15. This could indicate a window manager config problem
[20221013-17:20:55] [WARN ] Window manager (pid 41708, display 12) exited with non-zero exit code 255 and signal 15. This could indicate a window manager config problem
[20221013-17:20:55] [WARN ] Window manager (pid 22790, display 10) exited with non-zero exit code 255 and signal 15. This could indicate a window manager config problem
[20221013-17:22:00] [INFO ] starting xrdp-sesman with pid 1131
[20221013-17:22:00] [INFO ] Sesman now listening on /var/run/xrdp-sesman/sesman.socket
[20221013-17:23:06] [INFO ] Socket 13: connection accepted from AF_UNIX
[20221013-17:23:06] [INFO ] Received request to create Xorg session for user: kylin
[20221013-17:23:06] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20221013-17:23:06] [INFO ] ++ created session (access granted): username kylin, ip 192.168.163.1
[20221013-17:23:06] [INFO ] Starting session: session_pid 2400, display :10.0, width 1920, height 1080, bpp 24, client ip 192.168.163.1, user name kylin
[20221013-17:23:06] [INFO ] [session start] (display 10): calling auth_start_session from pid 2400
[20221013-17:23:06] [INFO ] Starting X server on display 10: Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20221013-17:23:06] [INFO ] Calling exec (executable: Xorg, arguments: Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log)
[20221013-17:23:07] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20221013-17:23:07] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20221013-17:23:08] [INFO ] Session started successfully for user kylin on display 10
[20221013-17:23:08] [INFO ] Starting the xrdp channel server for display 10
[20221013-17:23:08] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20221013-17:23:08] [INFO ] Session in progress on display 10, waiting until the window manager (pid 2403) exits to end the session
[20221013-17:23:08] [INFO ] Calling exec (executable: /usr/local/sbin/xrdp-chansrv, arguments: /usr/local/sbin/xrdp-chansrv)
[20221013-17:23:08] [INFO ] Starting user requested window manager on display 10: /usr/bin/pluma
[20221013-17:23:08] [INFO ] Calling exec (executable: /usr/bin/pluma, arguments: /usr/bin/pluma )
[20221013-17:23:09] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans

三、远程登录桌面

1、xrdp

[20221013-15:26:02] [INFO ] Socket 12: connection accepted from 192.168.163.1:62683
[20221013-15:26:02] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20221013-15:26:02] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20221013-15:26:02] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20221013-15:26:03] [ERROR] SSL_read: I/O error
[20221013-15:26:03] [ERROR] libxrdp_force_read: header read error
[20221013-15:26:03] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
[20221013-15:26:03] [ERROR] [MCS Connection Sequence] receive connection request failed
[20221013-15:26:03] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
[20221013-15:26:03] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20221013-15:26:03] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[20221013-15:26:03] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20221013-15:26:03] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[20221013-15:26:03] [INFO ] Socket 12: connection accepted from 192.168.163.1:62685
[20221013-15:26:03] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20221013-15:26:03] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20221013-15:26:03] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20221013-15:26:03] [INFO ] Connected client computer name: WYY-PC
[20221013-15:26:03] [WARN ] Physical desktop dimensions (0x0) are invalid
[20221013-15:26:03] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20221013-15:26:03] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20221013-15:26:03] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000804]
[20221013-15:26:03] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20221013-15:26:03] [INFO ] TLS connection established from 192.168.163.1:62685 TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384
[20221013-15:26:03] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20221013-15:26:03] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
[20221013-15:26:03] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20221013-15:26:03] [WARN ] xrdp_caps_process_codecs: unknown codec id 5
[20221013-15:26:03] [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
[20221013-15:26:03] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20221013-15:26:03] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20221013-15:26:03] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20221013-15:26:03] [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keymap file
[20221013-15:26:03] [WARN ] No information is available to determine login screen DPI
[20221013-15:26:03] [WARN ] No DPI value is available to find login font
[20221013-15:26:03] [WARN ] Using the default_dpi of 96
[20221013-15:26:03] [INFO ] connecting to sesman on sesman.socket
[20221013-15:26:03] [WARN ] Ignoring obsolete SCP port value '3350'
[20221013-15:26:03] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20221013-15:26:03] [INFO ] sesman connect ok
[20221013-15:26:03] [INFO ] sending login info to session manager. Please wait...
[20221013-15:26:03] [ERROR] dynamic_monitor_open_response: error
[20221013-15:26:03] [ERROR] xrdp_rdp_recv: xrdp_channel_process failed
[20221013-15:26:03] [INFO ] xrdp_wm_log_msg: login successful for user kylin on display 12
[20221013-15:26:03] [INFO ] login successful for user kylin on display 12
[20221013-15:26:03] [INFO ] loaded module 'libxup.so' ok, interface size 10408, version 4
[20221013-15:26:03] [INFO ] started connecting
[20221013-15:26:03] [INFO ] lib_mod_connect: connecting via UNIX socket
[20221013-15:26:05] [INFO ] lib_mod_log_peer: xrdp_pid=41699 connected to X11rdp_pid=41709 X11rdp_uid=1000 X11rdp_gid=1000 client=192.168.163.1:62685
[20221013-15:26:05] [INFO ] connected ok

2、xrdp-session

[20221013-15:26:03] [INFO ] Socket 13: connection accepted from AF_UNIX
[20221013-15:26:03] [INFO ] Received request to create Xorg session for user: kylin
[20221013-15:26:03] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20221013-15:26:03] [INFO ] ++ created session (access granted): username kylin, ip 192.168.163.1
[20221013-15:26:03] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20221013-15:26:03] [INFO ] Found X server running at /tmp/.X11-unix/X11
[20221013-15:26:03] [INFO ] Starting session: session_pid 41704, display :12.0, width 1920, height 1080, bpp 24, client ip 192.168.163.1, user name kylin
[20221013-15:26:03] [INFO ] [session start] (display 12): calling auth_start_session from pid 41704
[20221013-15:26:03] [INFO ] Starting X server on display 12: Xorg :12 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20221013-15:26:03] [INFO ] Calling exec (executable: Xorg, arguments: Xorg :12 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log)
[20221013-15:26:03] [INFO ] Found X server running at /tmp/.X11-unix/X12
[20221013-15:26:03] [INFO ] Found X server running at /tmp/.X11-unix/X12
[20221013-15:26:03] [INFO ] Session started successfully for user kylin on display 12
[20221013-15:26:04] [INFO ] Session in progress on display 12, waiting until the window manager (pid 41708) exits to end the session
[20221013-15:26:03] [INFO ] Starting the xrdp channel server for display 12
[20221013-15:26:04] [INFO ] Found X server running at /tmp/.X11-unix/X12
[20221013-15:26:04] [INFO ] Calling exec (executable: /usr/local/sbin/xrdp-chansrv, arguments: /usr/local/sbin/xrdp-chansrv)
[20221013-15:26:04] [INFO ] Starting the default window manager on display 12: /etc/xrdp/startwm.sh
[20221013-15:26:04] [INFO ] Calling exec (executable: /etc/xrdp/startwm.sh, arguments: /etc/xrdp/startwm.sh )
[20221013-15:26:05] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans

xrdp 启动分析的更多相关文章

  1. SpringBoot源码解析:tomcat启动分析

    >> spring与tomcat的启动分析:war包形式 tomcat:xml加载规范 1.contex-param: 初始化参数 2.listener-class: contextloa ...

  2. Nginx学习笔记(八) Nginx进程启动分析

    Nginx进程启动分析 worker子进程的执行循环的函数是ngx_worker_process_cycle (src/os/unix/ngx_process_cycle.c). 其中,捕获事件.分发 ...

  3. mkimage工具 加载地址和入口地址 内核启动分析

    第三章第二节 mkimage工具制作Linux内核的压缩镜像文件,需要使用到mkimage工具.mkimage这个工具位于u-boot-2013. 04中的tools目录下,它可以用来制作不压缩或者压 ...

  4. Android Binder------ServiceManager启动分析

    ServiceManager启动分析   简述: ServiceManager是一个全局的manager.调用了Jni函数,实现addServicew getService checkService ...

  5. Android系统--输入系统(七)Reader_Dispatcher线程启动分析

    Android系统--输入系统(七)Reader_Dispatcher线程启动分析 1. Reader/Dispatcher的引入 对于输入系统来说,将会创建两个线程: Reader线程(读取事件) ...

  6. 第3阶段——内核启动分析之start_kernel初始化函数(5)

    内核启动分析之start_kernel初始化函数(init/main.c) stext函数启动内核后,就开始进入start_kernel初始化各个函数, 下面只是浅尝辄止的描述一下函数的功能,很多函数 ...

  7. 一起读源码之zookeeper(1) -- 启动分析

    从本文开始,不定期分析一个开源项目源代码,起篇从大名鼎鼎的zookeeper开始. 为什么是zk,因为用到zk的场景实在太多了,大部分耳熟能详的分布式系统都有zookeeper的影子,比如hbase, ...

  8. Tomcat启动分析(转自:http://docs.huihoo.com/apache/tomcat/heavyz/01-startup.html)

    Tomcat启动分析 1 - Tomcat Server的组成部分 1.1 - Server A Server element represents the entire Catalina servl ...

  9. FPGA低温不能启动分析(转)

    FPGA低温不能启动分析 现象描述:在给medium板光端机做低温试验时,分别给发送版.接收板断电重新启动,发现有的板子在-40°可以启动,而有些板子在-20°都不能启动,需要升高温度到0°以上才能启 ...

  10. AngularJS标准Web业务流程开发框架—1.AngularJS模块以及启动分析

    前言: AngularJS中提到模块是自定义的模块标准,提到这不得不说AngularJS是框架中的老大哥,思想相当的前卫..在这框架满天横行的时代,AngularJS有些思想至今未被超越,当然仁者见仁 ...

随机推荐

  1. Java自动装箱与拆箱

    装箱就是自动将基本数据类型转换为包装器类型(int-->Integer).调用方法:Integer的 valueOf(int) 方法 拆箱就是自动将包装器类型转换为基本数据类型(Integer- ...

  2. 如何使用 JuiceFS 创建 WebDAV 共享

    WebDAV 是一种基于 HTTP 的文件共享协议,最初被设计用于多用户文档协作编辑的场景,也被广泛应用在基于互联网的文件存储.数据同步等网盘类应用场景. 手机端和 PC 端有大量的应用内置了对 We ...

  3. 读Java8函数式编程笔记06_Lambda表达式编写并发程序

    1. 阻塞式I/O 1.1. 一种通用且易于理解的方式,因为和程序用户的交互通常符合这样一种顺序执行的方式 1.2. 将系统扩展至支持大量用户时,需要和服务器建立大量TCP连接,因此扩展性不是很好 2 ...

  4. 深度剖析 Linux 伙伴系统的设计与实现

    在上篇文章 <深入理解 Linux 物理内存分配全链路实现> 中,笔者为大家详细介绍了 Linux 内存分配在内核中的整个链路实现: 但是当内核执行到 get_page_from_free ...

  5. Redis 异步客户端选型及落地实践

    作者:京东科技 王晨 Redis异步客户端选型及落地实践 可视化服务编排系统是能够通过线上可视化拖拽.配置的方式完成对接口的编排,可在线完成服务的调试.测试,实现业务需求的交付,详细内容可参考:htt ...

  6. 前端知识点(js部分)

    目录 一.JS简介 简介 ECMAScript的历史 二.JS基础 1.注释语法 2.引入js的多种方式 3.结束符号 三.变量与常量 编写和运行js代码的两种方式 变量声明 四.基本数据类型 1.数 ...

  7. 11月15日内容总结——软件开发架构、网络编程介绍和OSI七层协议介绍

    目录 一.软件开发架构 1.什么是软件开发架构 2.软件开发架构 架构方式一:c/s架构 架构方式二:b/s架构 架构优劣势 二.架构总结 三.网络编程前戏 1.什么是网络编程 2.学习网络编程的目的 ...

  8. Phi的反函数

    P4780 Phi的反函数 Phi(\(\varphi\) )定义 \(\varphi(n)\) 代表从1-n所有与n互质的数的个数 求\(\varphi(n)\) 普通求法: 首先将n唯一分解为 \ ...

  9. VMware 虚拟机安装 OpenWrt 作旁路由 单臂路由 img 镜像转 vmdk 旁路由无法上网 没网络

    重要注意事项 由于布线原因笔记本只能采用无线的方式连接路由器,在Windows10的环境下使用无线网卡桥接,结果软路由无法上网,翻阅了各种帖子最终发现跟系统底层的协议栈有关系,随即放弃使用有线网卡,不 ...

  10. python爬虫学习——元组,字典(2.14日博客补)

    元组 ''' tup1 = () #创建一个空的元组 print(type(tup1)) #tup2 = (50) #不是元组,python把括号当成了表达式的一部分,即数学运算的括号 #tup2 = ...