🔰
Always be Learning
  • README
  • Meta
    • Reference
    • Docusaurus
  • Windows
    • Chocolatey
    • Scoop
    • WSL(2)
  • Git
    • GitHub
  • Recipes
    • Buttermilk Waffles
    • Chocolate Fudge Cake
    • Kids Banana Pancakes
  • Sociology
  • Bugs
    • WSL2
  • Crypto
    • Flash Loans
Powered by GitBook
On this page
  • Set up Ubuntu
  • Notify-Send replacement
  • Links
  1. Windows

WSL(2)

PreviousScoopNextGit

Last updated 3 years ago

WSL lets you install Linux terminal and run it within Windows. It's not 100% identical to running a dedicated Linux box, but it's super iseful and helpful for day-to-day tasks when in Windows and doens't require a VM. I run Ubuntu and Debian.

Set up Ubuntu

The will contain the latest set up and isntall steps to get Ubuntu on your machine. Personal to me I like to set up the following:

  • Git

    • git config --global user.name = "Me"

    • git config --global user.email = "me@example.org"

    • New SSH key: ssh-keygen -t ed25519 -C "me@example.org"

  • Oh-my-zsh

    • Install zsh

    • Install oh-my-zsh

  • rbenv

    • rbenv install -l (list lasted ruby versions)

    • rbenv global 3.1.1

  • tfenv

    • sudo apt install unzip

    • tfenv install 1.1.8

    • tfenv use 1.1.8

Notify-Send replacement

Handy for long-running processes, when I want to know if they're finished, e.g.:

terraform apply --auto-approve; notify-send "Terraform apply complete"

Links

notify-send is a little tool to send a notification from your terminal. Stuart Leeks has written a to get this working in WSL2 and sending a notification to the Windows Toast notification.

WSL Docs
zsh autosuggestions
zsh-syntax-highlighting
Powershell 10k (zsh)
Install
Install
tool
WSL Docs
New SSH key - add to SSH agent
Oh-mh-zsh
rbenv Digital Ocean guide