Skip to content

Commit 63cfbc9

Browse files
author
蔡承涛
committed
docs(install): 更新linux(wsl)环境配置文档
- 添加wsl2配置步骤 - 更新软件安装流程 - 补充dns配置说明
1 parent e7af579 commit 63cfbc9

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

docs/install/README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,22 @@
1414

1515
## linux(wsl) 环境配置
1616

17-
1. 安装git
18-
2. 安装powershell
19-
3. 执行 profile/installer/installApp.ps1 安装
20-
4. 执行 profile/profile_unix.ps1 -loadProfile 加载配置
17+
1. 配置wslconfig,执行`./linux/wsl2/loadWslConfig.ps1`
18+
2. 配置wsl2 dns
19+
20+
```
21+
# /etc/wsl.conf 这个文件增加下面的配置后,就不会随机生成了
22+
[network]
23+
generateResolvConf = false
24+
```
25+
26+
之后`sudo vi /etc/resolv.conf`,添加下面的内容
27+
28+
```
29+
nameserver 114.114.114.114
30+
```
31+
32+
3. 安装git,安装gh `sudo apt install git gh`或者直接执行linux/00
33+
4. 安装homebrew powershell,执行`linux\01installHomeBrew.sh`
34+
5. 执行 `linux\02installApps.ps1`
35+
6. 执行 profile/profile_unix.ps1 -loadProfile 加载配置

0 commit comments

Comments
 (0)