Thursday, January 24, 2019

Nextcloud on Raspi

Installing NextCloud on Raspi @ Home
- Followed that guide here:

Ran into the problems:
- mariadb  was only available in Version 10.0 an not 10.1 because of Ubuntu Version 16.1
- mariadb setup was not available as of Version 10.0 --> used mysql command instead
- Error for Setup of letsencrypt-auto because of certbot-auto solved here:
and another fix here:
Error was: valueerror too many values to unpack

Nothing helped for me till now.

Last but not least:
Apply the --no-download option to letsencrypt-auto lines around 1000 like in certbot-auto


Obtaining the Client Log File

To obtain the client log file:
  1. Open the Nextcloud Desktop Client.
  2. Press F12 on your keyboard.
The Log Output window opens.

Errors on raspbian with apache 2.4:
403 Forbidden.

Prior to that  I moved the wwwroot of apache.
For this the following lines have to be in /etc/apache2/apache2.conf:

<Directory /media/newroot/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted

Securing Nextcloud with iptables if bind-adress is more than localhost:
Allowing certain hosts:
iptables -A INPUT -p tcp -s X.X.X.X --dport 3306 -j

Denying all other hosts:
iptables -A INPUT -p tcp --dport 3306 -j DROP

Upgrading to latest certbot package: