FreedomBox for Communities/Digital Library

A community digital library might host files of various types like documents, books, audio, video, software etc. Hence a generic cloud solution must be used instead of specialized library software like Calibre which only manages ebooks.

A NextCloud server on the FreedomBox can be used to host the files for a community digital library. NextCloud does not have an official Debian package and must be installed manually.

Installing dependencies
Install the necessary Debian packages required for NextCloud. The following installation instructions are for NextCloud 16. Check whether all the required dependencies are installed against this checklist

Database setup
Setup PostgreSQL database. The following instructions are for PostgreSQL 11.

Open the psql console as user postgres Create a new user and database for nextcloud. Please use a strong password. Exit the console by pressing  or by typing   and enter.

Web installer
The easiest way to install NextCloud is using its web installer.

Add the web installer script to your Apache server root and set the permissions as follows: Access the web installer at the path https://&#x3C;freedombox-url&#x3E;/setup-nextcloud.php from a web browser. If the installer says that any dependencies are missing, install the corresponding Debian packages.

After the nextcloud files are setup, you will be prompted with a screen to enter admin credentials and database credentials.

After submitting the above details, the NextCloud installer will finish installation and log you in as the administrator user.