Curl installer - Debian

Curl installer for Debian

As a first step towards enjoying Nextcloud on systems other than the Raspberry Pi, a new way of installing NextCloudPi was introduced in 2017 by developer nachoparker.

:: Please note ::
A clean and minimal and current Debian is expected.

Just Linux basic tools, curl & ssh are installed.
Any conflicting or already existing services or configurations, can break the installer and there is no un-installer.

Of course, you should inspect the code first. After you have and are satisfied or simply trust the publisher, install NextCloudPi in any Debian Bullseye system of any architecture with

curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash

This is with the aim to stimulate starting of testing on other boards, to eventually provide images for them. It is destined to experimental use, but some use it for production none the less.

An important change is that (because we are no longer focusing only on the Raspberry Pi, but many other Debian based 64_bit systems), the default user for both web interface’s is now ncp and the default passwords are generated by nc-init. View and modify them with nc-admin (for NCweb) and nc-passwd (for NCPweb)


We hope this doc was helpful, if you encounter any issues please reach out to the community.
These docs are written by volunteers, please consider becoming one of them.
Contact the wiki team at Matrix or Telegram

4 Likes

3 posts were split to a new topic: Attempting to install and activate nextcloudpi

My Atomic Pi which has an existing NCP had corrupted eMMC so I re-setup again.
For two days, and a few tries on other machines, it has been stuck in “Downloading Nextcloud 27.1.6…”

Now ok… Installing…

is the curl installer script desupported?
I dont see it on nextcloudpi.com and it seems to have installed a 32bit php version on my bookworm 64bit raspberrypios on raspberrypi5.

It is still there, look at Debian or
https://github.com/nextcloud/nextcloudpi#curl-install-scripts

The installer changes the hostname from the originally selected machine name to “nextcloudpi”. Why? Is the hostname “nextcloudpi” necessary to keep? - If you answer RTFM, please be kind enough to give me a hint how to find the relevant information - thx, Frank

no, you can change it later (i suggest raspi-config), it is not mandatory.

thanx, i found it on github, abut its not on the Website… however, i have solved my issue, it is caused by the latest RaspberryPiOS image, something there causes that php always installs 32bit version. I have found an older OS image on my laptop (11-2024) and it worked correct instantly.

i suggest raspi-config

thx @fadefx (I assume your answer relates to my question of yesterday) - what’s the benefit of using raspi-config over the standard debian procedure of hostnamectl and manually editing /etc/hosts?

none, except that you can do it without editing hosts and sudoers

none, except that you can do it without editing hosts and sudoers

thx again, @FadeFx - however after using the debian-installer, there seems to be no raspi-config command, on the system


:upside_down_face:

you do not run on a RaspberryPi (RasPiOS)? then its not there. raspi-config is a utility that is essential part of RaspberryPiOS and can be started using sudo raspi-config
however, i did not read that you use a raspberry at all, so i might be on the wrong path…

thats a container image, i wanted a native install…

sorry, forget that, seems i just was too dumb to use a simple website :wink:

thx again @FadeFx

you do not run on a RaspberryPi (RasPiOS)?

Uh, sorry. I thought for a question in the “Curl installer - Debian” thread, this was obvious - my fault :woozy_face:

Do it your way, watch error logs , don’t forget config.php of nextcloud (trusted—)

thx @geoW

Do it your way

I don’t stick to “my way” - I ask for recommendation:

don’t forget config.php of nextcloud

The config.php has seven times “nextcloudpi”:

7 => ‘nextcloudpi’,
5 => ‘nextcloudpi.local’,
8 => ‘nextcloudpi.lan’,
3 => ‘nextcloudpi’,
14 => ‘nextcloudpi’,
‘overwrite.cli.url’ => ‘https://nextcloudpi/’,
‘mail_domain’ => ‘nextcloudpi.com’,

Is manually editing all of them the recommended way in NextCloudPi?

No, of course not, no one recommends renaming server name in the documented setup, it is based on a single server setup. You started mourning about the server name practice, you may have reasons for renaming no one know, that’s fine, but then you are leaving the sphere of “recommended” to enter spheres as “advisable” or “practicable”; nothing wrong with it. You has been responsible and you will be responsible for your server. :grinning_face:
So I renamed all but the mail_domain, I have no clue; I did / do it with some test servers if they run a bit longer, because you get issues running some “nextcloudpi” server on the same net / segment.