WSL1 - Install & First Steps
Wie installieren? Erste Schritte...
[Powershell mit Administratorrechten öffnen]
cd C:\Users\Admin\
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
[check:]
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
[download debian:]
Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile ~/Downloads/debian.zip -UseBasicParsing
Expand-Archive ~/Downloads/debian.zip ~/debian
[reboot]
[install debian]
~/debian/debian.exe
[Benutzername: admin / Passwort vergeben]
[set root pw]
sudo passwd
exit
[wenn gewünscht, in einer Powershell] ~/debian/./debian.exe config --default-user root
[start debian] wsl
apt-get update
apt-get install aptitude
[Buster sources.list editieren, siehe unten)
aptitude update && aptitude upgrade
aptitude full-upgrade
Weitere Installationen:
aptitude install bash-completion openssh-client openssh-server rsync
Restart wsl1:
[Powershell:] Restart-Service LxssManager
Buster sources.list
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
#deb http://deb.debian.org/debian buster-backports main contrib non-free
#deb-src http://deb.debian.org/debian buster-backports main contrib non-free