Giter Site home page Giter Site logo

lilac-whiff's Introduction

Linux Server Configuration Project

This README explains how to access a remote Ubuntu server and how the server was setup.

Remote Server

Summaries

Installed Software

  • PostgreSQL
  • Apache HTTP Server
  • mod_wsgi
  • git
  • Python related
    • (Linux package) python-psycopg2
    • (Linux package) python-flask
    • (Linux package) python-sqlalchemy
    • (Linux package) python-pip
    • (Python package) Flask-Restless
    • (Python package) oauth2client
    • (Python package) httplib2

Configuration Change

Making a new user grader sudoer

  • A new file, /etc/sudoers.d/grader
  • Changed password requesting interval in /etc/sudoers

Making SSH secure

All changes are done in the file /etc/ssh/sshd_config

  • Port change: Port 2200
  • Disabling password authentication: PasswordAuthentication no
  • Disabling root login: PermitRootLogin no

Firewall setting

Incoming connections are limited to:

  • SSH (Port 2200)
  • HTTP (Port 80),
  • NTP (Port 123)

PostgreSQL setting

By default, a remote access is disabled. No change was made on PostgreSQL itself.

Other than that, a database access user, catalog was created. The user catalog has all permissions to the database catalog. The user is also an Apache process owner.

Flask app

The app was cloned out from Github repository. It resides in /home/grader/serene-cliffs/vagrant/catalog directory.

There were a few relative paths references in flask app. Those were replaced by absolute paths.

Explicit port number setting was removed, and it is now:

app.run()

OAuth settings at Facebook and Google were updated to allow this server as the redirect endpoint.

Apache HTTP server setting

  • Home directory: /var/www/catalog
  • WSGI script: /var/www/catalog/catalog.wsgi
  • Apache configuration: /etc/apache2/sites-enabled/000-default.conf
  • (edited) Apache Envvars: /etc/apache2/envvars

References

Multiple sources from:

lilac-whiff's People

Contributors

yokolet avatar

Watchers

 avatar James Cloos 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.