Wsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| #static_ip
sed -i '/wsl/d' /mnt/c/Windows/System32/drivers/etc/hosts
echo "$(ifconfig eth0 | grep 'broadcast' | cut -d " " -f 10) wsl" >> /mnt/c/Windows/System32/drivers/etc/hosts
#重啟wsl
powershell -command "Get-Service LxssManager | Restart-Service"
powershell -command "Disable-MMAgent -mc"
NET STOP "LxssManager"
powershell -command "Enable-MMAgent -mc"
NET START "LxssManager"
#wsl init
powershell -command wsl sudo /bin/bash /etc/init.sh
#powershell run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# ms-windows-store://search/?query=WSL
# x11
apt-get install x11-apps
echo "export DISPLAY=127.0.0.1:0" >> ~/.bashrc
# terminal
https://goreliu.github.io/wsl-terminal/
|