forked from varia/bibliotecha-manual
Add captive portal and permissions steps
This commit is contained in:
parent
8e6c03088f
commit
7d6b2bcce2
@ -531,6 +531,28 @@ $ mkdir /opt/calibre-database
|
|||||||
$ /usr/bin/calibredb restore_database --really-do-it /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
|
### Install and Configure Calibre-web
|
||||||
|
|
||||||
We now setup the Calibre-web installation. We first get a copy of the source with:
|
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
|
$ 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
|
### Setup a new MOTD
|
||||||
|
|
||||||
When you SSH into the Raspberry Pi, you can enable a nice welcome message.
|
When you SSH into the Raspberry Pi, you can enable a nice welcome message.
|
||||||
|
Loading…
Reference in New Issue
Block a user