{"id":7228,"date":"2024-08-16T09:00:15","date_gmt":"2024-08-16T09:00:15","guid":{"rendered":"https:\/\/blog.ssdnodes.com\/blog\/?p=7228"},"modified":"2025-04-30T08:56:14","modified_gmt":"2025-04-30T08:56:14","slug":"install-and-configure-nextcloud-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.ssdnodes.com\/blog\/install-and-configure-nextcloud-on-ubuntu-24-04\/","title":{"rendered":"How to Install Nextcloud on Ubuntu 24.04 with Snap and Let&#8217;s Encrypt"},"content":{"rendered":"<p>Ready to install Nextcloud on Ubuntu 24.04 with Let's Encrypt? In this tutorial, I'll simplify this process and provide you with clear instructions to set up and configure your server with Nextcloud using the Snap package manager.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10353 size-full\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/How-to-Install-Nextcloud-on-Ubuntu-24.04-with-Snap-and-Lets-Encrypt.jpg\" alt=\"Nextcloud on Ubuntu 24.04 with Let's Encrypt\" width=\"579\" height=\"386\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/How-to-Install-Nextcloud-on-Ubuntu-24.04-with-Snap-and-Lets-Encrypt.jpg 579w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/How-to-Install-Nextcloud-on-Ubuntu-24.04-with-Snap-and-Lets-Encrypt-300x200.jpg 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/p>\n<p><a href=\"https:\/\/nextcloud.com\/\" target=\"_blank\" rel=\"noopener\">Nextcloud<\/a> is an open source platform that offers a modern content collaboration platform for managing your files, with capabilities such as real-time document editing, video chat &amp; groupware on mobile, desktop and web. Nextcloud is similar to <a href=\"https:\/\/www.ssdnodes.com\/blog\/nextcloud-vs-seafile-dropbox-alternative\/\">Dropbox<\/a> and Google Drive, and was forked from the ownCloud open source software by some of the original ownCloud developers.<\/p>\n<h2>Installing Nextcloud on Ubuntu 24.04 with Let's Encrypt<\/h2>\n<p>To install Nextcloud on Ubuntu 24.04 with a Let's Encrypt certificate, you'll first update the package index, use the Snap package manager to install Nextcloud, then configure a Nextcloud administrative account using the command line. Finally you'll set up Let's Encrypt using the <code>nextcloud.enable-https<\/code> command.<\/p>\n<h3>Note<\/h3>\n<p>If you want to skip all the technical steps of setting up Nextcloud on your server and have it installed in minutes, you can use our tried and tested <strong>1-click<\/strong> Nextcloud application. Just choose a <a href=\"https:\/\/www.ssdnodes.com\/\">server<\/a>, and while prompted to choose the operating system, choose\u00a0<strong>Nextcloud<\/strong> from the dropdown menu. This will set up Nextcloud in minutes! However, if you prefer to get your hands dirty, keep reading.<\/p>\n<h2>Prerequisites<\/h2>\n<p>To follow this tutorial, you'll need:<\/p>\n<ul>\n<li>An Ubuntu 24.04 server with a non-root user with\u00a0<code>sudo<\/code>\u00a0privileges.\u00a0 If you haven't noticed, we offer extremely powerful Ubuntu servers at the globe's absolute lowest price. Take a look at our\u00a0<a href=\"https:\/\/ssdnodes.com\/\" target=\"_blank\" rel=\"noopener\">offerings<\/a>\u00a0and prepare for your mind to be blown \ud83e\udd2f.<\/li>\n<\/ul>\n<p>Check out our\u00a0<a href=\"https:\/\/www.ssdnodes.com\/blog\/tutorial-setting-up-and-securing-ssh-based-authentication\/\">How to access your server using SSH<\/a>\u00a0guide to learn how to access your server and create a\u00a0<code>sudo<\/code>\u00a0user.<\/p>\n<h2>Step 1: Updating the Package Cache<\/h2>\n<p>Start by updating the packages in the package manager cache to the latest available versions using the following command:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<h2>Step 2: Installing Nextcloud on Ubuntu Using Snap<\/h2>\n<p>To install Nextcloud, we can take advantage of the <a href=\"https:\/\/snapcraft.io\/\" target=\"_blank\" rel=\"noopener\">Snap<\/a> packaging tool for Ubuntu, which allows software organizations to publish software in a single package with all dependencies, configurations, and auto-updating features.<\/p>\n<p>Run the following command to install the Nextcloud snap package:<\/p>\n<pre><code>sudo snap install nextcloud<\/code><\/pre>\n<p>This will download and install Nextcloud on your system, and you will receive an output similar to the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10311\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/nextcloud-installed-1024x157.webp\" alt=\"nextcloud installed\" width=\"600\" height=\"92\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/nextcloud-installed-1024x157.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/nextcloud-installed-300x46.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/nextcloud-installed-768x117.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/nextcloud-installed.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>To confirm that the installation was successful, run the following command:<\/p>\n<pre><code>snap changes nextcloud<\/code><\/pre>\n<p>You should receive the following output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10312\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-changes-nextcloud-1024x188.webp\" alt=\"nextcloud snap changes\" width=\"600\" height=\"110\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-changes-nextcloud-1024x188.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-changes-nextcloud-300x55.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-changes-nextcloud-768x141.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-changes-nextcloud.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>For more information on the Nextcloud package, you can use the following command:<\/p>\n<pre><code>snap info nextcloud<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10313\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-info-nextcloud-1024x707.webp\" alt=\"snap info nextcloud\" width=\"600\" height=\"414\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-info-nextcloud-1024x707.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-info-nextcloud-300x207.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-info-nextcloud-768x530.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/snap-info-nextcloud.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\nThis will give you information such as the publisher, contact information, commands, services, and other metrics.<\/p>\n<h2>Step 3: Configuring your Nextcloud Administrative Account<\/h2>\n<p>Although you can configure your Nextcloud admin account on the web interface, it is best to avoid making your unsecured Nextcloud configuration accessible on the Internet.<\/p>\n<p>You can use the <code>nextcloud.manual-install<\/code> command to configure a Nextcloud admin account directly from the command line by passing it a username and a password like so:<\/p>\n<pre><code>sudo nextcloud.manual-install your_user your_password<\/code><\/pre>\n<p>Make sure to replace <code>your_user<\/code> and <code>your_password<\/code> with your preferred username and password.<\/p>\n<p>As a result, you should see the following output:<\/p>\n<pre><code>Nextcloud was successfully installed<\/code><\/pre>\n<p>With this, you now need to add your server's domain name and IP address to your trusted domains.<\/p>\n<h2>Step 4: Configuring Trusted Domains<\/h2>\n<p>By default, Nextcloud only responds to web requests that are sent to the <code>localhost<\/code> hostname. This makes us unable to access Nextcloud via our server's IP address or our domain name. To solve this and make Nextcloud accessible to the outside world, we\u2019ll need to change the trusted domains setting.<\/p>\n<p>To add an additional trusted domain to Nextcloud, run the following command:<\/p>\n<pre><code>sudo nextcloud.occ config:system:set trusted_domains 1 --value=example.com<\/code><\/pre>\n<p>Repeat this command for each domain name of yours with an incremented number, and make sure to replace <code>example.com<\/code> with your domain names or IP address. For example to add another domain:<\/p>\n<pre><code>sudo nextcloud.occ config:system:set trusted_domains 2 --value=cloud.example.com<\/code><\/pre>\n<p>And to add your IP address:<\/p>\n<pre><code>sudo nextcloud.occ config:system:set trusted_domains 3 --value=your_ip_address<\/code><\/pre>\n<p>Note the increments in the <code>trusted_domains<\/code> parameter.<\/p>\n<p>To see all your trusted domains, use the following command:<\/p>\n<pre><code>sudo nextcloud.occ config:system:get trusted_domains<\/code><code><\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10314\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/trusted-domains-1024x218.webp\" alt=\"nextcloud trusted domains\" width=\"600\" height=\"128\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/trusted-domains-1024x218.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/trusted-domains-300x64.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/trusted-domains-768x164.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/trusted-domains.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>With this, you can now install a Let's Encrypt SSL certificate.<\/p>\n<h2>Step 5: Nextcloud Let's Encrypt Setup for Ubuntu Servers<\/h2>\n<p>It is important to secure your Nextcloud server with HTTPS. To do so, add a Let's Encrypt SSL certificate to your Nextcloud installation using the following command:<\/p>\n<pre><code>sudo nextcloud.enable-https lets-encrypt<\/code><\/pre>\n<p>You'll be presented with a few requirements:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10315\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/lets-encrypt-requirements-1024x768.webp\" alt=\"nextcloud let's encrypt requirements\" width=\"600\" height=\"450\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/lets-encrypt-requirements-1024x768.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/lets-encrypt-requirements-300x225.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/lets-encrypt-requirements-768x576.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2023\/03\/lets-encrypt-requirements.webp 1426w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Make sure your server meets these requirements and hit <strong>Y<\/strong>. Next, type in your email and domain name.<\/p>\n<p>Restart Nextcloud:<\/p>\n<p><code>sudo snap restart nextcloud<\/code><\/p>\n<p>With this, you can now access your Nextcloud server throughout the Web via a secure <a href=\"https:\/\/www.ssdnodes.com\/blog\/an-introduction-to-the-http-protocol-and-its-role-in-the-web\/\">HTTPS<\/a> protocol.<\/p>\n<h2>Step 6: Using the Nextcloud Web Interface<\/h2>\n<p>With Nextcloud configured, navigate to your domain name or IP with your web browser:<\/p>\n<pre><code>https:\/\/your_domain_or_IP<\/code><\/pre>\n<p><strong>Note:<\/strong> You may temporarily see a message informing you that Nextcloud is in <strong>Maintenance Mode<\/strong>, wait for a few minutes while Nextcloud sets things up, and refresh the page.<\/p>\n<p>You should be moved to a login screen. Use the username and password you configured earlier.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2022\/11\/NextCloud-Login.jpg\" alt=\"Nextcloud running on an Ubuntu server\" width=\"1599\" height=\"794\" \/><\/p>\n<p>You will be greeted with a message that suggests you take advantage of different Nextcloud features with different recommended file templates.<\/p>\n<p>In the Nextcloud web dashboard, you can manage your files, set your location for weather data and customize your Nextcloud experience. You can explore different features and pages in the user interface to learn more about what you can accomplish with Nextcloud.<\/p>\n<h2>Congrats<\/h2>\n<p>You've successfully installed Nextcloud on your Ubuntu 24.04 server with a Let's Encrypt SSL certificate, and you can now manage your files and collaborate with others on the cloud, using your own <a href=\"https:\/\/www.ssdnodes.com\/pricing\/\">private server<\/a>. For more on information on Nextcloud, check out their <a href=\"https:\/\/nextcloud.com\/\" target=\"_blank\" rel=\"noopener\">official website<\/a>.<\/p>\n<h2>Reader Alert!<\/h2>\n<p>If you feel that the technical instructions in this tutorial are time-consuming, or beyond your expertise, you can choose a very convenient and practical solution, ready-made, fully and professionally tested, and developed by SSD Nodes (That is us \ud83d\ude0a). Just visit <a href=\"https:\/\/www.ssdnodes.com\/\">our website<\/a>, choose the server\u2019s specifications that fit your needs, and while prompted to choose among the operating systems and the 1-Click Applications we have, choose <strong>Nextcloud<\/strong> from the dropdown menu, complete your checkout, and in a couple of minutes our algorithms will take care of all the technical aspects smoothly and effortlessly, just for you!<\/p>\n<h2>Installing Nextcloud on Debian<\/h2>\n<p>To install Nextcloud on Debian, check out our<a href=\"https:\/\/www.ssdnodes.com\/blog\/install-nextcloud-on-debian-12-lets-encrypt\/\"> How To Install and Configure Nextcloud on Debian<\/a> article.<\/p>\n<h2>FAQ<\/h2>\n<h3>How can Nextcloud be deployed using Kubernetes?<\/h3>\n<p>Nextcloud can be deployed on Kubernetes by using Helm charts or custom manifests. This allows for scalable and manageable installations across various environments, leveraging Kubernetes' orchestration capabilities.<\/p>\n<h3>What are the system requirements for installing Nextcloud on Ubuntu 24.04?<\/h3>\n<p>Nextcloud requires a server running Ubuntu 24.04, with at least 2 GB of RAM and 500 MB of storage for the base installation.<\/p>\n<h3>How do I set up a reverse proxy for Nextcloud?<\/h3>\n<p>A reverse proxy for Nextcloud can be set up using Nginx or Apache. Configure the proxy to forward requests to the Nextcloud server, enhancing security and load balancing. Ensure SSL is configured for secure connections.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ready to install Nextcloud on Ubuntu 24.04 with Snap &#038; Let&#8217;s Encrypt? Follow our tutorial to set up your own cloud storage and collaboration platform securely.<\/p>\n","protected":false},"author":19,"featured_media":10638,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[18],"tags":[180,185],"class_list":["post-7228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","tag-nextcloud","tag-ubuntu"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/7228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/comments?post=7228"}],"version-history":[{"count":28,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/7228\/revisions"}],"predecessor-version":[{"id":12790,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/7228\/revisions\/12790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media\/10638"}],"wp:attachment":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media?parent=7228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/categories?post=7228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/tags?post=7228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}