Windows 远程桌面连接Ubuntu Desktop
这篇文章简单介绍一下使用xrdp
使Windows 远程桌面连接Ubuntu Desktop。
需要先安装好Ubuntu Desktop。这里以Ubuntu Desktop 24.04 为例。
root@guest-VMware-Virtual-Platform:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
sudo apt --fix-broken install
vi /etc/apt/sources.list.d/ubuntu.sources
新增下面内容:
Types: deb
URIs: http://br.archive.ubuntu.com/ubuntu/
Suites: jammy noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: jammy-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev
sudo apt install xrdp
sudo systemctl enable xrdp
sudo systemctl start xrdp
安装完成后,可以使用windows 远程桌面以root
用户进行登录,可能会出现输入密码后不能登录,解决方法如下:
使用ssh登录后,
sudo vi /etc/pam.d/gdm-autologin
#auth requied pam_succeed_if.so user != root quiet success #注释这行
sudo vi /etc/pam.d/gdm-password
#auth requied pam_succeed_if.so user != root quiet success #注释这行