Skip to content

Instantly share code, notes, and snippets.

@TizioFittizio
Created September 30, 2018 18:17
Show Gist options
  • Save TizioFittizio/781c9ead70542fb9b791815377b366d0 to your computer and use it in GitHub Desktop.
Save TizioFittizio/781c9ead70542fb9b791815377b366d0 to your computer and use it in GitHub Desktop.
Ubuntu setup
#!/bin/bash
#nginx
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install nginx -y
sudo systemctl start nginx
sudo systemctl enable nginx
#node
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install build-essential
sudo apt-get update
sudo apt-get install build-essential libssl-dev
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh -o install_nvm.sh
bash install_nvm.sh
rm install_nvm.sh
nvm install 10.0.6
nvm use 10.0.6
#docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment