Zum Inhalt springen

Nextcloud/Installation/AIO: Unterschied zwischen den Versionen

Aus Foxwiki
DanielZorin (Diskussion | Beiträge)
DanielZorin (Diskussion | Beiträge)
Zeile 9: Zeile 9:
2. Installieren Sie NC-AIO gemäß den Anweisungen unter https://nextcloud.com/blog/how-to-install-the-nextcloud-all-in-one-on-linux/.
2. Installieren Sie NC-AIO gemäß den Anweisungen unter https://nextcloud.com/blog/how-to-install-the-nextcloud-all-in-one-on-linux/.


3.


<syntaxhighlight lang="bash" highlight="1" line copy>
; Commands
< /syntaxhighlight>
 
sudo apt update
 
cat /etc/os-release
 
apt install ca-certificates curl
 
sudo apt install ca-certificates curl
 
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
 
sudo chmod a+r /etc/apt/keyrings/docker.asc
 
sudo nano /etc/apt/sources.list.d/docker.list
 
sudo apt update
 
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
 
docker version
 
sudo docker run --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config
 
* Next, you can open the AIO interface on https://localhost:8080 or https://the.servers.ip.address:8080.
 
; Why you should use an ip-address
:* It’s important to always use an ip-address if you access this port, and not a domain. Otherwise, you risk that HSTS might block access to it later!
 
* You need to accept the self-signed certificate. Then you should see this:
 
* Alternatively, if ports 80 and 8443 should be opened in your firewall/router and a domain is configured to point to your server, you can reach the AIO interface with a valid certificate using https://your-domain.com:8443.
 
* Click on “Open Nextcloud AIO login” and paste your password:
 
* Then, you should see the AIO interface:
 
* Next, type in your public domain that you you’ve got before doing this guide. The interface should help you figure out the exact steps. (Set up DDNS for your domain to point to your public IP, port-forward at least ports 443/tcp, 3478/udp, and 3478/tcp to your Linux machine.)
 
* After you’ve set it up correctly, it should allow you to pass to the next step, where you can configure the wanted optional add-ons and the timezone, and click on “Start containers” to download and start them.
 
* At this point, you should see a spinner that will take a while depending on your internet speed. It should take around 10 minutes or more.
 
* When all containers are downloaded and started, you will see this screen showing the containers still starting, which will do the first installation for you:
 
* When everything is done, you should see this screen:
 
* Finally, you can now open your new Nextcloud instance and log in with the given admin credentials.
 
* That’s it! Everything is set and ready for production.
 
 
 
 
; fail2ban nextcloud install
 
sudo apt install fail2ban
 
nano /etc/fail2ban/filter.d/nextcloud.conf
 
 
 
 
 
 
 
 





Version vom 2. November 2025, 12:52 Uhr

Nextcloud/Installation/AIO

Beschreibung

Installation

1. Installieren Sie Docker gemäß den Anweisungen unter Anweisungen.

2. Installieren Sie NC-AIO gemäß den Anweisungen unter https://nextcloud.com/blog/how-to-install-the-nextcloud-all-in-one-on-linux/.


Commands
sudo apt update
cat /etc/os-release
apt install ca-certificates curl
sudo apt install ca-certificates curl
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo nano /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docker version
sudo docker run --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config


Why you should use an ip-address
  • It’s important to always use an ip-address if you access this port, and not a domain. Otherwise, you risk that HSTS might block access to it later!
  • You need to accept the self-signed certificate. Then you should see this:
  • Alternatively, if ports 80 and 8443 should be opened in your firewall/router and a domain is configured to point to your server, you can reach the AIO interface with a valid certificate using https://your-domain.com:8443.
  • Click on “Open Nextcloud AIO login” and paste your password:
  • Then, you should see the AIO interface:
  • Next, type in your public domain that you you’ve got before doing this guide. The interface should help you figure out the exact steps. (Set up DDNS for your domain to point to your public IP, port-forward at least ports 443/tcp, 3478/udp, and 3478/tcp to your Linux machine.)
  • After you’ve set it up correctly, it should allow you to pass to the next step, where you can configure the wanted optional add-ons and the timezone, and click on “Start containers” to download and start them.
  • At this point, you should see a spinner that will take a while depending on your internet speed. It should take around 10 minutes or more.
  • When all containers are downloaded and started, you will see this screen showing the containers still starting, which will do the first installation for you:
  • When everything is done, you should see this screen:
  • Finally, you can now open your new Nextcloud instance and log in with the given admin credentials.
  • That’s it! Everything is set and ready for production.



fail2ban nextcloud install
sudo apt install fail2ban
nano /etc/fail2ban/filter.d/nextcloud.conf







Anhang

Siehe auch


Dokumentation

Links

Projekt

Weblinks