Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.32 KB

system.ubuntu.wsl2.md

File metadata and controls

52 lines (40 loc) · 1.32 KB

System configuration for Ubuntu 22.04 (or similar and/or on WSL2)

Upgrade packages

sudo apt update
sudo apt upgrade
sudo apt autoremove

Configure ZSH

sudo apt install zsh
chsh -s $(which zsh)
# restart shell
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
omz theme set agnoster

Create home folders

# whatever you want
mkdir src work x

Configure Git

git config --global init.defaultBranch main # better default branch name
git config --global user.name "REPLACE WITH YOUR NAME"
git config --global user.email replace-with-your@email.com
git config --global core.editor "code --wait" # use vscode to edit commit messages instead of nano and vim
git config --global core.autocrlf false # stop Windows messing with file endings (not needed for linux actually)

Install Python 3 and set defaults

sudo apt install python3 # this is probably already installed
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1

Install NodeJS

# Use latest NVM script from here https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nvm install --lts # or nvm install node for latest non-lts versions
npm i -g pnpm # optional, use PNPM as the package manager