Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Ubuntu 16.04 Rails/Nginx/Passenger/MariaDB Server

October 25, 2016

Step 1: Install Ubuntu

Step 2: Add a deploy user and optionally a user for yourself.

Assuming you're logged in as root add these users and login as "not root."

adduser deploy
adduser [yourname] #optionally
vim /etc/group
# add your users to the sudo group like so: 
  sudo:x:27:isaac,deploy
vim /etc/ssh/sshd_config
# add to file or if they exist set the flags to no.
Ubuntu 16.04 Rails/Nginx/Passenger/MariaDB Server

Lets Encrypt Setup and Auto Renew (NGINX)

July 20, 2016

Installation and Setup

cd /usr/sbin
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto

Nginx Configuration

Add the following to your nginx server configuration block vim sites-enabled/yourdomain.com

  location ^~ /.well-known/ {
    root /usr/share/nginx/html;
  }

Add folder for well known mkdir -p /usr/share/nginx/html

LetsEncrypt Configuration

Lets Encrypt Setup and Auto Renew (NGINX)

Useful SSH Server Conf Tricks

April 24, 2016

Turning password login off

Edit /etc/ssh/sshd_conf
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
Restart ssh

sudo service ssh restart

Turn on password login

ChallengeResponseAuthentication yes
PasswordAuthentication yes
UsePAM yes
Restart ssh

Copy and pasting from remote vim

1. Edit /etc/ssh/ssh_config
Useful SSH Server Conf Tricks

Setting up for Rails development on El Capitan

November 12, 2015

One of the only differences I've noticed is installing mysql is slightly different.

Step 1: Install XCode Command Line Tools

xcode-select --install

Step 2: Install and prepare Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update

Step 3: Install rbenv

brew install rbenv ruby-build openssl
Setting up for Rails development on El Capitan

Installing ffmpeg on Ubuntu 14.04

February 05, 2016

As of 14.04 Ubuntu no longer has ffmpeg in its default repositories. If you want to install it you'll have to add a new repo first.

sudo add-apt-repository ppa:mc3man/trusty-media

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
Installing ffmpeg on Ubuntu 14.04