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

推荐订阅源

The Last Watchdog
The Last Watchdog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
Last Week in AI
Last Week in AI
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
博客园 - 叶小钗
NISL@THU
NISL@THU
C
Check Point Blog
K
Kaspersky official blog
N
News and Events Feed by Topic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
Arctic Wolf
T
Threatpost
GbyAI
GbyAI
L
LINUX DO - 热门话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Scott Helme
Scott Helme
P
Privacy International News Feed
The Register - Security
The Register - Security
G
GRAHAM CLULEY
Recorded Future
Recorded Future
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
DataBreaches.Net
J
Java Code Geeks
AWS News Blog
AWS News Blog
Help Net Security
Help Net Security
Engineering at Meta
Engineering at Meta
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
Google DeepMind News
Google DeepMind News

博客园 - 季枫

armbian安装python3.12 英语学习:byoungd / English-level-up-tips Public 为casaos系统安装openclaw,解决访问docker仓库的问题 玩客云 casaOS的armbian系统启动后无法联网(没有ip地址解决办法) 通达信K线解析 ubuntu xfce4 terminal 中文乱码 windows 替代fiddler 玩客云 armbian+CasaOS设置国内的源地址 资金多空线 ffmpeg 抖音下载的音频和视频合并: ps里如何把字弄成复印效果 win11 程序不能启动用--no-sandbox windows 访问armbian SMBA被拒绝 玩客云casaOS实现家里华为路由器访问,用于控制IPTV设置,远程管理小孩看电视 解决windows子系统wsl ubuntu的随机mac问题 六西格玛设计 | 如何运用质量功能展开(QFD)进行设计 windows系统安装ubuntu子系统,解决Easyconnect windows版本对监控软件的限制 解决nginx反向代理 Location重定向到内网地址问题 黑神话boss手残打发 openwrt 作为二级路由器,实现IPV6中继(中国移动宽带发布私有nas、网站等服务) 解决armbain系统挂载移动硬盘NTFS只能读,不能写问题 移动宽带公网IPV6地址检查 nas 移动宽带使用IPV6访问(打通ipv6) Python中的tushare入门
wsl安装ubuntu 20子系统和桌面
季枫 · 2026-01-22 · via 博客园 - 季枫

https://blog.csdn.net/leishupei/article/details/119779889

wsl安装ubuntu子系统方案

一、使用 XRDP + Xfce 桌面环境(推荐)

适用场景:需要轻量级、稳定的远程桌面连接,适合服务器环境或需要长期保持会话的场景。
步骤:

安装 Xfce 桌面环境

sudo apt update && sudo apt upgrade -y
sudo apt install xfce4 xfce4-goodies -y
# xfce4-goodies 包含额外的插件和工具(如面板插件、终端等)

Xfce 是轻量级桌面环境,资源占用低,适合远程连接。

安装并配置 XRDP

sudo apt install xrdp -y
sudo adduser xrdp ssl-cert  # 添加用户组以支持安全连接
sudo systemctl enable xrdp --now
sudo passwd xrdp # 设置 xrdp 的密码 hxq2025188
# sudo systemctl enable xrdp
# sudo systemctl start xrdp

  编辑配置文件 /etc/xrdp/startwm.sh,确保启动 Xfce:

unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
exec startxfce4

切换显示服务器到 Xorg (可选)
Ubuntu 24 默认使用 Wayland,需切换为 Xorg:
临时切换:登录界面点击用户名旁的齿轮图标,选择 Ubuntu on Xorg。
永久切换:编辑 /etc/gdm3/custom.conf,取消注释 WaylandEnable=false 并重启。

sudo sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini

向.xsession中写入xfce4-session

sudo echo xfce4-session >~/.xsession

远程连接
Windows:使用 远程桌面连接工具(mstsc),输入 Ubuntu 的 IP 地址和端口 3389,输入用户名密码即可。
其他系统:使用 Remmina、rdesktop 等客户端。

解决远程桌面无法打开终端:

https://blog.csdn.net/qq_41214610/article/details/106353216

 ubuntu安装RDP远程桌面客户端: https://blog.csdn.net/renhaofan/article/details/81667140

sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt update
sudo apt install remmina remmina-plugin-rdp remmina-plugin-secret