Thursday, January 24, 2019

Nextcloud on Raspi

Installing NextCloud on Raspi @ Home
- Followed that guide here:
https://strobelstefan.org/?p=5790


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: https://community.letsencrypt.org/t/certbot-auto-failed-to-complete-had-a-problem-while-installing-python-packages/83697/5
and another fix here:
https://community.letsencrypt.org/t/certbot-auto-broken-in-debian-based-systems/83754
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


Debugging:

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
</Directory>



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:
https://webdock.io/en/docs/webdock-control-panel/ssl-certificate-guides/upgrading-lets-encrypt-certbot-latest-version-ubuntu

No comments:

Post a Comment