Installing Nextcloud on Ubuntu 24.04 using Snap

Nextcloud is an open-source, self-hosted file sync and share application that allows you to store, share, and access your files, calendars, contacts, and more from anywhere. It provides functionalities similar to popular cloud storage services like Google Drive or Dropbox but gives you full control over your data as it can be hosted on your own server.

Using Snap to install Nextcloud simplifies the process by handling dependencies and updates automatically. Here's how you can install Nextcloud using Snap:

Login to ubuntu 24.04 sever.

Install Snapd:

If you haven't already installed Snapd, you'll need to do that first.

Snapd is the service that manages snaps on your system. You can usually install it via your distribution's package manager. For example, on Ubuntu, you can install Snapd by running:

apt install snapd
Install Nextcloud:

Once Snapd is installed, you can install Nextcloud by simply running the following command:

snap install nextcloud


root@vps:~# snap install nextcloud
2024-05-13T20:04:00Z INFO Waiting for automatic snapd restart...
nextcloud 27.1.8snap1 from Nextcloudâś“ installed
Configure Nextcloud:

After the installation is complete, you'll need to configure Nextcloud.

You can do this by opening a web browser and navigating to http://localhost if you're installing it on your local machine. If you're installing it on a remote server, replace localhost with the IP address or domain name of your server.

Now type your IP address in the URL to launch the Nextcloud.

Complete the Setup:

Once you access the Nextcloud setup page, you'll be prompted to create an admin account and set up the initial configuration, such as database settings and data directory.

You will have to create an admin account -- Enter the username and password which you want to set.


During the setup process, Nextcloud may prompt you to install recommended apps. You have the option to install them if you wish, but it's also possible to skip this step if you prefer.


Access Nextcloud:

After completing the setup, you can access your Nextcloud instance using the URL you configured.


Remember to secure your Nextcloud instance properly, especially if it's accessible from the internet, by setting up HTTPS encryption and configuring user permissions and authentication methods. Additionally, regularly update Nextcloud and your server's operating system to ensure security patches are applied.