This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
forked from politik-bei-uns/politik-bei-uns-web-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
45 lines (38 loc) · 1.49 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Java Current for Elasticsearch
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer
# Elasticsearch
wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
echo 'deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main' | sudo tee /etc/apt/sources.list.d/elasticsearch.list
apt-get install elasticsearch
sudo update-rc.d elasticsearch defaults 95 10
# MongoDB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
apt-get install mongodb-10gen
# More Packages
apt-get install git memcached python-virtualenv build-essential python-dev libxml2-dev libxslt1-dev ghostscript poppler-utils libpng12-dev libfreetype6-dev protobuf-compiler libprotobuf-dev
# Users and dirs
adduser --quiet ris
mkdir /srv/www
mkdir /srv/www/ris-scraper
chown ris:ris -R /srv/www/ris-scraper/
mkdir /srv/www/ris-web
chown ris:ris -R /srv/www/ris-web/
# Webinterface
sudo -i -u ris
cd /srv/www/ris-web/
git clone https://github.com/okfde/ris-web.git
cp config_dist.py config.py
vim config.py # Set Values
virtualenv --no-site-packages venv
pip install -update setuptools pip
# Bugfix for matplotlib
sudo ln -s /usr/include/freetype2/ft2build.h /usr/include/
pip install numpy
pip install -r requirements.txt
# Scraper
sudo -i -u ris
cd /srv/www/ris-web/
git clone https://github.com/okfde/ris-scraper.git