diff --git a/docs/index.md b/docs/index.md index 0ec06a9..ab24693 100644 --- a/docs/index.md +++ b/docs/index.md @@ -531,6 +531,28 @@ $ mkdir /opt/calibre-database $ /usr/bin/calibredb restore_database --really-do-it /opt/calibre-database ``` +## Configure the Captive Portal + +When we connect to the Bibliotecha wireless access point, we will be directed +to a splash page where we are introduced to the library. We need to set that up: + +```bash +$ mkdir /var/www/bibliotecha +``` + +And then we download the default page into location: + +```bash +$ apt install -y wget +$ wget https://git.vvvvvvaria.org/varia/bibliotecha-captive-portal/raw/branch/master/index.html -O /var/www/bibliotecha/index.html +``` + +We should also ensure that the correct ownership permissions are configured: + +```bash +$ chown -R www-data: /var/www/bibliotecha +``` + ### Install and Configure Calibre-web We now setup the Calibre-web installation. We first get a copy of the source with: @@ -569,6 +591,12 @@ And we also enable this to run on reboot: $ systemctl enable cps.service ``` +We should also ensure that the correct ownership permissions are configured: + +```bash +$ chown -R www-data: /var/www/calibre-web +``` + ### Setup a new MOTD When you SSH into the Raspberry Pi, you can enable a nice welcome message.