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

9c065e13-bacd-4553-8e4a-65286f79ca48.jpg

Create new user on Ubuntu 14.04

create-new-user-on-ubuntu-1404.png

Adding user to sudo group

adding-user-to-sudo-group.png

Configuring a Basic Firewall

Disable root login via SSH

1
2
nano /etc/ssh/sshd_config
service ssh restart
disable-root-login-via-ssh.png

Add firewall exceptions

1
2
3
sudo ufw allow ssh
sudo ufw allow 80/tpc
sudo ufw allow 443/tpc
add-firewall-exceptions.png

sudo ufw show added

207aebac-8ac8-4e33-92df-2933c5013259.png

Enable firewall

enable-firewall.png

Configure Timezones and Network Time Protocol Synchronization

Select area

select-area.png

Set timezone

06ccd76a-9d09-4ca5-b57a-22ff19571f52.png c4afcaed-8dbd-478f-9809-00c643ebac67.png

Configure NTP Synchronization

1
2
sudo apt-get update
sudo apt-get install ntp
1f600621-3fb6-4236-bd85-c11d0c79396d.png

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
6327bbb8-1080-4075-900b-8b98f993d003.png

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
how-to-set-up-nginx-server-blocks--virtual-hosts-.png

Edit configuration

1
sudo nano /etc/nginx/sites-available/default
edit-configuration.png

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]
md5-fingerprint-of-ssh-server.png