Skip to content

Instantly share code, notes, and snippets.

@abrcoelho
Created March 10, 2014 19:02
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 abrcoelho/9471942 to your computer and use it in GitHub Desktop.
Save abrcoelho/9471942 to your computer and use it in GitHub Desktop.

Create Linode: Ubuntu LTS

Gaining SSH Access

  1. Login with set password
  2. mkdir ~/.ssh
  3. chmod go-w ~/.ssh
  4. exit
  5. scp /.ssh/id_rsa.pub SERVER:/.ssh/authorized_keys

Setting up hostname and timezone

  1. echo "servername" > /etc/hostname
  2. hostname -F /etc/hostname
  3. dpkg-reconfigure tzdata (follows on screen steps)

Updating system

  1. apt-get update
  2. apt-get upgrade --show-upgraded
  1. Download the key and add to APT:
  2. wget http://nginx.org/keys/nginx_signing.key
  3. apt-key add nginx_signing.key
  4. echo "deb http://nginx.org/packages/ubuntu/ precise nginx" >> /etc/apt/sources.list
  5. echo "deb-src http://nginx.org/packages/ubuntu/ precise nginx" >> /etc/apt/sources.list
  6. apt-get update
  7. apt-get install nginx

Installing PostgreSQL

  1. Download the key and add to APT:
  2. wget https://www.postgresql.org/media/keys/ACCC4CF8.asc
  3. apt-key add ACCC4CF8.asc
  4. echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list
  5. apt-get update
  6. apt-get install

Installing Ruby

  1. Download the key and add to APT:
  2. http://apt.hellobits.com/hellobits.key
  3. echo "deb http://apt.hellobits.com/ precise main" >> /etc/apt/sources.list
  4. apt-get update
  5. apt-get install ruby-2.1

Creating a deploy user

  1. adduser --ingroup www-data deploy
  2. Upload your public key to ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment