source: local/greenstone3/linux-64bit/README--debian10-to-https-greenstone3.txt@ 34665

Last change on this file since 34665 was 34665, checked in by davidb, 9 months ago

Rename to more descriptive name

File size: 2.4 KB
Line 
1#----
2# Get verious development/compiler tools installed:
3#----
4
5sudo apt-get update
6sudo apt-get install subversion
7sudo apt-get install gcc g++
8sudo apt-get install build-essential
9sudo apt-get install ant
10sudo apt-get install openjdk-11-jdk
11
12# The Greenstone3 build process uses wget to download
13# additional components:
14
15sudo apt-get install wget
16
17# The following environment variables are key for compilation
18# They are often setup up in local/gs3-setup.sh
19
20export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
21
22export CFLAGS=-fPIC
23#export CXXFLAGS=-fPIC
24export JAVACFLAGS="-source 1.6 -target 1.6"
25
26# Prepare to compile:
27
28ant
29ant prepare
30
31# Edit build.properties:
32
33 checkout.imagemagick.ext=true
34
35# Edit build.xml to disable compiling wv-ware
36# (around line 719):
37
38 value="${opt.gnomelibext.arg} "
39# =>
40 value="${opt.gnomelibext.arg} --disable-wvware"
41
42
43
44
45# Found that gs2build wget compile needed static version of -lz
46# Did this by copying out the imagemagic zlib tarball, compiling i tup
47# and updating the gs2buid/build-src/packages/configure to include
48# -L/.../ in front of -lz
49
50#----
51# To get going with https with Apache web server
52#----
53
54sudo apt-get install apache2
55
56sudo apt install snapd
57sudo snap install core; sudo snap refresh core
58sudo snap install --classic certbot
59sudo ln -s /snap/bin/certbot /usr/bin/certbot
60
61sudo certbot --apache
62
63
64sudo a2enmod proxy_http
65sudo systemctl restart apache2
66
67#----
68
69#Interesting part of:
70# /etc/apache2/sites-enabled/000-default-le-ssl.conf
71
72 ProxyPass /greenstone3 http://localhost:8383/greenstone3
73 ProxyPassReverse /greenstone3 http://localhost:8383/greenstone3
74
75# ProxyPass /cambridge-museum http://localhost:9393/greenstone3
76# ProxyPassReverse /cambridge-museum http://localhost:9393/greenstone3
77# <Location /cambridge-museum>
78# ProxyPassReverseCookiePath /greenstone3 /cambridge-museum
79# </Location>
80
81
82ServerName so-we-must-think.space
83Include /etc/letsencrypt/options-ssl-apache.conf
84ServerAlias sowemustthink.space
85SSLCertificateFile /etc/letsencrypt/live/so-we-must-think.space/fullchain.pem
86SSLCertificateKeyFile /etc/letsencrypt/live/so-we-must-think.space/privkey.pem
87
88RewriteEngine on
89RewriteRule "^/$" "/greenstone3/library" [PT]
90
91#----
92
93# Edit:
94# build.properties
95
96tomcat.server=<you.domain.name>
97
98# Edit:
99# web/sites/localsite/siteConfig.xml
100
101 <metadata name="siteURL">//<your.domain.name>/greenstone3/</metadata>
102
103ant restart
104
105
Note: See TracBrowser for help on using the repository browser.