/nextcloud-zero

New Nextcloud auto-installer script

Primary LanguageShell

Nextcloud Installationsskript // Nextcloud Installation script

D: Installieren Sie Ihren eigenen Nextcloud-Server in weniger als 10 Minuten.
E: Install your own Nextcloud server in less than 10 minutes.

  • Ubuntu 20.04 LTS / 22.04 LTS x86_64
  • NGINX 1.2x from PPA
  • PHP 8.x from PPA
  • Auswahl / Option: MariaDB // postgreSQL
  • Auswahl / Option: Self-signed // Let's Encrypt certificates
  • Auswahl / Option: Nextcloud Release
  • etc...

INSTALLATION:

D/E: Vorbereitungen/Preparations:

sudo -s
git clone https://github.com/criegerde/nextcloud-zero
cp nextcloud-zero/zero.sh .
chmod +x zero.sh*.sh

D/E: Konfigurationsvariablen anpassen / modify configuration variables:

nano zero.sh

NEXTCLOUDDATAPATH="/data"
NEXTCLOUDADMINUSER="nc_admin"
# e.g. NEXTCLOUDADMINUSERPASSWORD="Nc-AdMi!n65#" or it wil be gerated by the script
NEXTCLOUDADMINUSERPASSWORD=$(openssl rand -hex 16)
# Nextcloud Release (https://nextcloud.com/changelog/)
# e.g. NCRELEASE="nextcloud-23.0.4.tar.bz2" or choose the latest/current release
NCRELEASE="latest.tar.bz2"
NEXTCLOUDDNS="ihre.domain.de"
# Let'sEncrypt-SSL/TLS: [y|n]
LETSENCRYPT="n"
# NEXTCLOUDEXTIP="123.124.125.120" or read from the system
NEXTCLOUDEXTIP=$(dig +short txt ch whoami.cloudflare @1.0.0.1)
# e.g. MARIADBROOTPASSWORD="MaRiAdB-RooT-PwD" or it wil be gerated by the script
MARIADBROOTPASSWORD=$(openssl rand -hex 16)
# MariaDB "m" or postgreSQL "p"
DATABASE="m"
NCDBUSER="ncdbuser"
# e.g. NCDBPASSWORD="YouR#P@ssworT" or it wil be gerated by the script
NCDBPASSWORD=$(openssl rand -hex 16)
CURRENTTIMEZONE='Europe/Berlin'
PHONEREGION='DE'

Installation:

./zero.sh

D/E: DEINSTALLATION/UNINSTALL:

D. Sofern Sie das Skript erneut ausführen möchten, so führen Sie bitte zuerst die Deinstallation durch:
E: If you want to re-install your server - please uninstall your software first.

/home/*benutzer*/Nextcloud-Installationsskript/uninstall.sh
rm -f /home/*benutzer*/Nextcloud-Installationsskript/uninstall.sh

D: Dabei werden alle Softwarepakete (inkl. DB) sowie alle Verzeichnisse und Daten aus der vorherigen Installation entfernt. Im Anschluss daran kann die Installation erneut durchgeführt werden.
E: All data, databases and software from the previous installation will be removed. Afterwards you can re-run the installation script.

D/E: ERNEUTE INSTALLATION/RE-INSTALLATION:

./zero.sh

D/E: LOGDATEI/LOGFILE:

nano /home/*benutzer*/Nextcloud-Installationsskript/install.log

D: Weitere Optimierungs-, Härtungs- und Erweiterungsmöglichkeiten finden Sie hier:
E: Further hardening, optimization and enhancement information can be found here:
https://www.c-rieger.de/nextcloud24-installationsanleitung/
Carsten Rieger IT-Services