Udacity Full Stack Web Developer Nanodegree Project : Linux Server Configuration
Server Public IP Address: http://3.84.174.94
Application url: http://ec2-3-84-174-94.compute-1.amazonaws.com
SSH Port: 2200
Private key for ubuntu user 'grader' provided in submission notes.
The password for this private key is 'Udacity101'.
-
Ubuntu 18.04 Xenial - Operating System
-
Apache2 - Server Application
-
Postgresql - Database Application
-
Python 3.6.7 - Required to run Restaurants Menu Project. Ubuntu 18.04 comes with python3 pre-installed. Python 2.7 was installed in parallel.
-
Apache2 Module: mod_wsgi - The Restaurants Menu Project uses python and consequently apache2 requires the wsgi module to serve it.
-
Python Modules:
-
psycopg2 - Not strictly required to run postgresql using sqlalchemy, but recommended by ubuntu package source lists.
-
requests - Required to make API requests in python. Already installed with python.
-
Oauth2client - Required for third-party authentication via Facebook and Google using Oauth2.
-
As stated above, I started a new Ubuntu Linux server instance on Amazon Lightsail.
-
Used Vim to make SSH easy by adding entries to my local SSH config file.
-
Updated and upgraded all pre-installed software on the system using
sudo apt-get update
andsudo apt-get upgrade
. -
Configured the server by changing the SSH port from 22 to 2200. Made certain to configure the Lightsail firewall to allow it.
-
Designed the UFW firewall to only allow incoming connections on ports 80(HTTP), 123(NTP), and 2200(SSH).
-
Generated user 'grader' in Ubuntu (in order for the project to be reviewed). Gave this user sudo permissions. Created an SSH key pair locally for 'grader' and copied the public key into file /home/grader/.ssh/authorized_keys.
-
Set the local timezone to UTC (sudo timedatectl set-timezone UTC).
-
Installed Apache2 and mod_wsgi.
-
Installed Postgresql and psycopg2. Established that remote connections were not allowed, and created a new database user named 'catalog' that has limited permissions.
-
Installed git (was already installed with python3).
-
Cloned and setup Restaurants Menu Project from Github.
-
Updated everything using
sudo apt-get update
andsudo apt-get upgrade
. Set up project in my server so that it functions correctly when visiting my server's IP address in a browser.
-
Digital Ocean - Used to create a sudo user on Ubuntu.