Blog

Additional Recommended Steps for New Ubuntu 14.04 Servers on DigitalOcean

https://www.digitalocean.com/community/tutorials/additional-recommended-steps-for-new-ubuntu-14-04-servers

Create new user on Ubuntu 14.04

Adding user to sudo group

Configuring a Basic Firewall

Disable root login via SSH

1
2
nano /etc/ssh/sshd_config
service ssh restart

Add firewall exceptions

1
2
3
sudo ufw allow ssh
sudo ufw allow 80/tpc
sudo ufw allow 443/tpc

sudo ufw show added

Enable firewall

Configure Timezones and Network Time Protocol Synchronization

Select area

Set timezone

Configure NTP Synchronization

1
2
sudo apt-get update
sudo apt-get install ntp

This is all that you have to do to set up NTP synchronization on Ubuntu. The daemon will start automatically each boot and will continuously adjust the system time to be in-line with the global NTP servers throughout the day.

How To Install Git on Ubuntu 14.04

https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-14-04

1
2
sudo apt-get update
sudo apt-get install git
1
2
user.name=Your Name
[email protected]

How To Install Node.js on an Ubuntu 14.04 server

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04

How To Set Up Nginx Server Blocks (Virtual Hosts)

https://www.digitalocean.com/community/tutorials/how-to-setup-nginx-server-blocks-on-debian-7

1
sudo apt-get install nginx

Edit configuration

1
sudo nano /etc/nginx/sites-available/default

Create web root folder

1
sudo mkdir -p /var/www/blog.rylander.io/html

Restart

1
2
sudo service nginx restart
sudo service nginx start | stop | reload

Ensure user has write permission

1
sudo chown -R admlocal /var/www

md5 fingerprint of ssh server

1
ssh -o FingerprintHash=md5 [email protected]