Summary of Windows SubSystem for Linux
阿新 • • 發佈:2018-11-23
reat ive all 開源 inf sshd_conf sources pre remove
Summary of Windows SubSystem for Linux
Install Ubuntu
Run PowerShell as administrator and input:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Install Ubuntu 18.04 LTS from Microsoft Store
Setup SSH
Remove inherent openssh-server and Installing a new openssh-server, because there are some problem with the former one.
sudo apt-get remove openssh-server
sudo apt-get install openssh-server
Edit the ssh server configuration file.
sudo vim /etc/ssh/sshd_config
Change to
PasswordAuthentication yes # no -> yes
Restart ssh service
sudo service ssh --full-restart
Change the source
back up the inherent source file
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
create a new source file
sudo vim /etc/apt/sources.list
Paste these in it
# 默認註釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消註釋 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse # 預發布軟件源,不建議啟用 # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
Reference
[1] Windows 10 Installation Guide. https://docs.microsoft.com/zh-cn/windows/wsl/install-win10
[2] Win10 配置 Linux Ubuntu 子系統:使用教程及技巧. https://www.jianshu.com/p/5cf6849aa28f
[3] Ubuntu 鏡像使用幫助. 清華大學開源軟件鏡像站. https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
Summary of Windows SubSystem for Linux