Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
2c5e504f
Commit
2c5e504f
authored
9 years ago
by
Alvaro Lorenzo
Browse files
Options
Download
Email Patches
Plain Diff
test
parent
b304e984
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
install.sh
install.sh
+20
-19
No files found.
install.sh
View file @
2c5e504f
...
...
@@ -11,32 +11,33 @@
# One user added: gliders, pw: gliders9876
# As root:
yum check-update
yum
install
epel-release
# enables 'enterprise' software repo
yum update
yum check-update
-y
yum
install
-y
epel-release
# enables 'enterprise' software repo
yum update
-y
# Install needed tools
yum
install
git rsync wget vim ansible tmux htop iotop dstat lsof telnet
yum
install
-y
git rsync wget vim ansible tmux htop iotop dstat lsof telnet
# And inotify tools
yum
install
inotify-tools incron
yum
install
-y
inotify-tools incron
# And development tools (needed to compile python libs from pip)
yum groupinstall
"Development Tools"
yum groupinstall
-y
"Development Tools"
# Install python libraries
yum
install
python-inotify numpy python-matplotlib python-virtualenv python-pip python-pandas libffi-devel
yum
install
-y
python-inotify numpy python-matplotlib python-virtualenv python-pip python-pandas libffi-devel
pip
install
css-html-js-minify
pip
install
bcrypt
# Install (& configure) sendmail
# This isn't needed yet! But eventually we'd like to have theystem
# email people alerts for things (e.go velogs an alarm)
yum
install
sendmail sendmail-cf m4
yum
install
-y
sendmail sendmail-cf m4
systemctl
enable
sendmail
# Install & config MariaDB (MySQL)
yum
install
mariadb mariadb-server mariadb-devel
yum
install
-y
mariadb mariadb-server mariadb-devel
systemctl start mariadb.service
mysql_secure_installation
# ^ mariadb root pw was set to gliders9876, anon users + test db removed,
# remote root login disabled
...
...
@@ -44,18 +45,18 @@ systemctl enable mariadb
# Install ElasticSearch
# (Used for full-text searching of glider log files)
yum
install
java-1.8.0-openjdk
yum
install
-y
java-1.8.0-openjdk
rpm
--import
https://packages.elastic.co/GPG-KEY-elasticsearch
cp
elasticsearch.repo /etc/yum/repos.d/
yum check-update
yum
install
elasticsearch
yum check-update
-y
yum
install
-y
elasticsearch
systemctl
enable
elasticsearch
# Install SQLAlchemy
yum
install
MySQL-python python-sqlalchemy
yum
install
-y
MySQL-python python-sqlalchemy
# Install PHP
yum
install
php php-fpm php-apc php-pdo php-mcrypt php-mbstring php-pecl-runkit
yum
install
-y
php php-fpm php-apc php-pdo php-mcrypt php-mbstring php-pecl-runkit
cp
php.ini /etc/php.ini
cp
php-d-fpm.ini /etc/php.d/fpm.ini
cp
php-fpm-www.conf /etc/php-fpm.d/www.conf
...
...
@@ -63,7 +64,7 @@ systemctl enable php-fpm
# Install NodeJS, NPM, Bower and some tools for shrinking down
# javascript and CSS
yum
install
nodejs npm
yum
install
-y
nodejs npm
npm
install
-g
bower
npm
install
-g
uglifyjs
npm
install
-g
uglifycss
...
...
@@ -76,8 +77,8 @@ npm install -g uglifycss
# FOR NGINX
# Based on https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
yum check-update
yum
install
nginx
yum check-update
-y
yum
install
-y
nginx
useradd
-m
gliders
gpasswd
-a
nginx gliders
gpasswd
-a
apache gliders
...
...
@@ -93,7 +94,7 @@ systemctl enable nginx
# Install fail2ban: This is some intrusion detection software
# that can help to block people trying to do brute-force
# logins etc.
yum
install
fail2ban
yum
install
-y
fail2ban
systemctl
enable
fail2ban
# Allow web through the firewall
...
...
@@ -116,5 +117,5 @@ timedatectl set-ntp true
# has a tendency to do this, which causes the occasional
# gateway timeout when registering / changing user passwords
# on the website.
yum
install
haveged
yum
install
-y
haveged
systemctl
enable
haveged
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment