安装准备
可用于网络重装后纯净的 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: 来源
版权声明:本文为ziseon原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。