Services on CC: Difference between revisions
Jump to navigation
Jump to search
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==debian== | ==debian== | ||
* | * currently running latest stable: debian 13 (trixie) | ||
* sources: /etc/apt/sources.list.d/debian.sources | * sources: /etc/apt/sources.list.d/debian.sources | ||
| Line 47: | Line 19: | ||
==etherpad== | ==etherpad== | ||
installation log: [[Install_Etherpad-lite]] | |||
===installed=== | ===installed=== | ||
| Line 99: | Line 73: | ||
* crontab: every night at 5.55 <code>/opt/etherpad/etherpad.db</code> is copied to <code>/opt/etherpad/etherpad_backup.db</code> (just in case) | * crontab: every night at 5.55 <code>/opt/etherpad/etherpad.db</code> is copied to <code>/opt/etherpad/etherpad_backup.db</code> (just in case) | ||
==mediawiki== | ==mediawiki== | ||
/var/www/wiki/ | |||
* php: php8.4 | * php: php8.4 | ||
* database: mariadb | * database: mariadb | ||
* installation | * installation log: [[Migrate Mediawiki]] | ||
===nginx=== | ===nginx=== | ||
Followed this for the nginx config: https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx | Followed this for the nginx config: https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx | ||
===backups=== | |||
backups through crontab: | |||
# every night at 3:33 | |||
33 3 * * * mysqldump --user=wiki --password=XXX wikidb > /var/www/html/wiki/ wikidb_backup.sql | |||
33 3 * * * mysqldump --user=wiki --password=XXX wikidb --xml > /var/www/html/wiki/wikidb_backup.xml | |||
==octomode== | ==octomode== | ||
/ | /opt/octomode/ | ||
* flask application | * flask application | ||
* runs on port 3333 | |||
* /etc/systemd/system/octomode.service | * /etc/systemd/system/octomode.service | ||
* installation log: [[Octomode]] | |||
<pre> | <pre> | ||
| Line 167: | Line 119: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</pre> | </pre> | ||
==wiki-to-print== | ==wiki-to-print== | ||
| Line 175: | Line 125: | ||
* flask application | * flask application | ||
* runs on port 4444 | |||
* /etc/systemd/system/wiki-to-print.service | * /etc/systemd/system/wiki-to-print.service | ||
* currently running with gunicorn, timeout turned off (after the server move the application timed out on larger documents) | |||
* installation log: [[How to install wiki-to-print?]] | |||
<pre> | <pre> | ||
| Line 187: | Line 140: | ||
ExecStart=/usr/bin/make server | ExecStart=/usr/bin/make server | ||
Restart=always | Restart=always | ||
StandardOutput=append:/var/log/wiki-to-print/wiki-to-print.log | |||
StandardError=append:/var/log/wiki-to-print/wiki-to-print.log | |||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</pre> | </pre> | ||
==cobbled-paths== | ==cobbled-paths== | ||
... | |||
==nginx== | ==nginx== | ||
Latest revision as of 08:45, 25 February 2026
debian
- currently running latest stable: debian 13 (trixie)
- sources: /etc/apt/sources.list.d/debian.sources
Types: deb URIs: https://deb.debian.org/debian Suites: trixie trixie-updates Components: main non-free-firmware non-free contrib Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: https://security.debian.org/debian-security Suites: trixie-security Components: main non-free-firmware non-free contrib Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
etherpad
installation log: Install_Etherpad-lite
installed
/opt/etherpad/
runs as user etherpad
database
sqlite
- 878MB on 7 Nov 2025
- 917MB on 11 Dec 2025
- 942MB on 23 Jan 2026
systemd
sudo systemctl status etherpad sudo systemctl start etherpad sudo systemctl stop etherpad sudo systemctl restart etherpad
[Unit] Description=etherpad (real-time collaborative document editor) After=syslog.target network.target [Service] Type=simple User=etherpad Group=etherpad #WorkingDirectory=/opt/etherpad Environment=NODE_ENV=production #ExecStart=pnpm run prod ExecStart=/bin/sh /opt/etherpad/bin/run.sh Restart=always StandardOutput=append:/var/log/etherpad/etherpad.log StandardError=append:/var/log/etherpad/etherpad-error.log [Install] WantedBy=multi-user.target
logs
sudo tail -f /var/log/etherpad/etherpad.log sudo tail -f /var/log/etherpad/etherpad-error.log
backups
- crontab: every night at 5.55
/opt/etherpad/etherpad.dbis copied to/opt/etherpad/etherpad_backup.db(just in case)
mediawiki
/var/www/wiki/
- php: php8.4
- database: mariadb
- installation log: Migrate Mediawiki
nginx
Followed this for the nginx config: https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx
backups
backups through crontab:
# every night at 3:33 33 3 * * * mysqldump --user=wiki --password=XXX wikidb > /var/www/html/wiki/ wikidb_backup.sql 33 3 * * * mysqldump --user=wiki --password=XXX wikidb --xml > /var/www/html/wiki/wikidb_backup.xml
octomode
/opt/octomode/
- flask application
- runs on port 3333
- /etc/systemd/system/octomode.service
- installation log: Octomode
[Unit] Description=Collective PDF rendering environment After=network.target [Service] User=octomode WorkingDirectory=/var/www/octomode ExecStart=/usr/bin/make action Restart=always StandardOutput=append:/var/log/octomode/octomode.log StandardError=append:/var/log/octomode/octomode.log [Install] WantedBy=multi-user.target
wiki-to-print
/opt/wiki-to-print/
- flask application
- runs on port 4444
- /etc/systemd/system/wiki-to-print.service
- currently running with gunicorn, timeout turned off (after the server move the application timed out on larger documents)
- installation log: How to install wiki-to-print?
[Unit] Description=wiki-to-print After=network.target [Service] User=wikitoprint WorkingDirectory=/opt/wiki-to-print/wiki-to-print/ ExecStart=/usr/bin/make server Restart=always StandardOutput=append:/var/log/wiki-to-print/wiki-to-print.log StandardError=append:/var/log/wiki-to-print/wiki-to-print.log [Install] WantedBy=multi-user.target
cobbled-paths
...
nginx
/var/www/html/ /home/manetta/public_html/ /home/simoon/public_html/
home folders
# user directories!! public_html folders
location ~ ^/~(.+?)(/.*)?$ {
add_header Access-Control-Allow-Origin *;
alias /home/$1/public_html$2;
index index.html index.htm;
autoindex on;
}
For the public_html folders to work after a fresh install, the permissions of home folders need to be adjusted (??):
sudo chmod 755 /home/*
certbot
auto-renewal through crontab:
# every night at 04:44 44 4 * * * certbot renew --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx" --quiet