Skip to content

Instantly share code, notes, and snippets.

@ancs21
Created August 27, 2020 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ancs21/0338db5b1c1b0027253d56bde6c9592e to your computer and use it in GitHub Desktop.
Save ancs21/0338db5b1c1b0027253d56bde6c9592e to your computer and use it in GitHub Desktop.
Install few-line
# update first
sudo apt update
# install docker
curl -fsSL get.docker.com -o get-docker.sh && sudo sh get-docker.sh
# Add user to the "docker" group
sudo usermod -aG docker $USER
# install docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# set permission docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Install nodejs via nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | sudo bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Install python via pyenv (Python Version Management)
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# use zsh
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
# update first
sudo apt update
# install zsh
sudo apt install zsh -y
# make zsh default shell
sudo chsh -s $(which zsh)
# install oh-my-zsh
sudo sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment