安装准备
可用于网络重装后纯净的 Debian 11,这里使用 root 账户登录,注意权限问题。
安装 gnome xrdp
apt update
apt install gnome xrdp -y
可选,新增普通用户
adduser 新用户
然后,使用远程桌面连接,输入凭证登录后,会看到错误 Oh no! Something has gone wrong.
错误解决
这是因为现在 bullseye stable 中 xrdp 版本过低 (xrdp -v, 0.9.12),不支持新版 Debian。
更安全和便捷的解决方法是,增加testing源,并设置较低的优先级,安装新版本的 xrdp。
修改软件源
echo 'deb http://deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
apt update
注:deb.debian.org 可按需自行换成 mirrors.163.com 等源
cat <<EOF > /etc/apt/preferences.d/pin
Package: *
Pin: release a=stable
Pin-Priority: 700
Package: *
Pin: release a=testing
Pin-Priority: 650
EOF
安装软件包
apt install -qq -y -t testing xrdp
apt install -qq -y -t testing xorgxrdp
这里安装了 xrdp 0.9.17,同步 github 上最新发布版。
最后
重启服务器,再次尝试登录。
ref: 来源

本文介绍了如何在Debian 11 bullseye上安装和配置GNOME远程桌面xrdp,包括安装准备、解决因xrdp版本过低导致的登录错误,以及通过添加testing源安装新版本xrdp的步骤。完成这些步骤后,需要重启服务器以使配置生效。
4592

被折叠的 条评论
为什么被折叠?



