请选择 进入手机版 | 继续访问电脑版
查看: 2756|回复: 1

香橙派4 Ubuntu 20.04 xrdp问题

[复制链接]

1

主题

1

帖子

9

积分

新手上路

Rank: 1

积分
9
发表于 2023-1-3 13:22:00 | 显示全部楼层 |阅读模式
本帖最后由 startmenu 于 2023-1-3 13:29 编辑

机型:香橙派4  4+16G(非LTS)
系统:Ubuntu 20.04 SD卡镜像
使用apt安装xrdp之后,在远程桌面客户端中连接一直黑屏,没有任何显示。
按照网上一些方法改了配置文件,依然如此。
求助,请问如何解决。

systemctl status xrdp
  1. ● xrdp.service - xrdp daemon
  2.      Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
  3.      Active: active (running) since Sat 2022-12-24 22:41:36 CST; 1 weeks 2 days ago
  4.        Docs: man:xrdp(8)
  5.              man:xrdp.ini(5)
  6.    Main PID: 8449 (xrdp)
  7.       Tasks: 1 (limit: 4585)
  8.      Memory: 2.1M
  9.      CGroup: /system.slice/xrdp.service
  10.              └─8449 /usr/sbin/xrdp

  11. Warning: journal has been rotated since unit was started, output may be incomplete.
复制代码


