Files
ahmza f402556380 Fix audit findings: bugs, security, perf, content
Bugs:
- setup-wsl: fix broken /img/WSL/* image paths (now bundle-relative;
  images were broken on the published post) + better alt text
- pi-docker-swarm: remove broken missing cluster.webp reference
- archetypes/posts.md: fix malformed {{ }} template so 'hugo new' works
- rename arrstack/arrstack.md -> index.md so it's a proper leaf bundle
- static/admin/config.yml: fix 'htpps' -> 'https' site_url typo
- fix silently-dropped <placeholder> text (unsafe=false dropped them):
  wrap <distro>/<username>/<user>/<version>/<ip address> etc in backticks
  across setup-wsl, securing-ssh, pi-docker-swarm, mc-server-on-docker

Security:
- render-link.html: add rel=noopener noreferrer to external target=_blank
- extend-footer.html: fix rel='me' trapped in class attr (broke Mastodon
  verification); add proper rel/target
- static/admin/index.html: pin Sveltia CMS to 0.172.4 via jsDelivr + SRI

Performance:
- hugo.toml: ignoreFiles for *.aseprite/*.bak (stop shipping source art;
  non-page files 23 -> 13)
- video shortcode: preload=metadata; image shortcode: loading=lazy decoding=async
- sws.toml: drop SPA page-fallback so missing paths return real 404 (404.html)

Content/SEO:
- normalize tag casing (HomeLab/RemoteAccess/SSH/HUGO -> lowercase),
  fix 'prodcutivity' typo, arrstack tags:[""] -> [], add welcome description
- delete stray index.md.bak
2026-07-25 03:36:50 +01:00

74 lines
1.8 KiB
Markdown

---
title: Setup WSL 🪟 ❤️ 🐧
description: ""
tags:
- linux
- windows
- wsl
author: ahmza
date: 2022-02-23
draft: false
weight:
featureimage: feature.webp
lastmod:
---
## **Introduction**
WSL stands for _Windows Subsystem for Linux_ which means we have the Linux
kernel inside of windows. This is huge news for developers or people who just
want to try Linux.
## **Prerequisites**
- Enable virtualisation in BIOS
## **Setup**
Open Powershell in Administrator mode
```powershell
wsl --install
```
> You may have to restart the device, I Highly recommend you do
Go to the Microsoft store and search for a Linux distribution. I prefer
to use the "Ubuntu" distribution.
![Ubuntu in the Microsoft Store](ubuntu.webp)
Once installed, go ahead and run the distribution, after it finishes setting
itself up it will ask you for a username and password. These credentials are
separate from the host system so you can make them whatever you want.
And that's it you have WSL and a Linux distribution setup, now go and do
something awesome.
## **Optional**
I use the windows terminal app to run the Ubuntu distribution, it makes
customising the environment a lot easier. To download it head over to the
Microsoft store and search for Windows Terminal and download it.
![Windows Terminal in the Microsoft Store](winterm.webp)
When you login to WSL it will not default to your home directory. To fix that go
to the Windows Terminal Settings look for Ubuntu or your distributions name and
change the Starting directory to
```powershell
\\wsl$\<distro>\home\<username>
```
> Be sure to change `<distro>` to your distributions name
> Be sure to change `<username>` to your username
![Windows Terminal settings](winterm-settings.webp)
## **Conclusion**
Well done you have managed to setup WSL and use Linux inside of windows.
No go and enjoy the freedom of Linux !!