xrDP使用RDX(Microsoft远程桌面协议)提供远程机器的图形登录。xrDP接受来自各种SDP客户端的连接:FreeRDX、rdesktop、NeutrinoRDX和Microsoft远程桌面客户端(适用于Windows、macOS、iOS和Android)。
XRDP 【入门篇】#
As Windows-to-Windows Remote Desktop can, xrdp supports not only graphics remoting but also
- two-way clipboard transfer (text, bitmap, file)
- audio redirection
- drive redirection (mount local client drives on remote machine)
Ubuntu 22.04#
本文基于 Ubuntu 22.04 桌面版镜像,默认桌面环境为 GNOME。
- 安装
apt-get install -y xrdp
- 参数调整
xrdp.ini
# 打开文件
vim /etc/xrdp/xrdp.ini
# 开启优化参数
tcp_send_buffer_bytes=4194304
tcp_recv_buffer_bytes=6291456
- 桌面优化
# 创建文件【建议在所有用户都创建】
vim ~/.xsessionrc
# 添加配置
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
- 重启系统
reboot
问题#
Ubuntu22.04#
连接黑屏、闪退
- 按照其他文章增加以下参数后,连接黑屏、闪退,本人使用的 ubuntu22.04,其他系统或版本未测试,请自行测试。
# 配置文件
/etc/xrdp/startwm.sh
# 参数
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
客户端#
macOS#
- Windows App
windows#
linux#
结语#
参考:




