
Nextcloud is a popular self-hosted cloud storage solution that offers a wide range of features and integrations. It's accessible from anywhere, on any device, and is highly customizable.
Nextcloud can be installed on a TrueNAS system, which provides a robust and scalable storage solution. TrueNAS is a free and open-source NAS operating system that's designed for enterprise-grade storage.
With Nextcloud on TrueNAS, you can store and sync files across all your devices, as well as share files and folders with others. This is particularly useful for teams and families who need to collaborate on projects and share files.
Installation
After installing Nextcloud, you can manage your instance of the plugin. Click POST INSTALL NOTES to obtain your Nextcloud admin user and Nextcloud admin password information.
You'll need to click MANAGE to access the Nextcloud login page within your browser. Enter the credentials from POST INSTALL NOTES and click Log in to access the Nextcloud Hub.
Related reading: Install Nextcloud Ubuntu
To configure your Nextcloud instance, type a Jail Name, then disable the NAT checkbox and enter an available IP in the IPv4 Address field. Select an IPv4 Netmask (iX recommends 24), then click SAVE.
You must also add your Nextcloud IP to your Nextcloud jail trusted domains. To do this, go to Jails and expand your Nextcloud jail, then click > SHELL.
To edit your Nextcloud config file, enter ee /usr/local/www/nextcloud/config/config.php. Scroll to the trusted_domains section and type your Nextcloud IP as a new line item.
After editing your config file, go back to Plugins and expand your Nextcloud instance. Click POST INSTALL NOTES to obtain your Nextcloud admin user and Nextcloud admin password information. Click MANAGE to access the Nextcloud login page within your browser.
You're directed to the Nextcloud Hub after logging in.
Obtaining Certificates
To obtain certificates for Nextcloud, you'll need to generate a Certificate Signing Request (CSR) on your TrueNAS system. This can be done using the web-based interface or the command line.
The CSR is a text file that contains your server's public key and some other information. You'll need to provide this file to a Certificate Authority (CA) to obtain a certificate.
You can generate a CSR using the OpenSSL command on the command line, or by using the TrueNAS web interface's built-in tool. The CSR will contain information such as your server's domain name and organization.
Once you have your certificate, you can install it on your TrueNAS system by uploading it to the web interface or using the command line. This will allow you to secure your Nextcloud installation with HTTPS.
Make sure to save your certificate in a secure location, as you'll need it to install and configure your Nextcloud instance.
Readers also liked: How to Install Nextcloud on Ubuntu 22.04
Hardware and Setup
To set up your Truenas Nextcloud, you'll need to prepare the hardware first. The NASync DXP4800 Plus is a bare-bones system, so you'll need to add four Seagate Ironwolf 4TB hard drives, model ST4000VNZ06, which are compatible with the NASync DXP4800 Plus.
These drives are easily installed by removing the drive frames from the case and gently bending them to fit the 3.5-inch hard drives. The drives will then snap into place and be securely held by small notches, eliminating the need for the provided screws.
To ensure the operating system doesn't get overwritten, consider adding a separate 128-GB SSD for it, and also install a 500-GB NVMe SSD, like the Samsung one, which is around 55 euros.
USB-Stick booten und Installieren
To boot from a USB stick and install TrueNAS, you'll need to carefully select the installation drive. This is the 500 GB SSD in our case, so use the up arrow to highlight it and press Enter to confirm.
You'll be asked to confirm the selection and warning messages, so press OK and then Yes to proceed.
Boot from the USB stick and begin the installation process. In the Web UI Authentication Method window, choose "1 Administrative user (admin)" and set a secure password, which you'll need to confirm with OK.
Connect the Ugreen-NAS to your router with an Ethernet cable and boot the system into the console. Note down the IP address, which in our example is 192.168.178.114.
App Deployment Issue

