Table of contents

My server is a surprisingly powerful (considered how much I pay for it) VPS hosted in Germany by Contabo. It runs Ubuntu 20.04.

In server setup there are step-by-step walkthroughs of my server setup and configuration.

Improvements and fixes #

  • Install Jitsi Meet from Docker

Nextcloud #

  • Make Server from AJAX to Cron
  • Add OnlyOffice support

Installed #

  • Nextcloud
    • [[Server setup#Nextcloud configuration|configuration and installation walk-through]]
    • [[Server setup#Nextcloud cheatsheet|Nextcloud cheatsheet]]
  • Jitsi Meet
    • [[Server setup#Install Jitsi Meet|Jitsi Meet configuration and installation walk-through]]
  • OpenVPN - ✅ 2020.01.01
    • to install it, I followed this super simple and quick guide
  • PolitePol, transform any webpage in a RSS feed - ✅ 2020.01.01.
    • it doesn’t work on Twitter or Instagram
    • It’s stupid: RSS bridge is much more stable, cool, and effective.
    • uninstalled
  • RSS bridge, apparently, a more common, effective and popular alternative to PolitePol. It’s now running at ✅ 2021.01.24, setup

Mail server #

options #

Wishlist #

Useful server apps or services I haven’t installed yet, in order of urgency and importance.

  1. Firefly III, a personal finance management tool
  2. Mailtrain or, alternatively, listmonk, newsletter managers
  3. twtxt
  4. Huginn, an IFTTT Alternative
  5. Linkding
  6. Mail server
  7. Feedbin, arguably, the best RSS reader ou there. I wrote an email to them and they offered me a student free account, hosted by them.
  8. Miniflux

General knowledge #

Cron jobs

Cron Jobs essentially consist in running some command from the terminal at a predefined time, or every given interval.
They are great and useful since they can be used to automate any type of task.

Configuration #

Short answer #

Run crontab -e

Long answers #

Enable logging #

Cron Jobs do not log activity by default, to activate logging for an easier debugging, go to /etc/rsyslog.conf or /etc/rsyslog.d/50-default.conf and uncomment the following line:

cron.*					/var/log/cron.log

then run

sudo service rsyslog restart && sudo service cron restart

Cron Jobs logs will be in /var/log/cron.log

Troubleshooting #

My Cron Jobs #

rtcwake #

This Cron Job schedules [[Linuxplosion]] boot, and it switches it off until the following week.

35 18 * * 1 sudo udisksctl mount -b /dev/sda2 && echo "`date`: Linuxplosion is up and running!" >> ~/rtcwake-log.txt0 21 * * 1 echo "`date`: Linuxplosion is going back to sleep until next monday at 7PM." >> ~/rtcwake-log.txt && sudo rtcwake -m off -t "$(date -d 'next Monday 18:30' '+%s')"

wayback_archiver #

This Cron Job saves a list of predefined pages to The Wayback Machine using wayback_archiver

0 1 * * 1 /usr/local/bin/wayback_archiver --crawl --limit=100 --verbose --log=$HOME/wayback_archiver.log && echo "\n$(date) wayback_archiver success!" >> $HOME/wayback_archiver.log

Docker #

I hate Docker. Probably, it is because I don’t get it. I believe that if one day I will finally learn how it works, my life is going to change and everything will become easier. For this reason, I’m keeping at hand useful stuff which work and integrate with it.

![[Cheat sheets#Docker]]

DIY Home Server #

Raspberry Pi #