wsl2 ubuntu Gnome 桌面

您所在的位置:网站首页 ubuntu2004升级gnome wsl2 ubuntu Gnome 桌面

wsl2 ubuntu Gnome 桌面

2023-07-14 23:46| 来源: 网络整理| 查看: 265

wsl 子系统桌面,网上很多教程,要装的东西比较多,感觉比较繁琐,果断放弃了。今天给大家分享一个简单的实现。

 

准备工作

WSL 不支持 systemd 而 Gnome 桌面又是基于 systemd,所以先解决这个问题。(参考:https://github.com/DamionGans/ubuntu-wsl2-systemd-script)

sudo apt updatesudo apt install gitgit clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.gitcd ubuntu-wsl2-systemd-script/bash ubuntu-wsl2-systemd-script.sh重新启动子系统,或者重启电脑也行。

 

开始操作(参考:https://developer.aliyun.com/article/764492)

安装 Gnome 桌面sudo apt updatesudo apt install -y ubuntu-desktop

安装 Xrdpsudo apt install -y xrdpsudo systemctl status xrdp

sudo adduser xrdp ssl-certsudo systemctl restart xrdp

查看一下配置文件中的端口(默认:3389)vim /etc/xrdp/xrdp.ini

配置防火墙sudo ufw allow 3389

远程桌面连接

 

 

 

优化安装如下工具

sudo apt install gnome-softwaresudo apt install gnome-tweakssudo apt install gnome-shell-extensions

后面的,自己慢慢折腾吧。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3