V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sjmcefc2
V2EX  ›  程序员

求教 xrdp 闪退,是什么原因呢?

  •  
  •   sjmcefc2 · 2023-02-11 23:38:19 +08:00 · 2734 次点击
    这是一个创建于 680 天前的主题,其中的信息可能已经有所发展或是发生改变。

    全新安装的 ubunu ,安装 xrdp 之后,mstsc 访问输入用户名密码之后闪退,目前用的是 gnome ,爬了不少的文章,好像没有一个情况是一样的,大家有遇到这样的情况吗? 难道只能用 realvnc ?

    15 条回复    2023-02-14 09:33:33 +08:00
    flyqie
        1
    flyqie  
       2023-02-12 00:48:36 +08:00 via Android
    建议先阅读 提问的智慧。

    你这个问题不带上 log 很难得到解答。。
    sjmcefc2
        2
    sjmcefc2  
    OP
       2023-02-12 01:09:21 +08:00
    [20230212-02:05:39] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.99.55 port 59020
    [20230212-02:05:39] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20230212-02:05:39] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20230212-02:05:39] [ERROR] SSL_read: Failure in SSL library (protocol error?)
    [20230212-02:05:39] [ERROR] SSL: error:0A000126:SSL routines::unexpected eof while reading
    [20230212-02:05:39] [ERROR] libxrdp_force_read: header read error
    [20230212-02:05:39] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
    [20230212-02:05:39] [ERROR] [MCS Connection Sequence] receive connection request failed
    [20230212-02:05:39] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
    [20230212-02:05:39] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
    [20230212-02:05:39] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
    [20230212-02:05:39] [ERROR] xrdp_iso_send: trans_write_copy_s failed
    [20230212-02:05:39] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
    [20230212-02:05:46] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.99.55 port 59023
    [20230212-02:05:46] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
    [20230212-02:05:46] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
    [20230212-02:05:46] [INFO ] Connected client computer name: TICTORK
    [20230212-02:05:46] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
    [20230212-02:05:46] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
    [20230212-02:05:47] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000804]
    [20230212-02:05:47] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
    [20230212-02:05:47] [INFO ] TLS connection established from ::ffff:192.168.99.55 port 59023: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
    [20230212-02:05:47] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
    [20230212-02:05:47] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
    [20230212-02:05:47] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
    [20230212-02:05:47] [WARN ] xrdp_caps_process_codecs: unknown codec id 5
    [20230212-02:05:47] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
    [20230212-02:05:47] [WARN ] Cannot find keymap file /etc/xrdp/km-00000804.ini
    [20230212-02:05:47] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
    [20230212-02:05:47] [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keymap file
    [20230212-02:05:54] [INFO ] connecting to sesman ip 127.0.0.1 port 3350
    [20230212-02:05:54] [INFO ] xrdp_wm_log_msg: sesman connect ok
    [20230212-02:05:54] [INFO ] sesman connect ok
    [20230212-02:05:54] [INFO ] sending login info to session manager, please wait...
    [20230212-02:05:54] [INFO ] xrdp_wm_log_msg: login successful for display 10
    [20230212-02:05:54] [INFO ] login successful for display 10
    [20230212-02:05:54] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
    [20230212-02:05:54] [INFO ] started connecting
    [20230212-02:05:54] [INFO ] lib_mod_connect: connecting via UNIX socket
    [20230212-02:05:54] [INFO ] lib_mod_log_peer: xrdp_pid=3269 connected to X11rdp_pid=3272 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.99.55 client_port=59023
    [20230212-02:05:54] [INFO ] connected ok
    sjmcefc2
        3
    sjmcefc2  
    OP
       2023-02-12 01:09:53 +08:00
    感谢提醒,感觉日志没有错误啊,可是就是闪退。
    Sirius8
        4
    Sirius8  
       2023-02-12 09:49:36 +08:00
    遇到过闪退问题,但没有细查,桌面是 xfce4 ,用 windows store 里的远程桌面客户端连接闪退,猜测是安装了多个桌面环境导致,当时解决办法是将用 apt 安装的包删除,重装桌面和 xrdp 然后重启
    NoAnyLove
        5
    NoAnyLove  
       2023-02-12 12:40:43 +08:00
    以前也遇到类似的问题。不一定是 xrdp 的问题,还有可能是桌面或者 x.org 的问题,对应的几个服务的日志都查看一下。
    sjmcefc2
        6
    sjmcefc2  
    OP
       2023-02-12 13:13:23 +08:00
    看起来生产还是不好运用啊,大规模部署估计还是遇到很多问题
    silkriver
        7
    silkriver  
       2023-02-12 14:48:39 +08:00
    用户已经在本机上登录同一桌面环境时远程就会闪退的,本机要先注销
    sjmcefc2
        8
    sjmcefc2  
    OP
       2023-02-12 21:13:00 +08:00
    @silkriver 注销了也不行,有点诡异啊
    ragnaroks
        9
    ragnaroks  
       2023-02-13 08:45:26 +08:00
    debian 系 KDE 是有这个问题,不是 xrdp 的问题,如果是 gnome 的话可能要再折腾下。

    建议不要浪费时间直接使用 x2go 替代。
    Sokiy
        10
    Sokiy  
       2023-02-13 10:50:15 +08:00
    全新安装要不要考虑 Ubuntu 22.04 ,gnome 42 版本自带 RDP 协议。
    我周末测试了一下就流畅度而言吊锤 xrdp 和 VNC 。
    ProPh3t
        11
    ProPh3t  
       2023-02-13 10:53:11 +08:00
    我盲猜一波,是你没有把物理机上的相同用户退出去。或者你的 rdp 没有配置远程连接时没有退出已登录用户。
    另外,较新的 gnome 自带 rdp 服务,直接打开就行,或者用 nomachine ( nx 协议,效果是比 rdp 好的,个人使用体验,不做论证)
    sjmcefc2
        12
    sjmcefc2  
    OP
       2023-02-13 22:11:14 +08:00
    @Sokiy 全新安装?现在自带了 rdp 协议?
    sjmcefc2
        13
    sjmcefc2  
    OP
       2023-02-13 22:15:20 +08:00
    @Sokiy 牛!!!!

    周末也是发现有这么一个选项,不过迷信 fdp 服务了,

    这个真香,得好好普及啊
    sjmcefc2
        14
    sjmcefc2  
    OP
       2023-02-13 22:17:00 +08:00
    vnc 可以忘记了,确实很不错的说。
    sjmcefc2
        15
    sjmcefc2  
    OP
       2023-02-14 09:33:33 +08:00
    @Sokiy 这个用下来的缺点:如果机器锁屏了,就不能登录了。不知道怎么解决比较好。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3354 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:32 · PVG 19:32 · LAX 03:32 · JFK 06:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.