Code Monkey home page Code Monkey logo

fsnd-linux-server-config's Introduction

fsnd-linux-server-config

README - Item Catalog Project for Udacity

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'.


Software Installed:

  1. Ubuntu 18.04 Xenial - Operating System

  2. Apache2 - Server Application

  3. Postgresql - Database Application

  4. 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.

  5. Apache2 Module: mod_wsgi - The Restaurants Menu Project uses python and consequently apache2 requires the wsgi module to serve it.

  6. 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.


Summary of Configurations Made:

  1. As stated above, I started a new Ubuntu Linux server instance on Amazon Lightsail.

  2. Used Vim to make SSH easy by adding entries to my local SSH config file.

  3. Updated and upgraded all pre-installed software on the system using sudo apt-get update and sudo apt-get upgrade.

  4. Configured the server by changing the SSH port from 22 to 2200. Made certain to configure the Lightsail firewall to allow it.

  5. Designed the UFW firewall to only allow incoming connections on ports 80(HTTP), 123(NTP), and 2200(SSH).

  6. 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.

  7. Set the local timezone to UTC (sudo timedatectl set-timezone UTC).

  8. Installed Apache2 and mod_wsgi.

  9. Installed Postgresql and psycopg2. Established that remote connections were not allowed, and created a new database user named 'catalog' that has limited permissions.

  10. Installed git (was already installed with python3).

  11. Cloned and setup Restaurants Menu Project from Github.

  12. Updated everything using sudo apt-get update and sudo apt-get upgrade. Set up project in my server so that it functions correctly when visiting my server's IP address in a browser.


Third Party Resources:


fsnd-linux-server-config's People

Contributors

techsterjim avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.