-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstallnotes.txt
More file actions
62 lines (58 loc) · 2 KB
/
installnotes.txt
File metadata and controls
62 lines (58 loc) · 2 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Create server
Update server
apt update
Install apache
apt-get install apache2
Install php
apt-get install php libapache2-mod-php
Install gd for php
apt-get install php8.3-gd
Install pandoc
Visit pandoc github, find latest .deb
wget onto server
dpkg -i file.deb
Install pandoc stuff from imathas-extras
copy into /var/www/html
create imgs subdir, set permissions to allow writing
create /var/www/datatmp/ directory, set permissios to allow writing
Install certbot
https://certbot.eff.org/instructions?ws=apache&os=ubuntufocal
certs are installed in /etc/letsencrypt/live/domain.name/
Install cleanup-old-files in /etc/cron.daily/:
#!/bin/sh
find /var/www/datatmp/* -mtime +1 -exec rm {} \;
find /var/www/html/imgs/* -mtime +1 -exec rm {} \;
Install livepoll
Install node
Make livepoll directory, certs subdirectory
wget index.js and package.json. npm install
Setup certs
Go to /etc/letsencrypt/live/domain.name/ and copy certs to directory
chmod a+r them
go into /etc/letsencrypt/renewal-hooks/deploy and wget in livepoll.sh
chmod a+x livepoll.sh
Restart service
Copy livepoll.service to /lib/systemd/system/, editing the ExecStart path as needed.
Start the server using: sudo systemctl start livepoll
To make sure it autoruns on reboot, run: sudo systemctl enable livepoll
Install mathsvg
Make mathsvg directory
wget index.js and package.json from mathsvg4 folder
npm install
Enable proxy
run:
a2enmod proxy
a2enmod proxy_http
a2enmod ssl
a2enmod headers
systemctl reload apache2
edit /etc/apache2/sites-available/<somename>.conf and add
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /mathsvg/ http://127.0.0.1:3001/
ProxyPassReverse /mathsvg/ http://127.0.0.1:3001/
run systemctl reload apache2
Restart service
Copy mathsvg.service to /lib/systemd/system/, editing the ExecStart path as needed.
Start the server using: sudo systemctl start mathsvg
To make sure it autoruns on reboot, run: sudo systemctl enable mathsvg