xrdp 相当慢

Höl*_*lin 14 xorg xrdp 20.04

使用xrdpwindowXorg系统从win10连接到ubuntu 20.04我的本地网络。连接速度非常慢。相比之下,通过互联网通过 VPN 的标准 rdp 连接(win10 到 win10)比我的本地xrdp.

/etc/xrdp/xrdp.ini
max_bpp=32
Run Code Online (Sandbox Code Playgroud)

通过 xrdp 登录后我的桌面环境是:

~$ echo $XDG_CURRENT_DESKTOP
GNOME
Run Code Online (Sandbox Code Playgroud)

小智 10

确保在 RDP 客户端体验选项卡中选择连接速度。将其设置为“LAN(10Mbits 或更高)”。这将启用 RFX 编解码器。

请参阅https://github.com/neutrinolabs/xrdp/discussions/2136


san*_*lio 5

假设您使用 Xfce4,请尝试禁用合成

$ xfconf-query --channel=xfwm4 --property=/general/use_compositing --type=bool --set=false --create
Run Code Online (Sandbox Code Playgroud)

您可以使此设置永久xorg.conf

Section "Extensions"
    Option "Composite" "Disable"
EndSection
Run Code Online (Sandbox Code Playgroud)

您还可以通过 GUI 解决这个问题(如果需要,请安装它)

$ xfwm4-tweaks-settings
Run Code Online (Sandbox Code Playgroud)

如果您使用 KDE,请尝试禁用合成器,设置->显示和监视器-> 合成器。

另外,尝试在客户端配置中使用较少数量的颜色(16 位而不是 32 位)。

另外,请在 中尝试这些选项/etc/xrdp/xrdp.ini

有关的

  1. https://unix.stackexchange.com/questions/22077/xfce-or-pure-x11-commands-toggle-compositing-immediately-without-restarting-x
  2. https://unix.stackexchange.com/questions/4282/disable-composite-without-restarting-x
  3. https://superuser.com/questions/1539900/slow-ubuntu-remote-desktop-using-xrdp
  4. https://owendavies.net/articles/install-desktop-gui-on-ubuntu-server/
  5. https://github.com/neutrinolabs/xrdp/issues/1600
  6. xrdp 和 xfce4 Ubuntu > 18.04 不可用
  7. https://github.com/neutrinolabs/xrdp/issues/501#issuecomment-262905321


Mar*_*osD 2

经过大量研究后,我通过这些设置获得了良好的性能:

  • xfce4
  • xorgxrdp-魅力

在 /etc/xrdp/sesman.ini 和 /etc/xrdp/xrdp.ini 中:

  • 政策=UBDI
  • 最大bpp=16
  • xserverbpp=16
  • 使用压缩=是
  • crypt_level=无
  • KillDisconnected=真
  • 断开连接时间限制=0
  • tcp_send_buffer_bytes=4194304

TCP 调整(2 倍请求缓冲区大小):

  • 须藤 sysctl -w net.core.wmem_max=8388608

请参阅https://github.com/neutrolalabs/xrdp/issues/1483

禁用合成器:

  • xfconf-query -c xfwm4 -p /general/use_compositing -t bool -s false