feat:增加XDRP文档

This commit is contained in:
2026-02-25 19:45:28 +08:00
parent 40b5f462fe
commit e4717ac906
2 changed files with 34 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ export const routers = [
items: [ items: [
{ text: 'VitePress使用和简介', link: '/Others/VitePress' }, { text: 'VitePress使用和简介', link: '/Others/VitePress' },
{ text: '企业微信工作台开发', link: '/Others/WeCom' }, { text: '企业微信工作台开发', link: '/Others/WeCom' },
{ text: 'XDRP简介和安装', link: '/Others/XDRP' },
] ]
} }
]; ];

33
docs/Others/XDRP.md Normal file
View File

@@ -0,0 +1,33 @@
---
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重启服务。
:::