Skip to content

Instantly share code, notes, and snippets.

@alexjustesen
Created November 23, 2022 13:14
Show Gist options
  • Select an option

  • Save alexjustesen/1a235c7182a765b3072209af5dee9108 to your computer and use it in GitHub Desktop.

Select an option

Save alexjustesen/1a235c7182a765b3072209af5dee9108 to your computer and use it in GitHub Desktop.
Setup WSL/Ubuntu/Docker for Laravel development
# isntall wsl + ubuntu from the windows app store
# setup ubuntu with a username, password and update existing dependencies
sudo apt update && sudo apt upgrade -y
# install additional ubuntu dependencies
sudo apt install apt-transport-https zip unzip
# install docker desktop and enable for wsl
# reboot
# github cli
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt
# git name and email
git config --global user.name "put your name here"
git config --global user.email "put your github noreply email here"
# make a coding area
cd ~/
mkdir code
# setup sail bash alias
sudo nano ~/.bash_aliases
# add the following alias command to the file
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment