Preparing a Windows laptop with WSL for work

Neat packages to install

VS Code + peacock

Altsnap

WinCompose (disabled Xorg conf)

CopyQ

From Windows 11.

wsl --install -d Ubuntu-24.04
mkdir workspaces
ssh-keygen -t ed25519 -C "github@<yourdomain>.dk"
curl -sSL https://install.python-poetry.org | python3 -
git config --global user.email "github@<yourdomain>.dk"
git config --global user.name "Hans Harhoff Andersen"

Source: https://kskroyal.com/run-ubuntu-24-04-on-windows-11-with-gui-using-wsl/

Add the key to github etc.

cat ~/.ssh/id_ed25519
https://github.com/settings/ssh/new

Add eternal bash history

Disable password on sudo

sudo visudo
# Then add this line:
%sudo ALL=(ALL) NOPASSWD: ALL
# TO allow all members of sudo group
# to execute any command without password
# To do the same for a specific user 
# replace $USER in the below line with a username
#$USER ALL=(ALL) NOPASSWD: ALL

Docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# fix permission issue(s):

sudo usermod -aG docker `whoami`

Az cli

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

az login