在WSL2上安装Ubuntu 22.04并配置GNOME桌面环境,可以按照以下步骤进行: 1. 安装WSL2 首先,确保你的Windows系统已经启用了WSL2功能。如果没有,可以通过以下步骤启用: 打开“PowerShell”作为管理员。 运行以下命令以启用WSL2: powershell wsl --install -d Ubuntu-22.04 注意:此命令将同时安装WSL2和Ubuntu 22.04。
2.设置WSL2并安装Gnome 0.在境内使用Ubuntu时更换软件源可以极大提升效率。参见以下网页(排名不分先后): http://mirrors.ustc.edu.cn/help/ubuntu.htmlhttps://developer.aliyun.com/mirror/ubuntu/?spm=a2c6h.25603864.0.0.426228b9vNlJn4https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/https://mirrors.huaw...
想要传统的 Ubuntu 体验,那就请安装GNOME桌面环境,本教程将指导您安装 Ubuntu 的默认桌面环境 GNOME。 WSL2 中的 Ubuntu 20.04 不能运行默认版本的 GNOME,原因是:sudo apt install 默认安装的 GNOME 版本是高于3.34的,GNOME 从 3.34 版本开始就完全依赖 systemd 了,WSL2中是没有systemd的,自然也就运行不了新版的...
同时又想使用Linux的命令和算法库,特别是深度学习中一些库的编译和使用在Linux更为方便。这时候WSL就是...
WSL 不支持 systemd 而 Gnome 桌面又是基于 systemd,所以先解决这个问题。 sudo apt update sudo apt install git git clone https:///DamionGans/ubuntu-wsl2-systemd-script.git cd ubuntu-wsl2-systemd-script/ bash 安装完systemd之后,退回windows终端(直接叉掉这个终端就行),务必输入 ...
sudo apt install gnome-text-editor-y 启动 输入: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 gnome-text-editor~/.bashrc 注意: GNOME 文本编辑器取代 gedit 成为 Ubuntu 22.10 中 GNOME/Ubuntu 的默认文本编辑器。 如果运行的是较旧版本的 Ubuntu,并且想要使用 gedit(以前的默认文本编辑器),...
sudo apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal ubuntu-desktop#安装桌面环境所需的软件包vncserver# 启动VNC# 第一次启动需要设置VNC的登录密码,输入VNC登录密码和确认密码,并在view-only提示中输入n,并按Entercp ~/.vnc/xstartup ~/.vnc/xstartup.bak# 备份VNC的xstartup配置...
WSL2中的Ubuntu上运行GNOME的问题 WSL2 + Ubuntu 18.04 在Win10上的WSL2中安装Ubuntu 18.04,在这个Ubuntu中安装运行gnome没问题,sudo apt install安装的gnome版本是3.28.1。 实际操作步骤如下: 一、Win10这一侧,用开源的VcXsrv: vcxsrv.exe -ac -wgl -fullscreen -dpms ...
更新Ubuntu软件包,在【Ubuntu】终端输入: sudoaptupdate 安装Gnome文本编辑器,在【Ubuntu】终端输入: 2.2 配置Ubuntu更新源 打开软件源配置文件(根据提示输入密码): sudognome-text-editor /etc/apt/sources.list.d/ubuntu.sources 用下面的内容完全覆盖文件中内容,并保存: ...
bash ubuntu-wsl2-systemd-script.sh 重新启动子系统,或者重启电脑也行。 开始操作(参考:https://developer.aliyun.com/article/764492) 安装Gnome 桌面 sudo apt update sudo apt install -y ubuntu-desktop 安装Xrdp sudo apt install -y xrdp sudo systemctl status xrdp ...