Skip to content

Instantly share code, notes, and snippets.

@lloydroc
Last active December 23, 2016 04:56
Show Gist options
  • Save lloydroc/6b0f61b2fab5389d2f9b270b2e754468 to your computer and use it in GitHub Desktop.
Save lloydroc/6b0f61b2fab5389d2f9b270b2e754468 to your computer and use it in GitHub Desktop.
Fresh Linode Installation
# Create an image (Ubuntu 16.04 LTS) and boot it up - see https://www.linode.com/docs/getting-started for help
# ssh into it
# install nginx - https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
sudo apt-get update
sudo apt-get install zsh
sudo apt-get install git
sudo apt-get install nginx
sudo ufw app list
sudo ufw allow 'OpenSSH
sudo ufw allow 'Nginx HTTP'
sudo ufw status
systemctl status nginx
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
# Multiple sites with NGINX
# https://www.liberiangeek.net/2015/07/how-to-run-multiple-websites-using-nginx-webserver-on-ubuntu-15-04/
adduser lloydroc
usermod -G www-data lloydroc
su lloydroc
ssh-keygen -t rsa
touch ~/.ssh/authorized_keys
vi ~/.ssh/authorized_keys # paste in the public key
sh -c "$(curl -fsSL https://raw.githubusercontent.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