Download the Image for your Hardware
Please note images are 64 bits currently. If you have 32 bits hardware like rpi2 and lower, the image will not boot. You can still try the curl installer or use the docker version.
MD5 checksum (to verify the download)
From the Terminal (GNU/Linux & macOS)
Ex.
# 1) Download the file, in this case NextCloudPi_LXD_arm64_v1.52.0.tar.gz
wget -O ./NextCloudPi_LXD_arm64_v1.52.0.tar.gz https://github.com/nextcloud/nextcloudpi/releases/download/v1.52.0/NextCloudPi_LXD_arm64_v1.52.0.tar.gz
# Verify the checksum, 2 examples
# I) Using a here-doc
md5sum --check <<EOF
4866e0f96a1f65e9e380682c3bd894bc NextCloudPi_LXD_arm64_v1.52.0.tar.gz
EOF # Output: NextCloudPi_LXD_arm64_v1.52.0.tar.gz: OK
# II.1) By saving to a file in the same directory
echo '4866e0f96a1f65e9e380682c3bd894bc NextCloudPi_LXD_arm64_v1.52.0.tar.gz' > checksum
# II.2) Then verifying the checksum
md5sum --check ./checksum # Output: NextCloudPi_LXD_arm64_v1.52.0.tar.gz: OK
A new checksum file can be generated on Windows using the Command Prompt & the command
certutil -hashfile MD5
Installing
You can run NextcloudPi from a microSD card or directly from a USB HDD/SSD connected via USB-cable if you have a supported device and bootloader. (Recommended is an SSD with USB3.0 in an enclosure so it has its own power supply)
See Raspberry Pi Documentation - Mass-storage boot.
Option 1: microSD card
- Check if your computer has a port for an SD or microSD card, if you have an SD card port you can use an adapter to flash the image to a microSD card.
A microSD slot, due to its size, can easily go unnoticed or be forgotten that it’s there so it doesn’t hurt to check if you’re unsure. - Use a card reader via USB-cable.
GNU/Linux & macOS
Graphical Interface
- Download NextcloudPi from GitHub releases:
- Double-click the downloaded file and then select “Extract”
- Click “Show the files”
- Download Etcher from their website
4.1. Double-click the.zip
file
4.2. Double-click the.AppImage
file
4.3. Click “Select Image” in the Window that just opened, find the extracted.img
file and click on “Open”. - Etcher should automatically detect the microSD card, remember to verify it’s the one you want the image to be installed on, all data will be removed on the device you select when flashing to it.
- Click “Flash” in Etcher.
Terminal
-
Open a terminal and run the following commands.
-
Run command
cd $HOME/Downloads
(or any other folder you’ve saved the files to). -
Check the file for corruption (optional).
Run the commandmd5sum $ARCHIVE_FILE
where$ARCHIVE_FILE
is the name of the downloaded archive file including the file-type extension in the name (.tar.gz, .zip), and compare it with the hash in filemd5sum
which you can find on the releases page. -
Execute
tar -xvf $ARCHIVE_FILE
to extract the image, whereARCHIVE_FILE
is the filename of the downloaded archive file, including the file-type extension in the name. (.tar.gz, .zip) -
Run command
sudo dd bs=4M if=NextcloudPi_XX-XX-XX.img of=/dev/sdx
, where/dev/sdx
is the device mount name of your microSD card, check withlsblk
orsudo lsblk
.
(More info) -
Run command
sync
.
Windows
-
Install Etcher from their website
-
Install 7-Zip from their website
-
Run 7-Zip manager, find your downloaded file, right click and choose “Extract here”, there should now be an
.img
file present. -
Run Etcher and click on “Select Image”.
4.1 Find the .img
file extracted earlier and click on “Open”.
-
Etcher automatically detects the SD card, but verify that is the one you want the image to be installed on.
-
Click “Flash” in Etcher.
Option 2: Hybrid
(/boot
partition on microSD card and /
partition on external USB HDD/SSD)
This will limit the media errors that usually happen when running from the microSD card, but one downside if using a USB HDD is it will be spinning up more often when the device performs read/write operations, an SSD will be quiet & faster but not as durable over the same long period of time as the HDD. Something to take into consideration if you’re planning long-term use, as in many years.
After the Option 1 steps you can move the root partition to HD or SSD, on Armbian based images you may install a tool to do this: apt install armbian-config
.
Option 3: USB HDD/SDD or flash drive
See Raspberry Pi Documentation - Mass-storage boot
- If you are using a Raspberry Pi 4 or any of the supported devices linked above, and have updated the bootloader to the latest version, you can flash the image directly to any USB media (mass-storage like a hdd/ssd or a flash drive) and boot from it.
For more detailed instructions see Raspberry Pi Documentation - Mass-storage boot and this post.
:: NOTE ::
Help needed to explain the required steps on other platforms, if you are taking this path, please consider editing this wiki.
Option 4: Install using Berryboot to a microSD card or an external USB drive
- Follow step by step instructions here: Berryboot - Install NextcloudPi on an external drive
First boot
- Remove the microSD card and insert it into the card reader port of the Raspberry Pi.
- Connect the Raspberry Pi to your home router with an ethernet cable
- Connect the Raspberry Pi to power and it should turn on
Or turn it on if you have a switch on the power cable
Almost up and running now, it can take a while when booting for the first time, continue to the next steps by reading: How to access NextcloudPi for Activation
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