惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 三瑞

idea 安装cline openclaw 允许局域网能访问 VirtualBox 共享文件夹配置指南(Ubuntu 24.04 不重启方案) Nginx+Bearer Key 保护 Ollama + OpenClaw 远程连接 ubuntu24.04 安装 vscode Ubuntu 24.04 安装 KVM 完整指南 - 三瑞 Ubuntu 启动卡顿 2 分钟?一条命令解决 Linux下Ollama + AMD ROCm GPU加速安装实操指南 - 三瑞 Ubuntu 24.04 挂载第二块磁盘并扩展 LVM 系统盘 openclaw qqbot 反复提示 ubuntu 终端代理设置 干货|xrdp 无人值守+同屏稳定配置(Ubuntu 22.04/24.04 实测可用) openclaw 使用不同的模型 AMD GPU (RX 7900 XTX) 使用情况查看 Ubuntu 24.04 自带GNOME RDP远程连不上?一招解决xrdp残留冲突问题 Ubuntu 24.04 磁盘空间管理:从查看到 LVM 动态扩容完整指南 避坑指南完整版:OpenClaw 连接 Ollama 详细实战教程 干货|Ubuntu 24.04 + AMD 7900 XTX 24G:Ollama 纯 Vulkan 加速部署(免 ROCm) QQ机器人接入OpenClaw完整指南:从零开始打造你的智能助手 VirtualBox U盘识别问题完美解决指南 ——记一次从入门到放弃再到入门的折腾历程 Ubuntu 系统 root 密码忘记怎么办?一招教你轻松重置 VirtualBox Ubuntu 虚拟机安装增强功能完整指南 HTTP 错误 500.21 - Internal Server Error 处理程序“BlockViewHandler”在其模块列表中有一个错误模块“ManagedPipelineHandler” 达梦数据库(DM)通过数据库类型生成修改字段类型的语句
Windows 连接 Ubuntu XRDP 远程桌面
三瑞 · 2026-03-28 · via 博客园 - 三瑞

Windows 连接 Ubuntu XRDP 远程桌面分为 Ubuntu 端配置 和 Windows 端连接 两部分。以下是详细步骤:

一、Ubuntu 端安装配置 XRDP

1. 安装 XRDP 服务

bash

复制

sudo apt update
sudo apt install xrdp xorgxrdp -y

2. 配置桌面环境

XRDP 与 Ubuntu 默认的 GNOME 桌面兼容性较差,建议安装轻量级的 XFCE 桌面环境

bash

复制

# 安装 XFCE
sudo apt install xfce4 xfce4-goodies -y

3. 添加用户权限(Ubuntu 20+ 必需)

bash

复制

sudo adduser xrdp ssl-cert

4. 启动并启用服务

bash

复制

sudo systemctl restart xrdp
sudo systemctl enable xrdp

5. 配置防火墙

放行 RDP 默认端口 3389

bash

复制

sudo ufw allow 3389/tcp
sudo ufw reload

检查服务状态确认正常监听:

bash

复制

sudo ss -lntp | grep 3389

二、Windows 端连接

1. 打开远程桌面连接

Win + R,输入 mstsc 回车

2. 输入连接信息

  • 计算机:输入 Ubuntu 的 IP 地址(如 192.168.1.100

  • 点击显示选项 → 用户名:输入 Ubuntu 用户名

3. 连接并登录

  • 首次连接会提示证书警告,选择是继续

  • 在 XRDP 登录界面输入 Ubuntu 的用户名和密码

  • 点击 OK 即可进入桌面

三、常见问题解决

表格

连接后黑屏/闪退 确保已创建 ~/.xsession 文件并写入 xfce4-session;Ubuntu 本地会话需注销  无法连接/超时 检查防火墙是否放行 3389 端口;确认 XRDP 服务状态 systemctl status xrdp  复制粘贴失效 XRDP 剪贴板功能有时不稳定,可尝试重启 XRDP 服务  权限不足 确保执行了 sudo adduser xrdp ssl-cert 
问题解决方法

四、注意事项

  1. 端口冲突:XRDP 使用与 Windows 远程桌面相同的 3389 端口,如需修改可编辑 /etc/xrdp/xrdp.ini

  2. 安全性:建议在局域网内使用,公网使用需配合 VPN 或 SSH 隧道

  3. 多用户连接:如需多个用户同时连接,需为每个用户创建系统账户并单独配置

按照以上步骤配置后,您就可以使用 Windows 自带的远程桌面工具像连接 Windows 一样方便地连接 Ubuntu 了。

image

问题1:虽然可以远程桌面,但好像打开终端不会显示到远程桌面上样?

方法一:修改默认终端模拟器(最常用)

XFCE 默认可能指向了错误的终端命令,导致终端在本地显示

bash

复制

# 查看当前默认终端
sudo update-alternatives --config x-terminal-emulator

# 选择 xfce4-terminal 或其他纯 X11 终端(如 xterm)

或者在 XFCE 设置中修改:

  1. 远程桌面中打开 Applications → Settings → Settings Manager

  2. 选择 Preferred Applications → Utilities

  3. 将 Terminal Emulator 改为 Xfce Terminal 或 X-Terminal

修改后需要 断开 XRDP 连接并重新连接 才能生效。