Debian 11 bullseye 安装 GNOME 远程桌面 xrdp

安装准备

可用于网络重装后纯净的 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 < /etc/apt/preferences.d/pin
Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650
EOF
安装软件包
apt

你可能感兴趣的:(linux,服务器,linux,debian,运维)