From e4717ac906d9b96beb05b5afaeac79318c860313 Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Wed, 25 Feb 2026 19:45:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0XDRP=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/theme/router/index.ts | 1 + docs/Others/XDRP.md | 33 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 docs/Others/XDRP.md diff --git a/docs/.vitepress/theme/router/index.ts b/docs/.vitepress/theme/router/index.ts index 8d251ea..a7f3919 100644 --- a/docs/.vitepress/theme/router/index.ts +++ b/docs/.vitepress/theme/router/index.ts @@ -90,6 +90,7 @@ export const routers = [ items: [ { text: 'VitePress使用和简介', link: '/Others/VitePress' }, { text: '企业微信工作台开发', link: '/Others/WeCom' }, + { text: 'XDRP简介和安装', link: '/Others/XDRP' }, ] } ]; \ No newline at end of file diff --git a/docs/Others/XDRP.md b/docs/Others/XDRP.md new file mode 100644 index 0000000..8915c41 --- /dev/null +++ b/docs/Others/XDRP.md @@ -0,0 +1,33 @@ +--- + title: XDRP简介和安装 + date: 2026-02-25 +--- + +# 一、简介 +  XDRP​ 是一个基于 RDP(Remote 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重启服务。 +::: \ No newline at end of file