Skip to content

Instantly share code, notes, and snippets.

@shawngmc
Last active March 25, 2026 05:50
Show Gist options
  • Select an option

  • Save shawngmc/0f25d7cad33bcd6709e7ec4621e400f0 to your computer and use it in GitHub Desktop.

Select an option

Save shawngmc/0f25d7cad33bcd6709e7ec4621e400f0 to your computer and use it in GitHub Desktop.
Ubuntu WSL Startup

Install Docker

# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Install Brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /home/shawn/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> /home/shawn/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"
sudo apt-get install build-essential
brew install gcc

Set up Starship

brew install starship
echo 'eval "$(starship init bash)"' >> /home/shawn/.bashrc
source ~/.bashrc

Set up fzf

brew install fzf
# Set up fzf key bindings and fuzzy completion
echo 'eval "$(fzf --bash)"' >> /home/shawn/.bashrc

Set up nvm and node/npm

brew install nvm
mkdir -pv ~/.nvm

echo 'export NVM_DIR="$HOME/.nvm"' >> /home/shawn/.bashrc
echo '[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh"  # This loads nvm' >> /home/shawn/.bashrc
echo '[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion' >> /home/shawn/.bashrc
source ~/.bashrc
nvm install --lts

Set up fastfetch

brew install fastfetch
echo 'fastfetch' >> /home/shawn/.bashrc

Install Conda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
rm ./Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc

Install security tools

brew install testssl ssh-audit

Bulk install other brew packages

brew install iftop fd ripgrep ugrep yq q tmux asciinema gping nvim bitwarden k9s dive dhex nushell doggo tealdeer crane llmfit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment