Ovaj vodič pokazuje kako instalirati Windows Subsystem for Linux (WSL2).
WSL (Windows Subsystem for Linux) omogućuje pokretanje Linuxa izravno u Windowsu:
/mnt/c/, /mnt/d/ itd.Zašto nam treba WSL?
# Kao Administrator u PowerShell-u: wsl --install -d Ubuntu-22.04
Ovo instalira:
Nakon instalacije: Ponovno pokrenite računalo!
# Omogućite WSL i Virtual Machine Platform dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Ponovno pokrenite računalo.
wsl --set-default-version 2
Ubuntu (preporučeno):
wsl --install -d Ubuntu-22.04
Nakon WSL instalacije, trebate instalirati build alate:
# Otvorite WSL wsl # Ažurirajte sustav sudo apt update && sudo apt upgrade -y # Instalirajte build alate sudo apt install -y \ build-essential \ perl \ nasm \ git \ cmake \ pkg-config
Svi Windows diskovi su montirani:
# C: disk ls /mnt/c/ # D: disk (naši projekti) ls /mnt/d/Projects/openssl-3.6.0/
\\wsl$\Ubuntu-22.04\home\<korisnik>\
U Exploreru: Upišite \\wsl$ u adresnu traku.
Wolfgang van der Stille @ EMSR DATA d.o.o. - Post-Quantum Cryptography Professional