Skip to content

Instantly share code, notes, and snippets.

@Wamphyril
Created September 25, 2022 19:30
Show Gist options
  • Save Wamphyril/47588adf638d245ae6f5fd726fff7634 to your computer and use it in GitHub Desktop.
Save Wamphyril/47588adf638d245ae6f5fd726fff7634 to your computer and use it in GitHub Desktop.
Ubuntu 20x WSL Install
$ apt update && apt upgrade
$ apt install zsh
$ chsh -s $(which zsh)
$ apt install curl wget git
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ zsh
$ nano ~/.zshrc # plugins=(git nvm composer wp-cli yarn zsh-autosuggestions zsh-syntax-highlighting)
# https://gist.github.com/andriilive/b9392203776acd958707ec8fc50c83f6
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash # close and open terminal
$ nvm install --lts # node
@andriilive
Copy link

andriilive commented Sep 30, 2022

also :

$ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
$ sudo apt install gh
$ npm install --global yarn
# Lang error?
$ echo "LC_ALL=en_US.UTF-8" >> /etc/environment
$ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
$ echo "LANG=en_US.UTF-8" > /etc/locale.conf
$ locale-gen en_US.UTF-8
$ sudo apt upgrade && sudo apt update
# OLS?
$ ufw allow 7080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment