How To Install & Use Nextcloud On Raspberry Pi (Easy!)

preview_player
Показать описание


Timestamps:
0:00 Intro
0:40 Downloading Nextcloud
1:38 Starting Nextcloud temporarily

docker run --name nextcloud -d -p 8080:80 nextcloud

2:07 Creating the database with PostgreSQL
2:37 Creating a Docker network

docker network create --driver bridge nextcloud-net

3:06 Starting the database container

docker run --name postgres -e POSTGRES_PASSWORD=123456 --network nextcloud-net -d postgres

docker run --name postgres -v /home/pi/nextcloud-db:/var/lib/postgresql/data -e POSTGRES_PASSWORD=123456 --network nextcloud-net -d postgres

3:53 Starting Nextcloud again

docker run --name nextcloud -d -p 8080:80 -v /home/pi/nextcloud:/var/www/html --network nextcloud-net nextcloud

4:07 Setting up Nextcloud
4:36 Tips for accessing Nextcloud on the internet
5:05 Nextcloud main features
6:11 Nextcloud App Store
6:26 Nextcloud settings
6:48 Adding Nextcloud users
6:59 Adding an external hard drive to Nextcloud

sudo chown -R www-data:www-data /media/usbdrive

docker run --name nextcloud -d -p 8080:80 -v /media/usbdrive:/data --network nextcloud-net -v /home/pi/nextcloud:/var/www/html nextcloud

9:01 Closing thoughts

Other links:

This tutorial explains how to self-host the free open-source software Nextcloud on the popular single-board computer Raspberry Pi. The guide of course also works for other ARM and x86 devices but you might need to use different Docker images. Learn how to download and setup Nextcloud and the database software PostgreSQL using Docker. We will also briefly go over Nextcloud apps like calendar, contacts or tasks and their settings. The video closes by demonstrating how to connect an external USB hard drive to Nextcloud for extended storage.

» Credits «
Рекомендации по теме
Комментарии
Автор

after a couple of days trying to get nextcloud running with different tutorials this one was the only one that worked

rurickmaqueopoisot
Автор

Oh man. What a great one. Went through many videos but none matches the level of convenience of your video. Much appreciated.

boi_doingthings
Автор

its taken me 2 days to find a tutorial this good,

and it was worth it thank you

PlaylistMan
Автор

Great, The best video on internet, pls make a video on internet access of this nextcloud and how to transfer whole database to another hard drive and if possible include backup of nextcloud

SHAILESH_JANGRA
Автор

Managed to finish setting it up in 2 hours, thanks for the easy to follow tutorial

seanaldridgefrancisco
Автор

Thanks for the best video for the combination raspberry pi + nextcloud + docker! Two things would have been great to be added:
- setup the crontab for the background jobs (sudo docker exec -u www-data nextcloud php /var/www/html/cron.php)
- manually perform a file scan otherwise you won't find all images on nextcloud (sudo docker exec -u www-data nextcloud php /var/www/html/occ files:scan --all)

asuras
Автор

Really covered all your bases, absolutely fantastic guide! I did not do this on a raspberry pi, but was spared any and all headaches setting this up on Fedora.

curlyfryactual
Автор

This was THE easiest guide to follow - I wish I found this 7 hours ago - yes, I've been working on this for 8 hours. 😭

Bcarr
Автор

Hi, I did everything you showed but I cannot open Nextcloud in the browser. "This site can’t be reached".

daylifemap
Автор

Doesn't work for me. After clicking on finish at 4:33, I lose the admin page and can't access it again. I made sure everything except the password was named postgress in the database section.

_capr_
Автор

This still works in 2024. Be sure to read what you are downloading in regards to installing Docker per his BitWarden video.

I did mess up though. I went through the setup before setting up Postgres, because I was trying to hurry and do this on my lunchbreak. Pretty sure the Postgres db is doing nothing now, not sure where to go from here because I seem to be illiterate!

DylanLongwith
Автор

I've tried to follow this tutorial multiple times but each time after reaching the step "starting nextcloud again", I get an "internal server error" at the localhost:8080 address. Any idea why?
Here's the entire message:
"The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log."

tesla
Автор

Great starting point to start setting this up. Excellent video!

davidward
Автор

Hey censi, I have watched your bitwarden video and successfully made a bitwarden server with port 8080. Now port 8080 is occupied by bitwarden container in my docker and I have assigned nextcloud with port 8443. But when I tried to open setup after assiging the port, it did not open in my browser. Please help me. Thank you

immortalcyanogen
Автор

Hi there, I'm very new to Raspberry Pi, and this guide really helped me

I am wondering though, would nextcloud put a lot of strain on the sd card that the pi runs from? I want to use Nextcloud to backup photos on my external USB drive, but I'm worried that during uploads there may be a bunch of temporary files being written to the sd card if Nextcloud is installed there

yipkellyfamily
Автор

After the screen at 4:33, I get a Internal Server Error, saying "The server was unable to complete your request". Is there any way to simply fix this?

collinsvods
Автор

After I restart my raspberry pi I am not able to login to Nextcloud, can someone help me

ujwalcs
Автор

Nextcloud GUI starts up just one time. After trying to enter Database login and user i get "Request Error" -page and cant access it anymore.

RushMyEx
Автор

Hi dude, what about ssl certificates ? Is it the same like bitwarden video? I should add the ssl commands when running docker?

dcc
Автор

How do I disable and enable these containers and bridge etc when turning the pi off and on? I keep having to set this all up again when I move

Grimy-ksvn