Files
blog-press/docs/Others/XDRP.md
2026-02-25 19:45:28 +08:00

33 lines
1013 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: XDRP简介和安装
date: 2026-02-25
---
# 一、简介
  XDRP 是一个基于 RDPRemote Desktop Protocol 远程桌面协议)的开源服务器软件,允许用户通过远程桌面客户端连接到 Linux 服务器,提供图形化远程访问功能。
  特点:
1. 支持 Windows 远程桌面客户端
2. 支持多种桌面环境GNOME、KDE、XFCE 等
3. 使用标准的 3389 端口
4. 轻量级,资源占用较少
5. 不需要连接显示器
# 二、安装
```bash
sudo apt update
sudo apt install xrdp -y
sudo systemctl enable xrdp
```
# 三、连接
  打开Windows自带的远程桌面连接工具输入ip、用户名和密码登录。
::: tip
如果遇到黑屏的情况,打开/etc/xrdp/startwm.sh脚本`if test -r /etc/default/locale; then fi`这段结束后,插入以下内容:
```bash
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
. $HOME/.profile
```
然后sudo systemctl restart xrdp重启服务。
:::