Skip to content

installation script for debian next to a router at home

Mario requested to merge einervonvielen:homeinstall into master

Created by: einervonvielen

This is a script for an unattended installation of hubzilla on a debian that is connected to a router at home.

It works with two dynamic IP services, freeDNS and selfHOST.

The hub digitalesparadies.de was completely installed by it.

It uses let's encrypt for certifactes. Iinstead of the official client of letsencrypt a a shell script is used to create and renew the certificates, see https://github.com/lukas2511/letsencrypt.sh.

The script aims to automate as much as possible, including

  • daily backups (using rsnapshot) (certificates are backed up as well)
  • daily updates of Debian, hubzilla, letsencypt-script
  • renewal of letsencrypt certificates
  • dynamic IP udates (freeDNS or selfHOST), poller,php

The only thing that is not automated is a restore from the backups if something crashes (db, debian, pc,....).

The hub admin can watch all daily backups and updates in a log that is written to /var/www/html/hubzilla-daily.log and can be viewed under "Administration" > "Protocols" > "Protocol file = hubzilla-daily.log". The log will also show some stats on

  • size of hubzilla db
  • free disk space of internal disk and external backup devices
  • renewed certificates
  • ...

The script is attended for a hub admin with only very basic knowledge and should automate everything for him.

The main goal is to install new hubs for friends, colleagues, may be in schools, something like this. Scripted unattended installations might help to have kind of standard installations that are not as error prone as manual installations and might be easier to trouble shoot.

WATCH THIS A had to delete and commit "view/es" in order to branch and push my changes. I did not know another solution to get rid of the error messages. Hmm, sorry for this if this makes any trouble.

Merge request reports