使用fiddler 手动安装WSL

通过使用fiddler 手动安装WSL

启用WSL不多赘述


配置软件fiddler 4.6.20171.14978

# 网上下载fiddler 4.6并且安装
# 打开软件>Tools>Telerik fiddler Options>HTTPS
# 选中以下3项,OK保存
# 选中Capture HTTPS CONNECTs
# 选中Decrypt HTTPS traffic
# 选中Ignore server certificate errors
# 回到主界面,打开右侧AutoResponder
# 现在进入cmd>bash>按y,开始下载,抓取地址,可以在fiddler主界面左侧看到类似:
https://wsldownload.azureedge.net/16.04.2-server-cloudimg-amd64-root.tar.gz
# 的链接,ctrl+C停止cmd命令,因为也下载不下来
# 那么现在开始处理我们已经下载好的文件,打开右侧AutoResponder
# 选中Enable rules 
# 选中Unmatched request passthrough
# 选中Enable Latency
# 然后选中左侧那个地址,单击右侧Add Rule,添加规则:
# 右侧最下面空框中选中find a file ,然后选择我们已经下载好的文件,点击Save
# 至此,进入cmd>bash>按y,开始下载,就直接下载本地的文件了.

提示如下

键入“y”继续: y
正在从 Windows 应用商店下载... 100%
正在提取文件系统,这将需要几分钟的时间...
是否要将 Ubuntu 区域设置设置为与 Windows 区域设置(zh-CN)匹配?
默认区域设置为 en_US。
键入“y”继续: y

请创建默认的 UNIX 用户帐户。该用户名不需要与 Windows 用户名匹配。
有关详细信息,请访问: https://aka.ms/wslusers
请输入新的 UNIX 用户名: lxx
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
安装成功!
环境将立即启动...
文档在以下网址提供:  https://aka.ms/wsldocs
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

lxx@WIN10-20180323S:/mnt/c/Users/Administrator$

关于源

sudo nano /etc/apt/sources.list
# 默认
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
# 国内 阿里
deb https://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
# 更新
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

猜你喜欢

转载自blog.csdn.net/HD2killers/article/details/83689863