HOLY COW YOU ROCK! Legit years and 10s of hours of researching this stuff on my own build and you put it all into one video! Keep up the great work! Im sending this to at least 5 others today!
Great video as always! :) Just some additional thoughts for perhaps newer users; 9:20: Instead of "usermod -aG sudo jay", I think it's easier to remember "adduser jay sudo". It does the same thing. 22:49: Dependencies will never change in Ubuntu 22.04LTS. It's one of the good things about having an LTS that is supported for a long time. It will probably change between LTS releases though. 28:15: If you install locally, the fact that you're able to access it through the URL does not guarantee that it's remotely accessible. Check firewall/router settings if not. 30:40: If you wanted to read the explosion of text coming from unzip, you could pipe it to less; "unzip latest.zip | less". 37:00: These days, if you want to separate services into separate servers, but don't want an actual new server, you might want to learn about LXD. It will let you run Ubuntu as a _container_, which is pretty much the same as a virtual machine, but it's much more lightweight. So if you buy one cloud instance, for instance, you can still run multiple instances of Ubuntu on it. 42:32: I would not uncomment the defaults to be "explicit". It doesn't cause any problems as such, but if you ever want to compare your configuration against the default, you will get more noise than necessary. 52:51: Whenever you want to provide a nonsense domain name, please use example.com. It's an official, reserved domain name specifically for that purpose. There is no way for me as an admin to mechanically determine that haraldrex@tullenavn.no is a bogus name that I can safely delete, while all accounts ending with example.com can be. Finally, if you're making this as a completely private service and don't want to make a domain or setup encryption, then you can easily make yourself a VPN and make the service only be available on that VPN, which will be encrypted. This is also very useful if you want to make a network of private services that are movable, since the IP on the VPN remains static.
@@byrond2184: Thank you. :) We're never done learning in this community. I've been thinking of making a blog of some kind, but there's so much else in life and when I do things, I tend to go all in, so something would have to be sacrificed. :)
Excellent tutorial thanks!!! @jeschinstad @LearnLinuxTV, what I would like to Know is, how to make my friend in other country access and create an account or just upload files! I just create a hosting and a domain name, where to go in configure correctly the parameters
I rarely comment on UA-cam videos, but I can honestly say that THIS VIDEO is one of the easiest online tutorials I've been able to follow. Thank you very much for taking the time out to compile this for us all, it's been most helpful! Liked, subscribed, and will recommend to others I know that may need to a knowledgeable mind. Thanks.
I was thinking of installing Nextcloud on my XcpNg server, but didn't want to commit to installation research. Jay, thank you so much for hard work, you make it looks easy, but complete, to the point and w/o fluff; I greatly appreciate your hard work. This is maybe too much to ask, but I believe that there are quite few people who are moving to Nexcloud. I would be awesome if you could provide us the continuous updates, i.e. how to update to latest, how to harden the server/database, etc. There are many videos on UA-cam which walk you through how to process, but it seem like many of the content creators drop the ball a this point which leaves the followers with outdated product (just a thought). Also; thank you very much for all of the Linux videos. Appreciate your hard work !!!
Thank you very much for the update for this Nextcloud series. While this is a very good tutorial for people to setup a brand new Nextcloud, I would suggest you to make a short video to cover the Nextcloud issues that may be encountered during Ubuntu OS upgrade. A few of my OS upgrades went smoothly for Nextcloud, but most of them would require me to manually update a number of settings to get the Nextcloud service back after the OS updates, mostly involving the apache2 and php.
Logged in just to comment, Jay I've been using linux for a few years now, still a novice. But I've learned so much from this channel . The way you explain content without extra fluff, concise, and you dive just deep enough into related material to give clarity or understanding, but not so much that it becomes a tangent. Thank you so much!
This video could be improved if it showed people how to run it from your house, behind a reverse proxy, hosted on a virtual machine. Hosting it on a cloud is always bad because it's someone else's server. There is no way around that philosophically or legally. Cloud is always "someone else's computer". Running it in a VM also allows you to do simple backups, avoiding the pain of doing complex OS reinstalls and figuring out all the Linux quircks of getting anything to work. Lastly, you should show people how to connect to the Nextcloud calendar, task list, and contacts list so that people can dump privacy invading Gmail. It's not as easy as it sounds.
That’s how mine is setup. Proxmox and ha proxy. Also Pf blocker w geo blocker. Protects the open port very well. Proxmox snapshots are a lifesaver. It allows you to experiment getting all the settings correct with no fear of screwing it up. Saved me countless times.
I was waiting for this video and I was hoping Jay would cover exactly that scenario. I'm a long time nextcloud use. I was running it on bare metal. I just moved to a Ubuntu 22.04 VM on Proxmox with a Caddy reverse proxy also U22.04 VM. It installed ok but is so slow I'm getting a gateway timeouts. Hopefully when I get to watch the video tomorrow I'll get some clues as to what's going on. Thanks for the video Jay. When does your book come out?
@@jothain Yup. I don't mind. He's gotta make money to keep this going. I'm just glad it's not the normal Orwellian corporations like Google funding him.
There should be a part 2 of this video where you show how to add Redis and APCu to NextCloud to speed it up and lower the load on the server. I am running it on RPi4 and it actually seems to be pretty fast using Ubuntu server. After all, the RPi4 has 4 cores and 8 GB RAM 😀I am also trying out the CloudFlare Zero Trust tunnels for the first time, and it was easy to set up. My boot drive is a M.2 SSD via USD3, and I also have an HD on USB3 attached. So the idea is to use the HD only for user data from NextCloud. Getting to run the RPi4 from SSD was surprisingly easy. I used the RPi Imager to write the Ubuntu Server image to the SSD and adding SSH in the process. Then boot the RPi4 from a MicroSD to update EEPROM. Eject the card, plug in the SSD and all is good!
I am so impressed with this video. I am "technical" but not a Linux/Ubuntu user. It took a little learning/patience, but your tutorial was first-rate. I have Nextcloud running and files are uploading. Thank you so much!
@Jay I don't see/have a issue with you or anyone else making what seem to be 'repeat' videos on things. The reason being that many 'new' people have to hear things that are 'hard' more than 1 time and even in different ways/examples etc. So even if it was made with the 'older versions' it doesn't hurt to have a video for the newer stuff either. :)
It worked. Not one single error by me. Thank you for the very calmness of your approach and the great blog post with the commands listed so well. There is the odd continuity error, but nothing you cannot work out if you are attentive. I am very chuffed with myself and with you. Thank you.
This is how I set up my nextclout server (with a slight difference). Since I need to work with large files (tens of gigabytes), I had to edit a few more parameters, mainly timeouts. You can also notice that nextcloud does not work very fast out of the box. I would like a more detailed video on how to fix it (although I did this for myself, many people face this problem and finding really useful information is not very easy). It would also be nice to say a few words about redis, as it is often recommended.
I would love to know what parameters you modified, last time I tried uploading big files (up to 10GB) it had like a 50-50 chance of it actually storing them, and of course, I had to wait for the whole file to upload to know if it was successful :/
@@mttkl I don't remember what exactly I did, but in general this applies to installing redis, increasing timeout in Apache and tuning PHP settings. Something like this: pm = dynamic pm.start_servers pm.max_spare_servers pm.max_children max_execution_time max_input_time (increase values according to your needs) Maybe something else, I don't remember exactly. I just googled and tried. Optional - increase chunk size in nextcloud. Even more optional is to set the tra shbin limits in nextcloud. Although this is not related to the topic, but this is what you most likely want to do. Otherwise, sooner or later you will clog up the whole place with deleted files.
@@mttkl Oh, and more. When uploading large files, NextCloud first creates chunks, then copies the data into one final large file. So you will need a fairly fast disk subsystem for this to work well. It's a pain for a single hdd, so either an ssd or a raid-like array is needed (I use two drives in a zfs).
@@kote315 Yeah, nowadays I have the DB and data on different SSDs even, watching it run on a single HDD was really painful when I first started. I'll play around with those parameters and look around for more, thanks!!
Following these perfect instructions, I successfully installed NextCloud Hub 7 on a Debian Bookworm VM in Proxmox. One very minor path issue with the most current PHP version now being 8.2.
For whatever reason this took me about 10 attempts to get working (from start to finish). I guess a lot can go wrong in the process....meanwhile, I learned a lot and FINALLY have my very own cloud. It's amazing, so thank you.
By far the best comprehensive and professional and reliable instructions are have ever seen in youtube on nextcloud on Ubuntu. Huge thanks out to you! You are a great instructor!!!!
Wow! Thanks for this video. I had tried about 4 times previously using various guides and methods (pre-built VMs, docker, Ubuntu snap etc.) and was never able to connect to Nextcloud from my browser, despite following the guides exactly. I'm currently syncing some files from my PC, so it's obviously working now. I did have to make a few changes however. I created a self-signed certificate as I am only using it locally and do not have a domain name, which all worked fine. When clearing the errors, the memcache solution did not work for me at all and I ended up having to follow a guide for installing Redis, which did remove the error from the list. You've definitely earnt a subscription. I can't wait to look at your other videos to see what else I can learn from you. Thanks again!
Jay, I'm very appreciate that you made this video. NextCloud is excellent software and everyone should be able to self-host. For a continuing video, could you please demonstrate to everyone how to set it up behind a reverse proxy (e.g. NGINX), how to set up a common home router, and how to make backups of the entire system without having a restore requiring a manual OS install? And lastly, how to fortify NextCloud so it can be sufficiently safe to expose to the public internet. Right now the installation I have can be brute-forced and there is no protection from persistent attacks. I know how to create SSH keys using Putty (in Windows) and I was able to setup private/public keys for SSH to my Linux computers through the public internet. This seems to be more secure than login/password. Would there be a way to use private/public keys in NextCloud like in SSH?
30:42 Yes, I'm one of those, I like seeing text scrolling by. It reminds me of pre-systemd days. When you started your system you saw exactly what was starting. I know it's not appreciated this day and age, but I loved it (and the multiple penguins for each core/thread).
Jay, thank you so much. I'm using Pop! OS and installed this last night without any issues. Terrific guide. Thank you for making it clear which steps were for cloud users (like Linode customers) and which were not (like me with a physical box). It went very well. And, now, on to Floccus. :-)
Jay, as for the text all over the screen: you probably seen the Matrix , subconsciously you are on the Nebukadnezar, trying to get Trinity and Neo out of that area before Agent Smith shows up :) besides that: great content , very understandable and comprehensive
Have wanted to do this for some time, and had some false starts. Jay, yours is so well presented, so clear, friendly, useful. Success! Much thanks. Happily becoming a Patreon supporter, may up my contribution in thanks.
Just started watching a video. But it doesn't matter if you did one already, people like me may not have seen the other one. Thanks for the updated video.
thank YOU so much i have problems with this for some time now it is working great thank again i am new to Linux but i am love the switch from windows because of people like your self you are appreciated
After doing all the php.ini edits you might want to say (like in school) "now that you know the long way, the short way is to just paste all of your overrides at the end of the file."
Jay, Thanks for all the work you put into your videos. Like the clarity and the explanations as you go. Just to make note of a couple things: 1) I had change the cron job to the following for it to work: */5 * * * * /usr/bin/php -f /var/www/nextcloud/cron.php --define apc.enable_cli=1 2) Had to add 'default_locale' => 'en_US', to the config.php file to change the temp from C to F on the dashboard. 3) Had to complete the 'trusted domains' section in the same config.php file. Just wanted to point them out to you. Thank again. for all you do...
Hi Jay, I really like your Homelab videos and wanted to let you know that I followed your video and blog post to build my Nextcloud instance in a nice VM in my new Proxmox server. thanks for creating awesome Linux content!!
Regarding that comment around 30:35, agreed. I too think it's super cool. Having grown up to late 90s early 2000s "hacker" movies, that just makes me feel a teeeeny bit badass... even though I'm just copying and pasting from guides like this. LOL
Jay. You're a swell fellow! I pre-ordered your book. I look forward to even more details on Ubuntu server. I use it a ton but I always learn new things from books.
Yes, this is an excellent video, although the settings in front of and behind a pfSense with HAProxy are not always that easy (from time to time I have to improvise a bit, especially since I also have my own subdomain). Thank you for your efforts!
Thank you so much, most complete and detailed tutorial on this. I like the fact you explain everything along the way, makes me more confident knowing what I'm doing.
Thanks bud, I have followed a few of these NextCloud videos for Ubuntu and your last one was the best. But I will say... I moved my Nextcloud server from Ubuntu and onto UNRAID and that was a super simple setup... and I just use my Ubuntu server strictly for Plex and home automation monitoring.
It took me a few runs, but I did it! Thank you! BTW, there are function key commands in nano that I found easier to use. Using ctrl w would close my window when using the LISH Console. Instead use F6!
Excellent video making the setup of Nextcloud fairly straight forward. Nextcloud have released a major new version since the video was made but that did not seem to have too much impact on the installation process. Thank you Jay
Thank you so much Jay for this amazing tutorial. I've setup the server the manual way too and I'm really happy to see professional people doing it the same way :) Just one question. In on of the last sessions with Tom from Lawrence system you mentioned that you prefer to containerise everything if possible. Is there any specific reason you didn't use the official docker image for this setup?
Great! with the previous 20.04 install, for some reason the memcache and cronjobs setup almost broke my install and sent me into a rabbit hole but was able to fix it without re-installing the entire thing.
Jay, this was hugely helpful. Thank you so much for taking the time to put this together. I love your channel. Stupid question for you, what are the pros and cons of installing Nextcloud the way you’ve demonstrated here and installing Nextcloud using snap? Snap seems so much easier, there has to be a downside.
Another great video Jay ! I am using a raspberry pi 4 for my Nextcloud and these instructions worked 98%. I had to enter the https url to see if it was working, I tried just to reload the page and that was a fail. Also while trying to get a certificate I had to enter sudo certbot --apache -d name-of-domain. Certbot didn't ask me which domain I wanted to get a cert for. Thanks again for this and all your great videos !!!
I was hoping this would be a tutorial on installing nextcloud server on a personal home server. But it was a great tutorial none the less. I'm still searching for a tutorial on installing on my diy server.
@@LearnLinuxTV I agree with you. I followed all your instructions (using your 20.04 video at that time) for my home server and I am able to install it without any issues.
omg it was one hour video. with implementing side by side i think i took 3 hrs but did not feel that long enjoyed a lot while following along. awesome content thank you. just wondering i set up this in a proxmox ct with insufficient disk size. is it possible to add another db on our nas to this nextcloud? thanks again
BTW what an amazingly comprehensive guide. I had my initial Nextcloud instance created through a hodge-podge of various guides. Following along your video revealed some small configuration details I might have missed or had to implement some workaround. Interestingly, your setup process for Let's Encrypt / Certbot seems to be a lot more streamlined than I recall. Does Let's Encrypt or Certbot now implement its own Cron job for renewing the certificate every 90 days?
This is by far the BEST and clearest step by step nextcloud installation. I'm currently using the docker flavour and might try this in the near future. I've tried uisng snap and turnkey version on proxmox but the upload is just herendous. was wondering if you might be able to do these vids in the future (just a few suggestions): 1. for people like me that might be migrating users' data files to a new nextcloud server without loosing permissions/ACLs etc. 2. what would be the best way to back this up? 3. should we replicate users' data files to a NAS or another NFS/CIFS (perhaps using rsync) Those are just a few that I could think of now off the top of head. be much appreciated if you can do them or if you've done any of them already, please share them links. cheers
Hi Jay, thanks for all the detailed and informative sharing. Can you help us run a readable parsing method of Audit log information? What you share poses a security risk to users I can't follow? I saw a method on GitHup but I couldn't implement it. I would be grateful if you could share a tutorial.
28:31 you are enabeling php modules: "sudo a2enmod dir env headers mine rewrite ssl" but on blog you didnt list this comand. Thanks for your amazing work and keep spreding love for linux.
I had two problems on creating a proxmox container. 1. - I had to edit /etc/pve/lxc/$vmid.conf in the proxmox terminal and add: Code: ... features: mount=fuse,nesting=1 lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file 0 0 2. In the container terminal I had to install python3-certbot-apache After doing this, the 'sudo certbot --apache' worked correctly.
Excellent video sir... I'm sorry sir. I have a question... How can i access this server with public internet, btw i have the ip public... Can you tell me how the configuration??? Thx
Your videos are unparalled! Thanks for all your work - you pack a lot of excellent information into your videos which are extremely helpful for noobies like me. I would like to find out more about how to upload files to nextcloud as the site appears to only allow single file uploads. I hope to set up filezilla and/or rsync to accomplish this. Also I would like to reverse proxy the nextcloud site to my domain. Keep up the great work you are doing!
Nextcloud AIO for the win! I have a Proxmox host HPz840. Ubuntu vm set up with nexcloud aio. Truenas scale for storage. Pfsense firewall reverse proxy. Vpn to my home network openvpn.
Hey Jay Love this video, very detailed and helpful! - anyone else experiencing issues with the nextcloud instance freezing when trying to add a user? Next ‘help’ isn’t much help 😎
I haven't added a user separate from Jays instructions. But I had some trouble, had to use php8.1 instead of latest 8.2, and had trouble understanding the whole GRANT PRIVILEGE cmd as far as localhost is concerned in that cmd.
Awesome video. Worked perfect for me. Thank you so much. But there are some problems. Every time there is an update then i get errors. And i saw that many people complaining about that. Is it possible that you can make a video how to fix these errors? i am stuck right now. Thanks in advance
Thanks for the tutorial. I'm using this as a guideline to set up my Nextcloud instance on Alma Linux. Unfortunately it doesn't translate well between distro's: around the time you install apache/PHP, Alma uses httpd instead of apache2 so all the a2en commands don't work, php-imagick and php-mysql are not recognized, www-data user and group don't seem to exist and the config files can be found in different directories. The first half made a lot of sense though, all I had to do was replace "apt" with "dnf" and it just worked.
I have tried to do this for a very long time, this got me all the way through with 1 exception, that was the https part. I added what you said, where you said, and it didn't change anything for me, I still get the same recommendation about not using http and using https instead.
hey, awesome video as always! i would like to ask though could there be a video on upgrading the system from 20.04 to 22.04 or how to migrate to a new server. I've been trying to figure this out for a few days, And i just brick the web server every time i try to upgrade it.
great video, got it up and running, but tried to change my data directory, and not having any luck! saying i havnt given the server write access but www-data owns everything
This is a video I've been looking for for a long time. However, it would have been nice to be prompted to install a GUI at the beginning. Everytime I heard "this is too long to type, just paste it" - I thought "Ok, I'll have to type something super long again". Now I'm installing a GUI when I'm in the middle of it. I hope that won't wreck anything...
To set this up as a custom LXD container, you would do exactly the same, except you would make the container with lxc instead of making a VM in the cloud. I typically run my LXD hosts on VMs and make the containers members of a Wireguard VPN so I can easily move them around between VMs, native hosts or cloud instances without worrying about IP setups. But that is of course only for private services.
Great video! I tried to install nextcloud but I failed to correct the warnings and errors. With this video it is very easy to try again knowing what to do. I would like to know your opinion in Seafile. You have any experience with it? I use it many years installed on a raspberry pi and it works really good for syncing files among my computers-laptops etc.
Great Video thank you very much,in my case thought there was no file apache2 created only cli...i reinstalled apache but nothing so no php.ini except the one in the cli
HOLY COW YOU ROCK! Legit years and 10s of hours of researching this stuff on my own build and you put it all into one video! Keep up the great work! Im sending this to at least 5 others today!
Great video as always! :) Just some additional thoughts for perhaps newer users;
9:20: Instead of "usermod -aG sudo jay", I think it's easier to remember "adduser jay sudo". It does the same thing.
22:49: Dependencies will never change in Ubuntu 22.04LTS. It's one of the good things about having an LTS that is supported for a long time. It will probably change between LTS releases though.
28:15: If you install locally, the fact that you're able to access it through the URL does not guarantee that it's remotely accessible. Check firewall/router settings if not.
30:40: If you wanted to read the explosion of text coming from unzip, you could pipe it to less; "unzip latest.zip | less".
37:00: These days, if you want to separate services into separate servers, but don't want an actual new server, you might want to learn about LXD. It will let you run Ubuntu as a _container_, which is pretty much the same as a virtual machine, but it's much more lightweight. So if you buy one cloud instance, for instance, you can still run multiple instances of Ubuntu on it.
42:32: I would not uncomment the defaults to be "explicit". It doesn't cause any problems as such, but if you ever want to compare your configuration against the default, you will get more noise than necessary.
52:51: Whenever you want to provide a nonsense domain name, please use example.com. It's an official, reserved domain name specifically for that purpose. There is no way for me as an admin to mechanically determine that haraldrex@tullenavn.no is a bogus name that I can safely delete, while all accounts ending with example.com can be.
Finally, if you're making this as a completely private service and don't want to make a domain or setup encryption, then you can easily make yourself a VPN and make the service only be available on that VPN, which will be encrypted. This is also very useful if you want to make a network of private services that are movable, since the IP on the VPN remains static.
Thanks for all the great information. You should start a technical blog. You really know your stuff.
@@byrond2184: Thank you. :) We're never done learning in this community. I've been thinking of making a blog of some kind, but there's so much else in life and when I do things, I tend to go all in, so something would have to be sacrificed. :)
Excellent tutorial thanks!!!
@jeschinstad @LearnLinuxTV, what I would like to Know is, how to make my friend in other country access and create an account or just upload files!
I just create a hosting and a domain name, where to go in configure correctly the parameters
hi, in your last part you talk about vpn, I can use wireguard instead of domain?
I rarely comment on UA-cam videos, but I can honestly say that THIS VIDEO is one of the easiest online tutorials I've been able to follow.
Thank you very much for taking the time out to compile this for us all, it's been most helpful!
Liked, subscribed, and will recommend to others I know that may need to a knowledgeable mind.
Thanks.
I totally agree. Well explained, but not too complicated and the pace is ideal - You don't need to pause every step, just follow along with ease.
I was thinking of installing Nextcloud on my XcpNg server, but didn't want to commit to installation research. Jay, thank you so much for hard work, you make it looks easy, but complete, to the point and w/o fluff; I greatly appreciate your hard work.
This is maybe too much to ask, but I believe that there are quite few people who are moving to Nexcloud. I would be awesome if you could provide us the continuous updates, i.e. how to update to latest, how to harden the server/database, etc. There are many videos on UA-cam which walk you through how to process, but it seem like many of the content creators drop the ball a this point which leaves the followers with outdated product (just a thought).
Also; thank you very much for all of the Linux videos. Appreciate your hard work !!!
Thank you very much for the update for this Nextcloud series. While this is a very good tutorial for people to setup a brand new Nextcloud, I would suggest you to make a short video to cover the Nextcloud issues that may be encountered during Ubuntu OS upgrade. A few of my OS upgrades went smoothly for Nextcloud, but most of them would require me to manually update a number of settings to get the Nextcloud service back after the OS updates, mostly involving the apache2 and php.
Logged in just to comment, Jay I've been using linux for a few years now, still a novice. But I've learned so much from this channel . The way you explain content without extra fluff, concise, and you dive just deep enough into related material to give clarity or understanding, but not so much that it becomes a tangent. Thank you so much!
This video could be improved if it showed people how to run it from your house, behind a reverse proxy, hosted on a virtual machine. Hosting it on a cloud is always bad because it's someone else's server. There is no way around that philosophically or legally. Cloud is always "someone else's computer". Running it in a VM also allows you to do simple backups, avoiding the pain of doing complex OS reinstalls and figuring out all the Linux quircks of getting anything to work. Lastly, you should show people how to connect to the Nextcloud calendar, task list, and contacts list so that people can dump privacy invading Gmail. It's not as easy as it sounds.
That’s how mine is setup. Proxmox and ha proxy. Also Pf blocker w geo blocker. Protects the open port very well. Proxmox snapshots are a lifesaver. It allows you to experiment getting all the settings correct with no fear of screwing it up. Saved me countless times.
I was waiting for this video and I was hoping Jay would cover exactly that scenario. I'm a long time nextcloud use. I was running it on bare metal. I just moved to a Ubuntu 22.04 VM on Proxmox with a Caddy reverse proxy also U22.04 VM. It installed ok but is so slow I'm getting a gateway timeouts. Hopefully when I get to watch the video tomorrow I'll get some clues as to what's going on. Thanks for the video Jay. When does your book come out?
Running in a cloud vm or local vm is exactly the same steps...even bare metal. Besides not everyone has or wants to host their own stuff.
I'm kinda annoyed by all these linode pushes..
@@jothain Yup. I don't mind. He's gotta make money to keep this going. I'm just glad it's not the normal Orwellian corporations like Google funding him.
There should be a part 2 of this video where you show how to add Redis and APCu to NextCloud to speed it up and lower the load on the server.
I am running it on RPi4 and it actually seems to be pretty fast using Ubuntu server. After all, the RPi4 has 4 cores and 8 GB RAM 😀I am also trying out the CloudFlare Zero Trust tunnels for the first time, and it was easy to set up.
My boot drive is a M.2 SSD via USD3, and I also have an HD on USB3 attached. So the idea is to use the HD only for user data from NextCloud.
Getting to run the RPi4 from SSD was surprisingly easy. I used the RPi Imager to write the Ubuntu Server image to the SSD and adding SSH in the process. Then boot the RPi4 from a MicroSD to update EEPROM. Eject the card, plug in the SSD and all is good!
I am so impressed with this video. I am "technical" but not a Linux/Ubuntu user. It took a little learning/patience, but your tutorial was first-rate. I have Nextcloud running and files are uploading. Thank you so much!
@Jay I don't see/have a issue with you or anyone else making what seem to be 'repeat' videos on things. The reason being that many 'new' people have to hear things that are 'hard' more than 1 time and even in different ways/examples etc.
So even if it was made with the 'older versions' it doesn't hurt to have a video for the newer stuff either. :)
It worked. Not one single error by me. Thank you for the very calmness of your approach and the great blog post with the commands listed so well. There is the odd continuity error, but nothing you cannot work out if you are attentive. I am very chuffed with myself and with you. Thank you.
This is how I set up my nextclout server (with a slight difference). Since I need to work with large files (tens of gigabytes), I had to edit a few more parameters, mainly timeouts. You can also notice that nextcloud does not work very fast out of the box. I would like a more detailed video on how to fix it (although I did this for myself, many people face this problem and finding really useful information is not very easy). It would also be nice to say a few words about redis, as it is often recommended.
I would love to know what parameters you modified, last time I tried uploading big files (up to 10GB) it had like a 50-50 chance of it actually storing them, and of course, I had to wait for the whole file to upload to know if it was successful :/
I would love to know what you changed. I have over 10k files and my instance is slow as well even though I gave the VM a lot of power
@@mttkl I don't remember what exactly I did, but in general this applies to installing redis, increasing timeout in Apache and tuning PHP settings.
Something like this:
pm = dynamic
pm.start_servers
pm.max_spare_servers
pm.max_children
max_execution_time
max_input_time
(increase values according to your needs)
Maybe something else, I don't remember exactly. I just googled and tried.
Optional - increase chunk size in nextcloud.
Even more optional is to set the tra shbin limits in nextcloud. Although this is not related to the topic, but this is what you most likely want to do. Otherwise, sooner or later you will clog up the whole place with deleted files.
@@mttkl Oh, and more. When uploading large files, NextCloud first creates chunks, then copies the data into one final large file. So you will need a fairly fast disk subsystem for this to work well. It's a pain for a single hdd, so either an ssd or a raid-like array is needed (I use two drives in a zfs).
@@kote315 Yeah, nowadays I have the DB and data on different SSDs even, watching it run on a single HDD was really painful when I first started.
I'll play around with those parameters and look around for more, thanks!!
Following these perfect instructions, I successfully installed NextCloud Hub 7 on a Debian Bookworm VM in Proxmox. One very minor path issue with the most current PHP version now being 8.2.
could not do it without this guide. thank you!
For whatever reason this took me about 10 attempts to get working (from start to finish). I guess a lot can go wrong in the process....meanwhile, I learned a lot and FINALLY have my very own cloud. It's amazing, so thank you.
By far the best comprehensive and professional and reliable instructions are have ever seen in youtube on nextcloud on Ubuntu.
Huge thanks out to you! You are a great instructor!!!!
Wow! Thanks for this video. I had tried about 4 times previously using various guides and methods (pre-built VMs, docker, Ubuntu snap etc.) and was never able to connect to Nextcloud from my browser, despite following the guides exactly. I'm currently syncing some files from my PC, so it's obviously working now. I did have to make a few changes however. I created a self-signed certificate as I am only using it locally and do not have a domain name, which all worked fine. When clearing the errors, the memcache solution did not work for me at all and I ended up having to follow a guide for installing Redis, which did remove the error from the list. You've definitely earnt a subscription. I can't wait to look at your other videos to see what else I can learn from you. Thanks again!
Jay, I'm very appreciate that you made this video. NextCloud is excellent software and everyone should be able to self-host. For a continuing video, could you please demonstrate to everyone how to set it up behind a reverse proxy (e.g. NGINX), how to set up a common home router, and how to make backups of the entire system without having a restore requiring a manual OS install? And lastly, how to fortify NextCloud so it can be sufficiently safe to expose to the public internet. Right now the installation I have can be brute-forced and there is no protection from persistent attacks. I know how to create SSH keys using Putty (in Windows) and I was able to setup private/public keys for SSH to my Linux computers through the public internet. This seems to be more secure than login/password. Would there be a way to use private/public keys in NextCloud like in SSH?
30:42 Yes, I'm one of those, I like seeing text scrolling by. It reminds me of pre-systemd days. When you started your system you saw exactly what was starting. I know it's not appreciated this day and age, but I loved it (and the multiple penguins for each core/thread).
i applied it on Ubuntu 24.04 and yep it works well, thanks
Jay, thank you so much. I'm using Pop! OS and installed this last night without any issues. Terrific guide. Thank you for making it clear which steps were for cloud users (like Linode customers) and which were not (like me with a physical box). It went very well.
And, now, on to Floccus. :-)
What an incredibly helpful video. Thanks for this, Jay.
Jay, as for the text all over the screen: you probably seen the Matrix , subconsciously you are on the Nebukadnezar, trying to get Trinity and Neo out of that area before Agent Smith shows up :)
besides that: great content , very understandable and comprehensive
Have wanted to do this for some time, and had some false starts. Jay, yours is so well presented, so clear, friendly, useful. Success! Much thanks. Happily becoming a Patreon supporter, may up my contribution in thanks.
Just started watching a video. But it doesn't matter if you did one already, people like me may not have seen the other one. Thanks for the updated video.
thank YOU so much i have problems with this for some time now it is working great thank again i am new to Linux but i am love the switch from windows because of people like your self you are appreciated
After doing all the php.ini edits you might want to say (like in school) "now that you know the long way, the short way is to just paste all of your overrides at the end of the file."
Jay, Thanks for all the work you put into your videos. Like the clarity and the explanations as you go. Just to make note of a couple things: 1) I had change the cron job to the following for it to work: */5 * * * * /usr/bin/php -f /var/www/nextcloud/cron.php --define apc.enable_cli=1 2) Had to add 'default_locale' => 'en_US', to the config.php file to change the temp from C to F on the dashboard. 3) Had to complete the 'trusted domains' section in the same config.php file. Just wanted to point them out to you. Thank again. for all you do...
You can get rid of the first thing by adding a single line to /etc/php/8.1/mods-available/apcu.ini.
Add the line "apc.enable_cli=1"
@@rayjames7360 Thanks Ray, but I already took care of the issue by adding it to the end of my cron job as stated above in my original remarks…
Just saw that you will be speaking at All Things Open this year - I'll be attending virtually, but looking forward to it!
Hi Jay, I really like your Homelab videos and wanted to let you know that I followed your video and blog post to build my Nextcloud instance in a nice VM in my new Proxmox server. thanks for creating awesome Linux content!!
Regarding that comment around 30:35, agreed. I too think it's super cool. Having grown up to late 90s early 2000s "hacker" movies, that just makes me feel a teeeeny bit badass... even though I'm just copying and pasting from guides like this. LOL
Jay. You're a swell fellow! I pre-ordered your book. I look forward to even more details on Ubuntu server. I use it a ton but I always learn new things from books.
I have tried various setups. Your setup is the most stable and complete. Thank you play keep going
Yes, this is an excellent video, although the settings in front of and behind a pfSense with HAProxy are not always that easy (from time to time I have to improvise a bit, especially since I also have my own subdomain). Thank you for your efforts!
Thank you so much, most complete and detailed tutorial on this. I like the fact you explain everything along the way, makes me more confident knowing what I'm doing.
Amazing tutorial. Works nice on my server.
Thanks a lot!!
Thanks bud, I have followed a few of these NextCloud videos for Ubuntu and your last one was the best. But I will say... I moved my Nextcloud server from Ubuntu and onto UNRAID and that was a super simple setup... and I just use my Ubuntu server strictly for Plex and home automation monitoring.
Thank you very much. It's ridiculous that Nextcloud takes an hour-long guide and this much fiddling to get working correctly. You nailed it, though.
It took me a few runs, but I did it! Thank you! BTW, there are function key commands in nano that I found easier to use. Using ctrl w would close my window when using the LISH Console. Instead use F6!
I love to see a video on the all in one nextcloud docker too and how to properly configure it.
Thank you for the guide, I did this on my Raspberry Pi 3B+ and it's working.
Absolutely great, step by step for us rookies. When I finished, it just worked! Thanks so much, Jay.
Glad it helped!
Excellent video making the setup of Nextcloud fairly straight forward. Nextcloud have released a major new version since the video was made but that did not seem to have too much impact on the installation process. Thank you Jay
Thank you so much Jay for this amazing tutorial. I've setup the server the manual way too and I'm really happy to see professional people doing it the same way :)
Just one question. In on of the last sessions with Tom from Lawrence system you mentioned that you prefer to containerise everything if possible.
Is there any specific reason you didn't use the official docker image for this setup?
Great! with the previous 20.04 install, for some reason the memcache and cronjobs setup almost broke my install and sent me into a rabbit hole but was able to fix it without re-installing the entire thing.
thanks Jay !! - Fantastic guide, especially on updating the PHP version 8..... great stuff..
Thank you so much for the effort you put into this video. Got my server setup in a virtualbox on my iMac. You really have a gift for teaching.
Jay, this was hugely helpful. Thank you so much for taking the time to put this together. I love your channel. Stupid question for you, what are the pros and cons of installing Nextcloud the way you’ve demonstrated here and installing Nextcloud using snap? Snap seems so much easier, there has to be a downside.
Mate followed along and got my nextcloud set up ! thanks heaps
Very good video! I have NC on RaspberryPI running for years. But I will set up a newinstance on a linux computer soon following your video.
great video! was able to install nextcloud by following your tutorial! thanks!
Outstanding... Thank you for your efforts, this was a GREAT tutorial... Well Done!
Another great video Jay ! I am using a raspberry pi 4 for my Nextcloud and these instructions worked 98%. I had to enter the https url to see if it was working, I tried just to reload the page and that was a fail. Also while trying to get a certificate I had to enter sudo certbot --apache -d name-of-domain. Certbot didn't ask me which domain I wanted to get a cert for. Thanks again for this and all your great videos !!!
I was hoping this would be a tutorial on installing nextcloud server on a personal home server. But it was a great tutorial none the less. I'm still searching for a tutorial on installing on my diy server.
It is. The process on a home server isn’t any different. The commands all work the same regardless of the hardware you install it on.
@@LearnLinuxTV I agree with you. I followed all your instructions (using your 20.04 video at that time) for my home server and I am able to install it without any issues.
Thanks Jay. Appreciate your easy to understand and follow video.
Very nice work! Installing was breeze. Thank you.
Great video! Can't wait for the same tutorial but on containers! Thanks!
30:43 Yes sir, I do love it!
Thank you so much. Just finished the installation and everything was super perfect. Great job!
omg it was one hour video. with implementing side by side i think i took 3 hrs but did not feel that long enjoyed a lot while following along.
awesome content thank you. just wondering i set up this in a proxmox ct with insufficient disk size. is it possible to add another db on our nas to this nextcloud? thanks again
BTW what an amazingly comprehensive guide. I had my initial Nextcloud instance created through a hodge-podge of various guides. Following along your video revealed some small configuration details I might have missed or had to implement some workaround.
Interestingly, your setup process for Let's Encrypt / Certbot seems to be a lot more streamlined than I recall. Does Let's Encrypt or Certbot now implement its own Cron job for renewing the certificate every 90 days?
A++ on this. Best Nextcloud/Ubuntu tutorial Ive come across!!
An amazing video, Jay. Thank you for this...Worked like a charm..
This is by far the BEST and clearest step by step nextcloud installation. I'm currently using the docker flavour and might try this in the near future. I've tried uisng snap and turnkey version on proxmox but the upload is just herendous.
was wondering if you might be able to do these vids in the future (just a few suggestions):
1. for people like me that might be migrating users' data files to a new nextcloud server without loosing permissions/ACLs etc.
2. what would be the best way to back this up?
3. should we replicate users' data files to a NAS or another NFS/CIFS (perhaps using rsync)
Those are just a few that I could think of now off the top of head.
be much appreciated if you can do them or if you've done any of them already, please share them links. cheers
I've been using nextcloud for a bit. It's really good.
Thanks for this excellent video. Cheers from Canada!
Thanks for your efforts. This video helped me a lot to solve some of my issues with my upgrade.
Thank you! This is the exact tutorial for nextcloud I needed.
great job!!
did your other one.... keep up the great work... you helped me get over my fear of command line...
The only thing to change is that the first command to run on the new Ubuntu instance is "sudo apt purge nano && sudo apt install vim" :)
Hi Jay, thanks for all the detailed and informative sharing.
Can you help us run a readable parsing method of Audit log information? What you share poses a security risk to users I can't follow? I saw a method on GitHup but I couldn't implement it. I would be grateful if you could share a tutorial.
This is working wonderfully!! Thanks Jay!
28:31 you are enabeling php modules: "sudo a2enmod dir env headers mine rewrite ssl" but on blog you didnt list this comand. Thanks for your amazing work and keep spreding love for linux.
As usual Jay, brilliant tutorial!
Good videos Jay like the way cover every step.
I had two problems on creating a proxmox container.
1. - I had to edit /etc/pve/lxc/$vmid.conf in the proxmox terminal and add:
Code:
...
features: mount=fuse,nesting=1
lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file 0 0
2. In the container terminal I had to install python3-certbot-apache
After doing this, the 'sudo certbot --apache' worked correctly.
Great video and exactly what I needed at the moment. Thanks Jay
Excellent video sir...
I'm sorry sir. I have a question... How can i access this server with public internet, btw i have the ip public... Can you tell me how the configuration???
Thx
Thank you for this awesome tutorial.
Your videos are unparalled! Thanks for all your work - you pack a lot of excellent information into your videos which are extremely helpful for noobies like me. I would like to find out more about how to upload files to nextcloud as the site appears to only allow single file uploads. I hope to set up filezilla and/or rsync to accomplish this. Also I would like to reverse proxy the nextcloud site to my domain. Keep up the great work you are doing!
How about a video on doing the same using docker-compose with SSL?
Can you please do an updated version for 23.10?
unzip text output is there because it looks cool ... exactly!
Nextcloud AIO for the win! I have a Proxmox host HPz840. Ubuntu vm set up with nexcloud aio. Truenas scale for storage. Pfsense firewall reverse proxy. Vpn to my home network openvpn.
thank you Jay, really a good tutorial.
Hey Jay Love this video, very detailed and helpful! - anyone else experiencing issues with the nextcloud instance freezing when trying to add a user? Next ‘help’ isn’t much help 😎
I haven't added a user separate from Jays instructions. But I had some trouble, had to use php8.1 instead of latest 8.2, and had trouble understanding the whole GRANT PRIVILEGE cmd as far as localhost is concerned in that cmd.
Excellent video!
Awesome video. Worked perfect for me. Thank you so much.
But there are some problems. Every time there is an update then i get errors. And i saw that many people complaining about that. Is it possible that you can make a video how to fix these errors? i am stuck right now. Thanks in advance
Awosome guide Jay, Could you add Collabora office set up for next?🙂
That was included in the video, it's set up automatically so the reason I didn't show how to set it up is because no setup is required.
Thanks for the tutorial. I'm using this as a guideline to set up my Nextcloud instance on Alma Linux. Unfortunately it doesn't translate well between distro's: around the time you install apache/PHP, Alma uses httpd instead of apache2 so all the a2en commands don't work, php-imagick and php-mysql are not recognized, www-data user and group don't seem to exist and the config files can be found in different directories. The first half made a lot of sense though, all I had to do was replace "apt" with "dnf" and it just worked.
how did you get this to work without a www-data user/group?
I have tried to do this for a very long time, this got me all the way through with 1 exception, that was the https part. I added what you said, where you said, and it didn't change anything for me, I still get the same recommendation about not using http and using https instead.
If these are private services, you might as well just put them on a Wireguard VPN and all traffic will be encrypted.
hey, awesome video as always! i would like to ask though could there be a video on upgrading the system from 20.04 to 22.04 or how to migrate to a new server. I've been trying to figure this out for a few days, And i just brick the web server every time i try to upgrade it.
Can you please guide me on how to change data directory after installing next cloud to a different location
great video, got it up and running, but tried to change my data directory, and not having any luck! saying i havnt given the server write access but www-data owns everything
This is a video I've been looking for for a long time. However, it would have been nice to be prompted to install a GUI at the beginning. Everytime I heard "this is too long to type, just paste it" - I thought "Ok, I'll have to type something super long again". Now I'm installing a GUI when I'm in the middle of it. I hope that won't wreck anything...
Wow, super helpful
I’d love to do this in a docker container! Or how to set this up as a custom container!
Me too, but right now I have broke my brain while trying to setup the FPM docker image with any "bare metal" reverse proxy on the host.
To set this up as a custom LXD container, you would do exactly the same, except you would make the container with lxc instead of making a VM in the cloud. I typically run my LXD hosts on VMs and make the containers members of a Wireguard VPN so I can easily move them around between VMs, native hosts or cloud instances without worrying about IP setups. But that is of course only for private services.
Great video! I tried to install nextcloud but I failed to correct the warnings and errors. With this video it is very easy to try again knowing what to do. I would like to know your opinion in Seafile. You have any experience with it? I use it many years installed on a raspberry pi and it works really good for syncing files among my computers-laptops etc.
Great Video thank you very much,in my case thought there was no file apache2 created only cli...i reinstalled apache but nothing so no php.ini except the one in the cli
Thanks! Curious if you would still use this method over some container like docker? Assuming you are self hosting.