If you're experiencing issues deploying your app, it's likely due to a lack of permissions for the www-data user and group.
First, make sure the www-data user and group are added to the /nextcloud dataset, but don't set recursive permissions. This can usually be done by stopping the app and then editing the ACL permissions for the datasets.
To do this, select the dataset and click Edit to open the ACL Editor screen. Then, add the www-data user and group with Full Control permissions. This involves selecting User or Group, entering www-data in the field, and choosing Full Control in Permissions.
Here's a step-by-step guide to adding the www-data user and group:
- Add an entry for the user by selecting User in Who and www-data in the User field, and selecting Full Control in Permissions.
- Add an entry for the group by repeating the above steps but selecting Group.
- Click Save Access Control List.
Storage and Deployment
SCALE creates the ix-applications dataset in the pool you set as the application pool when you first go to the Apps screen. This dataset is internally managed, so you cannot use it as the parent when creating the required Nextcloud datasets.
To add storage for Nextcloud, you'll need to create four child datasets under the root parent dataset tank. The required datasets are appdata, userdata, pgdata, and pgbackup.
The dataset paths should be as follows:
- /mnt/tank/nextcloud/appdata
- /mnt/tank/nextcloud/userdata
- /mnt/tank/nextcloud/pgdata
- /mnt/tank/nextcloud/pgbackup
To deploy Nextcloud, you'll need to add the storage you just created and install the Nextcloud app in SCALE. This involves two simple steps: adding the storage and installing the app.
The steps to add storage are detailed in the article, but essentially you'll need to create the required datasets and set them up as child datasets under the root parent dataset tank.
Worth a look: How to Add Https to Nextcloud
Turris Mox and NAS
Turris Mox and NAS are a match made in heaven for Nextcloud enthusiasts. Turris Mox is a Linux-based NAS device that can be used as a Nextcloud server.
It's surprisingly easy to set up and configure, thanks to its user-friendly interface. With Turris Mox, you can store and synchronize your files across all your devices, just like with Nextcloud.
Turris Mox supports Nextcloud's high-performance storage backend, allowing for fast and efficient file access. This makes it an excellent choice for those who need to access large files quickly.
Hardware Vorbereiten und NAS Aufrüsten
To start with, you'll need to prepare the hardware and upgrade the NAS with an SSD and RAM. The NASync DXP4800 Plus is a bare housing without hard drives, so you'll need to add four Seagate Ironwolf 4TB hard drives, specifically the ST4000VNZ06 model, which is on the compatibility list for this NAS.
The hard drives can be easily installed by removing the drive trays from the housing, bending them slightly, and placing the 3.5-inch hard drives inside. The hard drives will fit snugly and be held in place by small notches.
A 128-GB SSD is already installed with the Ugos operating system, but it's a good idea to add another SSD to prevent overwriting the system. For this, you can use a 500-GB NVMe SSD from Samsung, which costs around 55 euros.
To get TrueNAS Scale up and running on the Ugreen NAS, you'll need to boot the NAS system with it.
Turris Mox: Cloud
The Turris MOX: Cloud bundle is a powerful kit that comes with a 64bit dualcore CPU, 1GB RAM, wifi connectivity and four USB 3.0 ports for attaching storage.
This setup makes it easy for users to set up RAID storage and Nextcloud for hosting, and can be extended with other router modules like network ports.
You'll need to have a data pool available for plugin storage, which can be changed by clicking on the storage location and selecting a new pool.
To get started with Nextcloud on your Turris MOX: Cloud, you'll need to connect the system to the internet and disable hardware offloading in the plugin interface.
Here are the steps to do this:
- Go to Network > Interfaces, edit the intended plugin interface, and set Disable Hardware Offloading.
- Also, make sure you have a data pool available for plugin storage.
With the Turris MOX: Cloud bundle, you can easily set up a cloud storage solution that integrates seamlessly with your existing network infrastructure.
Cloud Services
Nextcloud on TrueNAS offers an extremely versatile and reliable collaboration and data storage platform.
TrueNAS is an Open Source powered storage platform with over a million deployments, scaling from private home servers to 20PB+ storage platforms.
Installing Nextcloud Hub on TrueNAS is an easy process, requiring just a few clicks through the official Nextcloud Hub app.
The official support for Nextcloud on TrueNAS systems makes it a seamless experience for users, providing a robust and scalable solution for data storage and collaboration.
Frequently Asked Questions
Which NAS supports Nextcloud?
TrueNAS is a supported NAS platform for Nextcloud, with an easy installation process through the official Nextcloud Hub app.
How much RAM does Nextcloud use?
Nextcloud requires a minimum of 128MB RAM per process, but we recommend at least 512MB RAM per process for optimal performance.
Sources
- https://www.truenas.com/docs/solutions/integrations/nextcloud/
- https://sysadmin102.com/2021/11/install-nextcloud-on-truenas-and-obtain-ssl-certificate-from-lets-encrypt-with-certbot/
- https://nextcloud.com/devices/
- https://www.truenas.com/docs/scale/24.04/scaletutorials/apps/communityapps/installnextcloudmedia/
- https://www.pcwelt.de/article/2503700/truenas-so-nutzen-sie-das-alternative-nas-betriebssysten.html
Featured Images: pexels.com