sudo apt install ufw # version 0.36.2-1 Step 5: Connect to Remote Desktop The Xrdp service is successfully installed and ready to connect. On your Windows client, open the RDP client and enter the IP address of the Ubuntu system. On the Windows system launch the RDP client: Once connecte...
选择安装桌面环境,例如GNOME或Xfce4。以下是以安装GNOME桌面环境为例的步骤: bash sudo apt-get install ubuntu-desktop 这将安装GNOME桌面环境以及相关的软件包。安装完成后,你应该能够通过WSLg在Windows上看到一个完整的Ubuntu桌面环境。 6. 验证和启动桌面环境 安装完成后,启动Ubuntu WSL并等待一段时间,GNOME桌面...
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配置...
桌面环境有xfce4、gnome等,在这里选择最经典的gnome桌面环境,即和Ubuntu官方版本的桌面环境相似。 在Ubuntu命令行中依次执行如下命令: # 安装gnome桌面环境sudo apt-getinstall ubuntu-desktop# 安装相关工具sudo apt-getinstall gnome-tweak-tool 4. 安装systemctl Windows子系统下安装的分发版Ubuntu默认不支持systemctl...
记得:在Windows中用“wsl --shutdown”彻底关闭WSL2.在Ubuntu终端中运行“sudo systemctl start xrdp”并在Windows中打开之前保存的RDP文件以连接到Gnome. 3.优化(? 汉化命令行: sudoaptinstall-y language-pack-zh-hanssudodpkg-reconfigure locales 然后按住下方向键 ...
在Ubuntu命令行中依次执行如下命令: # 安装gnome桌面环境 sudo apt-get install ubuntu-desktop # 安装相关工具 sudo apt-get install gnome-tweak-tool 4. 安装systemctl Windows子系统下安装的分发版Ubuntu默认不支持systemctl命令,然而systemctl在原生版Ubuntu中是非常重要的,在这里手动安装。
linuxmi@linuxmi:~/www.linuxmi.com$ sudo apt-fast install ubuntu-desktop gnome 1. 请使用apt-fast,其实安装也很快的。我们需要在开始GUI会话之前配置它。 打开你的 .bashrc 文件,里面有在启动时执行的所有命令: 复制 linuxmi@linuxmi:~/www.linuxmi.com$ nano ~/.bashrc ...
重启ubuntu终端。输入 systemctl 确认systemctl能用,出来一堆log,失败的话会是System has not been booted with systemd as init system (PID 1). Can't operate. 接下来安装图形界面 sudo apt install ubuntu-desktop sudo service dbus restart 输入sudo vi ~/.bashrc,在.bashrc文件中导入(vi的插入用 i,输入...
安装Ubuntu 桌面版: sudo apt install ubuntu-desktop 4.配置显示管理器 Ubuntu 桌面版默认使用 Gnome Display Manager (GDM) 作为显示管理器。由于 WSL2 不支持显示管理器,我们需要使用其他方法来启动桌面环境。 安装Xfce4 桌面环境: sudo apt install xfce4 xfce4-goodies ...
安装Gnome图形界面 在Ubuntu 中,输入以下命令安装 Ubuntu Desktop : sudo apt install -y ubuntu-desktop 安装完后,输入sudo vi ~/.bashrc,在文件末尾按 “i” 键添加: exportDISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk'{print $2}'):0.0 ...