/etc/xrdp/xrdp.ini
  1. [Globals]
  2. ; xrdp.ini file version number
  3. ini_version=1

  4. ; fork a new process for each incoming connection
  5. fork=true

  6. ; ports to listen on, number alone means listen on all interfaces
  7. ; 0.0.0.0 or :: if ipv6 is configured
  8. ; space between multiple occurrences
  9. ;
  10. ; Examples:
  11. ;   port=3389
  12. ;   port=unix://./tmp/xrdp.socket
  13. ;   port=tcp://.:3389                           127.0.0.1:3389
  14. ;   port=tcp://:3389                            *:3389
  15. ;   port=tcp://<any ipv4 format addr>:3389      192.168.1.1:3389
  16. ;   port=tcp6://.:3389                          ::1:3389
  17. ;   port=tcp6://:3389                           *:3389
  18. ;   port=tcp6://{<any ipv6 format addr>}:3389   {FC00:0:0:0:0:0:0:1}:3389
  19. ;   port=vsock://<cid>:<port>
  20. port=3389

  21. ; 'port' above should be connected to with vsock instead of tcp
  22. ; use this only with number alone in port above
  23. ; prefer use vsock://<cid>:<port> above
  24. use_vsock=false

  25. ; regulate if the listening socket use socket option tcp_nodelay
  26. ; no buffering will be performed in the TCP stack
  27. tcp_nodelay=true

  28. ; regulate if the listening socket use socket option keepalive
  29. ; if the network connection disappear without close messages the connection will be closed
  30. tcp_keepalive=true

  31. ; set tcp send/recv buffer (for experts)
  32. #tcp_send_buffer_bytes=32768
  33. #tcp_recv_buffer_bytes=32768

  34. ; security layer can be 'tls', 'rdp' or 'negotiate'
  35. ; for client compatible layer
  36. security_layer=negotiate

  37. ; minimum security level allowed for client for classic RDP encryption
  38. ; use tls_ciphers to configure TLS encryption
  39. ; can be 'none', 'low', 'medium', 'high', 'fips'
  40. crypt_level=high

  41. ; X.509 certificate and private key
  42. ; openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365
  43. ; note this needs the user xrdp to be a member of the ssl-cert group, do with e.g.
  44. ;$ sudo adduser xrdp ssl-cert
  45. certificate=
  46. key_file=

  47. ; set SSL protocols
  48. ; can be comma separated list of 'SSLv3', 'TLSv1', 'TLSv1.1', 'TLSv1.2', 'TLSv1.3'
  49. ssl_protocols=TLSv1.2, TLSv1.3
  50. ; set TLS cipher suites
  51. #tls_ciphers=HIGH

  52. ; Section name to use for automatic login if the client sends username
  53. ; and password. If empty, the domain name sent by the client is used.
  54. ; If empty and no domain name is given, the first suitable section in
  55. ; this file will be used.
  56. autorun=

  57. allow_channels=true
  58. allow_multimon=true
  59. bitmap_cache=true
  60. bitmap_compression=true
  61. bulk_compression=true
  62. #hidelogwindow=true
  63. max_bpp=32
  64. new_cursors=true
  65. ; fastpath - can be 'input', 'output', 'both', 'none'
  66. use_fastpath=both
  67. ; when true, userid/password *must* be passed on cmd line
  68. #require_credentials=true
  69. ; You can set the PAM error text in a gateway setup (MAX 256 chars)
  70. #pamerrortxt=change your password according to policy at http://url

  71. ;
  72. ; colors used by windows in RGB format
  73. ;
  74. blue=009cb5
  75. grey=dedede
  76. #black=000000
  77. #dark_grey=808080
  78. #blue=08246b
  79. #dark_blue=08246b
  80. #white=ffffff
  81. #red=ff0000
  82. #green=00ff00
  83. #background=626c72

  84. ;
  85. ; configure login screen
  86. ;

  87. ; Login Screen Window Title
  88. #ls_title=My Login Title

  89. ; top level window background color in RGB format
  90. ls_top_window_bg_color=009cb5

  91. ; width and height of login screen
  92. ls_width=350
  93. ls_height=430

  94. ; login screen background color in RGB format
  95. ls_bg_color=dedede

  96. ; optional background image filename (bmp format).
  97. #ls_background_image=

  98. ; logo
  99. ; full path to bmp-file or file in shared folder
  100. ls_logo_filename=
  101. ls_logo_x_pos=55
  102. ls_logo_y_pos=50

  103. ; for positioning labels such as username, password etc
  104. ls_label_x_pos=30
  105. ls_label_width=65

  106. ; for positioning text and combo boxes next to above labels
  107. ls_input_x_pos=110
  108. ls_input_width=210

  109. ; y pos for first label and combo box
  110. ls_input_y_pos=220

  111. ; OK button
  112. ls_btn_ok_x_pos=142
  113. ls_btn_ok_y_pos=370
  114. ls_btn_ok_width=85
  115. ls_btn_ok_height=30

  116. ; Cancel button
  117. ls_btn_cancel_x_pos=237
  118. ls_btn_cancel_y_pos=370
  119. ls_btn_cancel_width=85
  120. ls_btn_cancel_height=30

  121. [Logging]
  122. LogFile=xrdp.log
  123. LogLevel=DEBUG
  124. EnableSyslog=true
  125. SyslogLevel=DEBUG
  126. ; LogLevel and SysLogLevel could by any of: core, error, warning, info or debug

  127. [Channels]
  128. ; Channel names not listed here will be blocked by XRDP.
  129. ; You can block any channel by setting its value to false.
  130. ; IMPORTANT! All channels are not supported in all use
  131. ; cases even if you set all values to true.
  132. ; You can override these settings on each session type
  133. ; These settings are only used if allow_channels=true
  134. rdpdr=true
  135. rdpsnd=true
  136. drdynvc=true
  137. cliprdr=true
  138. rail=true
  139. xrdpvr=true
  140. tcutils=true

  141. ; for debugging xrdp, in section xrdp1, change port=-1 to this:
  142. #port=/tmp/.xrdp/xrdp_display_10

  143. ; for debugging xrdp, add following line to section xrdp1
  144. #chansrvport=/tmp/.xrdp/xrdp_chansrv_socket_7210


  145. ;
  146. ; Session types
  147. ;

  148. ; Some session types such as Xorg, X11rdp and Xvnc start a display server.
  149. ; Startup command-line parameters for the display server are configured
  150. ; in sesman.ini. See and configure also sesman.ini.
  151. [Xorg]
  152. name=Xorg
  153. lib=libxup.so
  154. username=ask
  155. password=ask
  156. ip=127.0.0.1
  157. port=-1
  158. code=20

  159. [Xvnc]
  160. name=Xvnc
  161. lib=libvnc.so
  162. username=ask
  163. password=ask
  164. ip=127.0.0.1
  165. port=-1
  166. #xserverbpp=24
  167. #delay_ms=2000

  168. [vnc-any]
  169. name=vnc-any
  170. lib=libvnc.so
  171. ip=ask
  172. port=ask5900
  173. username=na
  174. password=ask
  175. #pamusername=asksame
  176. #pampassword=asksame
  177. #pamsessionmng=127.0.0.1
  178. #delay_ms=2000

  179. [neutrinordp-any]
  180. name=neutrinordp-any
  181. lib=libxrdpneutrinordp.so
  182. ip=ask
  183. port=ask3389
  184. username=ask
  185. password=ask

  186. ; You can override the common channel settings for each session type
  187. #channel.rdpdr=true
  188. #channel.rdpsnd=true
  189. #channel.drdynvc=true
  190. #channel.cliprdr=true
  191. #channel.rail=true
  192. #channel.xrdpvr=true
复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

20

主题

50

帖子

1634

积分

超级版主

Rank: 8Rank: 8

积分
1634
发表于 2023-1-7 16:23:11 | 显示全部楼层
建议用xrdp登录界面选择vnc连接,xrdp的Bug太多,根据日志来看是虚拟桌面环境启动不起来。
如果觉得我的帖子对你有所帮助,可以用支付宝扫描下面二维码的方式捐助,谢谢您的支持!
点我扫描二维码进行捐助
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表