Which Installationroute should I go?

Hello,

i’m in the process of reinstalling Nextcloud and don’t know which choice to make.

Previously, I had Nextcloud 29 installed directly on Ubuntu, Apache2, a LetsEncrypt certificate, HTTPS enabled and a domain to access it.

My Ubuntu image isn’t runnable anymore, so while I can mount it to get access to the configuration data, etc. I need a fresh install and then import. Directly installing NC doesn’t work on my specific hardware, as required packages got rm’d from repos. This means Docker is the way.

There seems to be a Docker image, an AIO, plus more docker images from various people.

Can someone recommend a setup to choose, that’ll let me run Nextcloud in a docker and allow me to import the db from before? (i used comments on files extensively, otherwise I’d just do a clean install and let NC index the files)

Webserver, php and database should be availible in most of the distributions with their package manager. Nextcloud itself, you can use the integrated updater (on a server, best via command line).

I think you can install “the dirty way”, normal Docker, Nextcloud AIO, …

For the “dirty way” there is no need for foreign packages e.g. PHP. My last install was your “dirty way” normal LAMP without Docker. But Docker and AIO is also cool.

Normal installation:
Nextcloud, Apache 2 with Lets Encrypt, Debian 12
Nextcloud, Apache2 with Lets Encrypt, Ubuntu 22.04 LTS (i think 24.04 LTS is similar)

Maybe you can change from Ubuntu to Debian. :wink:

You can also post some errors.

The hardware is a Jetson Nano, for which Nvidia has stopped releasing images after Ubuntu 18.04.

Previously, I had used the following guide to install NC on the Jetson Nano without issue:

The PHP installation required to add a sury repo to load PHP binaries with this command, as the default repo only loads PHP 7.4:

curl https://packages.sury.org/php/apt.gpg | sudo tee /usr/share/keyrings/suryphp-archive-keyring.gpg >/dev/null

The issue is that the sury repo has been cleared and now only lists binaries for Ubuntu 22.04 and 24.04.

I had compiled and installed PHP 8.2 by myself, but ran into various dependency issues when attempting to install NC, so I’d prefer using a docker-based install now.

The hardware choice is not ideal, but for my purposes, it’s a low power device that I have available.

The problem is not PHP. You must dist-upgrade to newer Ubuntu or Debian.

Unfortunately I don’t know Jetson Nano. But here a link GitHub - pythops/jetson-image: 💾 Create minimalist, Ubuntu based images for the Nvidia jetson boards . Although in the linked page there is apparently only Ubuntu 20.04 LTS at most. And also because of here the latest Debian Bookworm also does not work.

1 Like

I can recommend that autoinstaller:

which will install everything what is needed for Nextcloud in a few minutes.
And it will run on ARM too.

1 Like

Cheers. Armbian looks promising.

Haven’t gotten everything installed yet, but I am able to run Armbian Bookworm, despite what the user user posted. The issue is that the HDMI & Displayport output is broken, so it requires a serial connection to setup the device. Afterwards it’s possible to SSH into the Jetson though, so it’s all good for a server-style.

I reckon, it’s now a truly headless device.

1 Like

happy to see you make progress. back to your initial question:

  • aio is the easiest way to setup turnkey system… it is extremely well documented and taken care by a paid Nextcloud employee. It works well but relies on some concepts I personally don’t like or disagree with. customization is harder/different
  • if you are more advanced user looking for most flexible docker solution use Docker community image is almost vanilla Nextcloud in Docker - more customizable but harder to use than AiO. My post docker-compose-setup-with-notify-push-2024 explains how to setup a system with most important features for this flavor.

there are other like linuxserver.io which follow there own philosophy with it’s own advantages and issues which could be harder to maintain and troubleshoot.

2 Likes