
wsl --set-default-version 2 (i.e. type "wsl --set-default-version 2" and press enter), then run wsl --install -d Ubuntu. If PowerShell can't find the wsl command, make sure your Windows is fully updated, then try again. If it still isn't there, make sure PowerShell is in 64-bit mode by running [Environment]::Is64BitProcess (which will return "True" if it is and "False" if it isn't). sudo apt update (this checks for upgrades), then sudo apt upgrade (this installs the upgrades). When asked "Do you want to continue? [Y/n]", press enter to select the default "Y"/"Yes" option, and wait for the upgrade to complete. [Side note: apt is a "package manager", which does what it says on the tin and manages packages/software on your system. sudo stands for "SuperUser DO" and you add it to the front of a command to run that command as the superuser (a.k.a. administrator or "root").]ln -s /mnt/c/Users/[insert your Windows username here]/Documents ~/WindowsDocuments (e.g. ln -s /mnt/c/Users/tilo/Documents ~/WindowsDocuments)sudo apt install clangsudo apt install build-essential curl libffi-dev libffi8 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | shcurl as a command, your terminal looks for an executable named "curl" in those directories. GHCup creates a new directory where it will put executables, so this has to be added to your PATH if you want to use them in your terminal.]ghc (the Haskell compiler), ghci (the Haskell REPL), cabal (a Haskell package manager), and the Haskell Language Server (a.k.a. HLS, which adds IDE support for Haskell)ghc --version, cabal --version, and haskell-language-server-wrapper --version. If they've installed correctly, each of these commands should print out version information.cabal updatecabal install --lib QuickCheckx = True && 'c'. If HLS is working, you should see that VSCode underlines the error. You might need to give it a little bit of time to load.sudo apt install libsdl2-devsudo apt install lxdeexport DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0export LIBGL_ALWAYS_INDIRECT=1startlxdecd ~/WindowsDocuments/SDL-Test
clang -std=c11 -Wall hellosdl.c -I /usr/include/SDL2 -l SDL2 -o hellosdl , where the 'I' (uppercase i) in -I /usr/include/SDL2 stands for "Include" and the 'l' (lowercase L) in -l SDL2 stands for "link"../hellosdl - if you see a sky blue window appear then SDL2 is working properly!