Build an Awesome Nextcloud Server (For Ubuntu 20.04)
Vložit
- čas přidán 30. 06. 2024
- The popular LearnLinuxTV guide to setting up your own cloud with Nextcloud on Ubuntu 20.04 has been freshly updated for 2022! In this video, Jay will walk you through setting up an Ubuntu server for use with Nextcloud. In this tutorial, you'll be walked through the process of installing Nextcloud, setting up a TLS cert with Let's Encrypt, implementing online document editing, and more!
Thank you to Linode for sponsoring this video. Check out the following link to get your very own server for Nextcloud! ➜ learnlinux.link/akamai
Support Learn Linux TV
Note: Commission may be earned for any and all links presented here.
- Support me on Patreon and get early access to new content! ➜ learnlinux.link/patron
- Check out jay's latest book, Mastering Ubuntu Server 3rd Edition ➜ ubuntuserverbook.com
- Affiliate store for Linux compatible hardware/accessories ➜ learnlinux.link/amazon
- Check out the Tiny Pilot KVM for your Homelab ➜ learnlinux.link/tinypilot
Video Specific Links
Official blog post for this tutorial ➜ www.learnlinux.tv/?p=1730
Download Nextcloud ➜ nextcloud.com/install/#instru...
Time Codes
00:00 - intro
02:38 - Setting up a Linode instance for Nextcloud
09:59 - Setting up a Domain/DNS
13:39 - Creating a non-root user
14:41 - Giving the non-root user access to sudo
16:02 - Installing all available updates
17:48 - Changing the server's hostname
22:59 - Disallowing root login via ssh
24:09 - Downloading the Nextclud installation file
26:05 - Setting up MariaDB
29:55 - Creating the database for Nextcloud
33:15 - Setting up Apache for Nextcloud
47:25 - Setting initial Nextcloud configuration
49:01 - Securing Nextcloud with a TLS certificate from Let's Encrypt
53:34 - Viewing (and fixing) setup warnings
59:15 - Setting up OnlyOffice integration in Nextcloud
Recommended stand-alone videos from Learn Linux TV
• How to create a bootable flash drive for installing Linux ➜ linux.video/flash-usb
• Installing an operating system for Raspberry Pi ➜ linux.video/pi-imager
• Understanding Linux permissions ➜ linux.video/perms
• Essential tweaks for ALL Linux Servers ➜ linux.video/all-servers
Recommended Courses from Learn Linux TV
----------
• Get up to speed with managing an OpenStack Cloud ➜ linux.video/openstack
• Learn how to write your own Bash Scripts ➜ linux.video/bash
• Install, configure, and maintain a Proxmox VE Cluster ➜ linux.video/pve
• Automate tedious setup jobs by learning Ansible ➜ linux.video/ansible
• Learn how to exit vim (and use it too) ➜ linux.video/vim
Linux-related Podcasts
• Enterprise Linux Security ➜ enterpriselinuxsecurity.show
• The Homelab Show ➜ thehomelab.show
Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
#Nextcloud #Linux #Cloud - Věda a technologie
Thanks Jay. Not many creators would go into this level of detail in an over 1 hour long video. It's always great to see the end-to-end steps described vs a turnkey or bare install without post-setup steps.
Thank you for providing an updated version. Used your last video and setup mine with no problem! Love all the detail. Keep up the great work!
Thank you!!
I love your content and really appreciate all the detail and examples you carefully plan for each video. I can actually follow along with your videos without rewinding and hitting pause every 10 seconds.
You're awesome~ thank youu
Hey Jay, just wanted to say thanks, this video is on point. I messed up my next cloud months ago when I tried to install certbot. You have cleared that up now and made it clear with your instructions. Thank you.
That was awesome video! I've finished setting up my nextcloud a few moment earlier, and it is fantastic! Thank you, Jay!
Great Tutorial and it came exactly when needed. I just set up an old HP Elitedesk Mini to run proxmox and migrated my nextcloud from my trusty RPI4 to an Ubuntu LXC. Only problem I had was the usage of the certbot snap, because with proxmox the usage of snaps is not as good as it should be. Installed the "apt" version and it all works like a charme right now.
I literally watched your previous setup guide 2 days ago and got mine setup in Linode and I am still watching this.
What an excellent presentation! Wish I had this to reference months ago! I ended up with a Truenas setup with Plex, Nextcloud so far but your detailed explanation, examples and flow are excellent! You got a new follower Jay!
Wow, this is my first video from you. The audio recording is great. Your voice is very clear. The content is phenomenal. I am pumped to keep learning. I setup NextCloud in AWS with Snap. I am going to start again the way you just explained it in this video. Thanks!
Have you read my mind 😂 yesterday morning I followed your a year old tutorial and installed successfully with a few issues only. I’ll follow this video this morning from scratch 👍🏻 Thank you sir
Ohh i've been looking for a reason to do the deep dive into NextCloud. Thank you so much for this video bro!
Thank you for not sticking your face on the screen while sharing it unlike other obnoxious tech guides. I do find it hard to locate your mouse pointer but still the best content out there.
thanks for making this update. I can't emphasize how much your previous tutorial has helped me.
Based on the age of these comments,. I am a litlle late to the party. But, better late than never. And, what a party it is. Jay, you have outdone yourself with this video. Detailed and super easy to understnad instructions helped me getting NextCloud out in no time at all. Thanks for your hard work and dedication and educating the noobs out here.
Thanks for the video.
Everything was pretty clear.
I like when admin tell how it should be configured properly.
Most of tutorials skip lots important things about updates, security.
Great video. I know a lot of this stuff but not off the top of my head. I really enjoy your videos and you explain things so well. Keep up the great work, it helps.
As usual, another excellent and highly informative video on Nextcloud. Jay, you are one of my favorites! Thank you!
Hey, I just wanted to comment on your tutorial. I'm a newbie at Linux and quite honestly, I've tried about 4 times to get a working Nextcloud Server based on other CZcamsrs and I was successful once but it wouldn't go to HTTPS. however, your tutorial was very understandable and of course, I had to go back a few steps, but you were very good at explaining things that I could be victorious in setting this up. Thanks a lot. For me, I am hosting my own server at home.. thanks a bunch
Jay, video is spot on ! Thank you so much for it. When I am going to start setting up my homelab this is going to be my first project defo. Well done and thank you.
I learnt how to do this because of you in the previous video. Then again, I learnt how to do it using Ansible because of your tutorials.
Thanks, Jay
Like always Jay ! Very awesome video ! Thank you so much !
Superb walk through Jay. Thanks so much! 🖖
I'm only 24 mins into this, and its bloody brilliant!
Hi Jay!
Thanks for the video. It's massively awesome!
Like usual, your tutorial was AAA! One request though, could you make a video on how to properly update NC in the future? This tutorial is one of the best I’ve seen. Keep up the excellent work!
A video about Openstack, OpenNebula or IaaS-Cloud in general would be great.
Well, thats really something I want to learn.
@
If he makes a full series about private IaaS-Cloud, I would subscribe ^^
@Against NAZO! you should subscribe anyway. He is very thorough with all his tutorials.
The best tutorial I've seen bravo man you are my jedi. The ultimate in everything you do in linux.
Thank you for the video ! 🐧
A major pain point I had to figure out was having the data folder on a separate, larger drive. Maybe covering a scenario where the host OS and NC is on a small SSD but you want user dater on big rust drives?
Just enable mount at boot with /etc/fstab, make a new folder on it and make sure the proper permissions are set and you are good to go.
@@stargazerch.3605 Yes, that's what I did on my
Perfect Tutorial Jay. Awesome!!
I have tried to deploy NextCloud on Docker with a Portainer Stack and via Hansson IT’s VM but always had the same Problem with the Collabora Code Server. After installing it, my connection trough the Reverse Proxy to the NextCloud Instance times out. But following your setup, everything works great. Many thanks for this and for every other great video you make! Regards from Germany
This is simply awesome Jay!!
Thanks so much! You’re definitely my fav Linux YT channel as I’m such a Linux noob. Do you have a video that shows how to set this up outside of Linode?
Thanks Jay. Good as always for many years now.. I follow many of your videos step-by-step with success as always. My only problem is the email server configuration and I thing will be grate if you make a video for this. Take care.
Your job is spectacular,
i am in love with this channel and ur tutorials
Brazilian brother here
and sorry about the not so good English
Wow, I can't like this video enough!! Thanks very much. Mine is up and running! I would like to see how to set it up so that my computer can sync files directly to the server over LAN rather than over the internet while still being able to send people public links to files. Thanks so much again!
Awesome video Jay! I have had a few nextcloud instances over the years, but they've always been docker or the proxmox container version. Always wanted to make my own for various reasons, and cert-bot looks super easy to use.
Just curious about something, maybe its me being a little loopy, but firewalls/security. I know you can install fail2ban within nextcloud, and since nextcloud is not in a container, it would be much easier to use crowdsec, and i guess the rest is just firewall stuff, locking down ports, maybe restricting ip addresses unless you want it fully public etc.
This is amazing. Thank you Jay!
thanks jay, brill video, i ignored the ssl bits as I have nginx proxy manager already running at home, though (after some googling) had to add quite a few extra lines into config.php to get it too work, thanks again
Great Job what you do is very effective and well explained. I don't know if you have any tutorial in customizing the NextCloud for example changing the logo and etc. Thank you again and wish you all the best
Awesome tutorial.Thank you!!!
Thanks Jay, great video! could you do a followup on how to add a bucket (object storage)?
Thank you
Great detailed tutorial 😃
Hey Jay, hope all is well. Would be great to see you cover this using the OneProvider platform from initial purchase, OS install and setup etc. :)
Thanks Jay. You are awesome! :)
Thank you so much Jay. Very detailed step by step. How can I add users to next cloud as I want my colleagues to access documents and edit them? Thanks
Well done. Awesome video!
Thank you, glad I found this.
Hi. Nice tutorial as usual. One thing I struggle with is local dns with pfsense. That would be very useful tutorial
Bet your soft is absolutely amazing! Never give up
worked flawlessly :)
spot. Great content my man
Great tutorial!
Thanks Jay!
Thank you for your videos, Jay. A couple of things I would love to see a video about:
1. Bare metal Nextcloud installation on RPi-4 with Ubuntu Server. Behind pfSense so no need for Lets Encrypt. Reverse proxy running on pfSense. Including ways to make it as fast as possible.
2. TinyCP - is it interesting? Is it a good control panel?
Freaking sweet! Thanks!
Really great video as all of the other you did. But you should do a video to guide people like me that already have the server running but don’t know how to properly update it without loosing everything as I already did twice….fortunately I was running it in a jail in truenas and I could roll back to a previously snapshot…. So the question is how do I do to keep my server up to date when new version comes out?
Thanks again!!!! Excelent video! I would like you to talk about NextCloud - Windows Active Directory intregration. Keep going!!! 🇨🇺
Thanks Jay. A great tutorial video. my pain is to setup email for all users in nextcloud.
This must be one of the best and easiest tutorials EVER! I don't use linux at all and i've just installed NextCloud from scratch without issue (Well other than the SSL part) - Which brings me to my question, how do i go about adding a second network card to this box so that i can have external upload/download as well as Internal network uploads/downloads? Almost like a DMZ.
Thanks great trutorial. I would like to request a video on how to run multiple Nextcloud instances with extra Object Storage for each, on one Linode linked to different domains.
Amazing video again. Your a good one!
Thank you soo much Jay... Great...
A good tutorial, Jay, thank you. Just a couple of things though -
1) I think it would be better to implement the LetsEncrypt certificate before doing the initial configuration of NextCloud so that you are not sending default usernames and passwords across the Internet in the clear;
2) It would be good if you used clearer nomenclature regarding the hostname vs subdomain vs domain vs FQDN - these are not & should not be interchangeable in use. Maybe a quick primer for your viewers on FQDN = .(not always used).. ; like yours was:
= nextcloud
= learnlinux
= cloud
Anyway, keep up the good work.
Thank you Jay. Can you prepare a complete video on TrueNAS (FreeNAS). That would be really really beneficial.
Maybe I am just looking in the correct place, but have you ever done a tutorial on adding an email server to run along side of NextCloud? I'm still learning linux and love your videos so far.
AWS!!! Great!! Thanks!!!
Jay, this tutorial / how to worked like a charm and I have a Nextcloud server up and running. I have a question no one seems to know the answer to. If I want to change the default time that Calendar syncs with subscribed calendars, what command(s) on the Ubuntu server do I need to apply? Thanks!
Dear Jay. Firstly I want to say I love your channel. You have taught me lots of stuff. My question for you is would you please do a video on installing Nextcloud on a Raspberry Pi running Raspberry Pi OS and with the latest version of PHP which at time of writing is 8.2. I have my own dns via No-IP but I can't get Nextcloud to recognise it. I know you like using Linode but if the video is done without using it, it would be better for me and no doubt lots of other folks too. Thanks in advance.
Thank you so much!
I follow your guide to install on my local VM/Proxmox and success! Awesome! Just one question? How could I use the storage in my NAS on another VM/TrueNAS? I only give 32G to nextcloud VM, it definitely not big enough. Thank you!
Thank you!
Great video.. I would like to see a video for installing humhub and virtualhost
Thanks Jay
Thanks for the great tutorial. Would you recommend running this tutorial completely as root?
Thanks man
Thanks!
Not many creators out there make this detailed kind of guide video, but you did. Can you do the same thing for Nginx for hosting static web sites, load balancer, reverse proxy and http cache.
Thanks for your videos , whats the diff bet snap method and your method ??
Hello Jay, thanks for the Best tutorial. I am having problem connecting my domain with server as I only have ipv6 address and not ipv4. My nextcloud is running on local network but I couldn't figure out how to setup ipv6 domain. If you could explain this in your future videos that would be a great help.
Jay great video, couple of questions please. What criteria do you set for doing this on Linode as opposed to say locally on your Proxmox server as a VM. Can you say how much this will cost you on say a monthly basis to keep it running on Linode? I'm concerned about the long term costs of using Linode, I noticed $25 being shown towards the beginning of the video, sorry if I got that wrong. Thanks for your time. What are the benefits for you running a Nextcloud instance for yourself for example?
the only benefit to running it on linode vs your own homelab is being automatically available outside your network, without worrying about opening ports/reverse proxy/security concerns.
Wonderful tutorial -- thanks.
For some reason, though, I cannot get the sub-domain to work. Could it be because both the "main" domain and the sub-domain are pointing to the same IP address?
Good Job, like always! Maybe vid about how to do by OWN linode VPS :) config of debian and ISPConfig3
*Monotone voice*: "I'm very excited
❤️
Great content as always! Would you be willing to do a nextcloud AIO install with Linode on Fedora 36? Fedora 35/36 is a solid server distro and afaik no one has covered it. So many are using Fedora as their primary distro rn with firewalld vs ufw. It would be greatly appreciated. :-)
Hi, hope you are fine and doing well.
Would it be possible for you to make a video about the installation of the face recognition feature in the next cloud opensource hosting service?
Awesome tut! I was in the middle of the one from last year when I saw this. I have a question though. I installed on a fresh install of ubuntu server. I would liek to run this behind my nginx reverse proxy i have everything else going through. It sits on my unraid server. I have the information for it set up already, What i am confused about is what needs to be done on the config side of nextcloud to get behind the proxy. My understanding was some config stuff had to be done. Thanks,
Great video and I am running my instance for last 3 month and your video was of great help. However, now when I am trying to upgrade my OS to 22.04, my site stops working. Can you please suggest what should I do to ensure I can upgrade OS from 20.04 to 22.04?
Thank you
I would like to see you setup a domain name, add it to apache2, port fowarding, and acess outside your LAN.
Is there a good reason to setup everything yourself instead of using the snap package of Nextcloud?
Thank you, Jay. Aside from SSL/TLS and strong passwords. Are there any other security concerns we can implement to prevent our new NextCloud server from being hacked? Prevent is a strong word. Let's say to mitigate hacking attempts.
Hi, how about creating a video about Nexcloud on Trunas Scale, it takes a few minutes to set up, but shows how to configure image recognition setting up email and other apps and configuration. Thank you
Thanks so much for the video.. Can you address how to use with Joomla?
Heads up on ubuntu 22.04 when copying the apt install list it will install php8 by default which is not compatible with nextcloud23
Also fantastic video thank you!
Thanks Jay just noticed that mariadb installation just changed Switch to unix_socket authentication [Y/n] before changing root pasword
thank you for the comprehesive tutorial, what if I am installing nextcloud in a local server virtual machine? any tutorials that will show me how I can make that virtual machine be connected to a Domain? I already have a domain with Cloudfare
nvm, found another tutorial that shows how that can be accomplished, something else, please use Ubuntu 20-04 server, or the desktop version, Ubuntu 22.04 install php8.1 which is not compatible with Nextcloud, you need php7.4 which can be only install in Ubuntu 20.04
@@antonio638 hi whats the link to the other tutorial?
Have you tried to do same but with occ command via terminal?
contentRequest( nextcloud maintenance/administration from the CLI - tools such as owc or oca or w/e it's called. )
Could you please do a video with a full tutorial on installing and securing NextCloud on a Linux/Debian based server, and then securing and hardening the server.
CZcams tutorials on Linode installations are a dime a dozen and i think not worth the time or money for most of us.