Windows系统安装WSL和LINUX系统

1. 安装WSL准备

参考教程: 官方 或者 老版本windows教程

在Windows store里选择最新的Ubutun版本,安装,重启

2. 安装linux

打开LTS,出现命令窗口

第一次登陆,输入用户名和密码(linux系统下,密码不会有任何提示,输入完成后直接按回车键)

更新数据库

sudo apt update

安装XFCE图形界面

sudo apt-get install xfce4-terminal xfce4

等待~30分钟,期间会有软件选项,直接回车确认就可以

3. 安装VcXsrv

先到官网下载 链接

安装

配置XLaunch,每次都需要

注意这里的选项和填入的数字

注意这个选项需要勾选

4. 配置图形界面

打开LTS

出现命令行窗口

使用vi编辑器,打开.bashrc,在文件最后面加入下面语句:

vi .bashrc

关于vi的用法,参考这个 教程

export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
export LIBGL_ALWAYS_INDIRECT=1

保存退出

5. 打开图形界面

输入命令

startxfce4

出现这个图形界面,安装成功!

vcxsrv_12.png


返回上一页

-- HangYin - 2023-05-22

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng LTS_install_xfce.png r1 manage 17.1 K 2023-05-22 - 04:34 HangYin  
PNGpng LTS_install_xfce_2.png r1 manage 31.5 K 2023-05-22 - 04:46 HangYin  
PNGpng LTS_install_xfce_4.png r1 manage 101.6 K 2023-05-22 - 06:00 HangYin  
PNGpng LTS_install_xfce_5.png r1 manage 9.3 K 2023-05-22 - 06:03 HangYin  
PNGpng LTS_update.png r1 manage 25.3 K 2023-05-22 - 04:34 HangYin  
PNGpng LTS_user.png r1 manage 14.6 K 2023-05-22 - 04:32 HangYin  
PNGpng LTS_windows.png r1 manage 210.6 K 2023-05-22 - 04:31 HangYin  
PNGpng vcxsrv_1.png r1 manage 144.4 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_10.png r1 manage 17.4 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_11.png r1 manage 37.5 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_12.png r1 manage 62.1 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_13.png r1 manage 25.2 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_14.png r1 manage 33.0 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_2.png r1 manage 23.3 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_3.png r1 manage 13.2 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_4.png r1 manage 12.9 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_5.png r1 manage 7.6 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_6.png r1 manage 163.0 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_7.png r1 manage 44.2 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_8.png r1 manage 21.6 K 2023-05-22 - 05:49 HangYin  
PNGpng vcxsrv_9.png r1 manage 20.8 K 2023-05-22 - 05:49 HangYin  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2023-05-22 - HangYin
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback