From 048b92c78b4a448a67200338dee63fb7c0373257 Mon Sep 17 00:00:00 2001 From: owanes <owain.jones@noc.ac.uk> Date: Tue, 13 Oct 2015 17:07:42 +0100 Subject: [PATCH] Updated install.sh --- install.sh | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/install.sh b/install.sh index 13f4793..9bdd480 100644 --- a/install.sh +++ b/install.sh @@ -1,2 +1,54 @@ #!/bin/sh +# Install the packages we need to set up our gliders website + backend. +# This file doubles up as notes/instructions. +# Based on a clean CentOS 7 minimal x64 installation +# (CentOS-7-x86_64-Minimal-1503-01) +# Installed on a VirtualBox VM with 512mb RAM, 1 CPU, 8gb storage +# All configuration during CentOS install process was left as defaults +# Base installation chosen. +# One user added: gliders, pw: gliders9876 + +# As root: +yum check-update +yum update + +# Install needed tools +yum install git rsync wget + +# And development tools (needed to compile python libs from pip) +yum groupinstall "Development Tools" + +# Install python libraries +yum install python-inotify numpy python-matplotlib python-virtualenv +python -m easy_install pip +pip install pandas + +# Install (& configure) sendmail +yum install sendmail + +# Install & config MariaDB (MySQL) +yum install mariadb mariadb-server + +# Install a relevant python ORM library +# TODO: Pick one we like the most! +# Big ones like SQLAlchemy? +# owanes quite likes the look of https://storm.canonical.com/ :) + +# Install PHP +yum install php php-fpm php-pecl-apcu + +# As for the webserver -- either apache or nginx... +# nginx is nice and fast, apache gets better support from +# CentOS etc. + +# FOR NGINX +# Based on https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7 +yum install epel-release # enables another software repo +yum check-update +yum install nginx + +# Allow web through the firewall +firewall-cmd --permanent --zone=public --add-service=http +firewall-cmd --permanent --zone=public --add-service=https +firewall-cmd --reload \ No newline at end of file -- GitLab