Nextcloud Home Server on Raspberry Pi 4
A guide how to install a Nextcloupi image on a Raspberry Pi 4. The boot volume will be a hard drive.
In order to host our own Bitwarden Password Manager beside Nextcloud we will install Docker, Portainer and Nginx.
What we need:
- Raspberry Pi (i prefer a Rasperry Pi 4 with at least 4GB ram)
- a ssd hard drive
- a usb to sata adapter like this one (https://www.amazon.de/gp/product/B00N4JLNXM/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1)
- BelanaEtcher (for Windows users to write the image to the ssd)
1.) Installing Nextcloudpi
- get the NCP Image here: https://ownyourbits.com/downloads/NextCloudPi_RPi_03-02-22/NextCloudPi...
2.) Changing ports
In order to get the port 80 and 443 free for Nginx later, we need to change the port of the Nextc...
3.) Installing Docker
- connect via ssh to your pi - type in: sudo apt update - type in: sudo apt upgrade - type i...
4.) Installing Portainer
- connect via ssh to your pi - type in: sudo docker pull portainer/portainer-ce - type in: su...
5.) Installing Nginx
- connect via ssh to your pi - we create now a directory for nginx, a config.json file and a doc...
6.) Installing Bitwarden
- create docker-compose.yml - paste in: version: '3'services: bitwarden: image: bitwardenrs...
7.) Backup
Nextcloud Backup - I use the backup from the nexcloudpi panel (https://ip-to-your-pi:4443) to ma...
Additional Steps
Secure the server
To make the server more secure we will 1. change the default ssh port and 2. we change from pas...
Fail2ban
Fail2Ban is an intrusion prevention software framework that protects computer servers from brute-...
UFW - Uncomplicated Firewall
More here https://help.ubuntu.com/community/UFW
ddnss.de
https://9minuti.com/ddns-updater-with-docker-and-raspberry/
Error "/.well-known/caldav" etc
- go to your Nginx Proxy Manager web page. - for your Nextcloud Einfach bei NPM zu den ProxyHos...