Banner image of Home network security – Part 3b: Turris Omnia as network-attached storage via Nextcloud

Home network security – Part 3b: Turris Omnia as network-attached storage via Nextcloud

In this part of our home network security series, we show you how you can use your Turris Omnia as network-attached storage (NAS) via Nextcloud. Your local Nextcloud server keeps your data within your home network. You can share files with your family members and other devices at home. There is no need for flash drives or online storage.

Compared with NAS via SMB, this option is easier to implement; however, the RAM usage may be higher.

Always stay in the loop!
Subscribe to our RSS/Atom feed.


For this guide, we need:

Step by step to your NAS using Nextcloud

This time, we use the “Storage” module of Foris OS to format the mSATA drive and then install Nextcloud via LuCI and the CLI.

Please note that the following guide is based on Turris OS 3.11.16 and Nextcloud 16.0.9. Your version of Turris OS or Nextcloud might differ. In case of doubt, read the official documentation.

Step 1: Format and set the mSATA (Foris)

First of all, connect to your Turris Omnia using your web browser (e.g., Log in and go to “Storage.”

There should be a red warning message like:

Device currently in use is … (internal flash)

Your mSATA drive should be selectable below (e.g., “sda”).

Select your device and click on “Format & Set.” After confirming this choice, your Omnia formats and sets your drive and then reboots. Log in again and check whether your drive is in use now (see image below). The file system is “btrfs” this time.

An image showing the storage page of Foris OS.
Our mSATA drive after formatting and setting is as /srv location. (🔍 Zoom in)

Step 2: Download and install Nextcloud (CLI)

Now, we must download the Nextcloud packages via the CLI. Connect to your Turris via SSH: ssh root@ Use the password for “advanced administration” like configured in the first part of this series.

Enter the following commands: echo 'Install("nextcloud-install")' >> /etc/updater/conf.d/auto.lua and pkgupdate.

You should get a list of packages that your Omnia wants to install. Then, you should see the following output:

Press return to continue, CTRL+C to abort

Press ENTER to proceed. The Turris downloads and installs Nextcloud from the Turris repository.

Start the installer by entering sudo nextcloud_install. Enter YES if you want to use the automatic setup. In our case, the configuration is stored in “/srv/www/nextcloud/config/config.php.”

When asked, “What should be admins login?” enter a username for Nextcloud. Then, when asked, “What should be admins password?” enter the password for this user account that is used for Nextcloud.

Step 3: Optionally secure the MySQL database (CLI)

After installing Nextcloud, you may have to configure your MySQL database. Enter sudo /usr/bin/mysql_secure_installation.

Confirm the initial password prompt with ENTER since we haven’t set a password before. Then you can set the “root password” of the database. After that, you have to press Y several times:

  • Remove anonymous users? [Y/n] Y
  • Disallow root login remotely? [Y/n] Y
  • Remove test database and access to it? [Y/n] Y
  • Reload privilege tables now? [Y/n] Y

All done! Disconnect your terminal and close it.

Step 4: Optionally enable hd-idle (LuCI)

You can optionally set the idle mode as described in our previous article for your mSATA drive in LuCI:

  • Go to Services / hd-idle.
  • Enable hd-idle for “sda.”
  • Save & Apply your settings.
  • Go to System / Startup.
  • Check whether “hd-idle” is enabled and running.

Step 5: Open Nextcloud in your web browser, and complete the setup

Open your web browser and enter (change the IP address accordingly). Enter the username and password that you set before. You should see your Nextcloud instance (see image below).

An image showing the default page of Nextcloud.
Nextcloud is ready. (🔍 Zoom in)

Go to, and look for any warnings. Carefully evaluate each warning.

You can use Nextcloud's auto updater to upgrade or update your Nextcloud version; however, future updates via the Turris repository might overwrite these updates or some configuration files. Keep this in mind when you use the auto updater.

Step 6: Enable advanced security settings of Nextcloud

In your web browser, go to On this page, you should enable server-side encryption by clicking “Enable server-side encryption.” You may need an encryption module for this. We found it on, and set it to “Enable.”

Then, go to, and disable options that are irrelevant for your setup. Check also the security apps page:


  • Enable and enforce HTTPS (encryption of data in transit).
  • Check all settings of your Nextcloud instance.
  • Keep in mind that users of the guest network of your Turris Omnia can’t access your Nextcloud instance since they are in another VLAN.
  • If you want to access this Nextcloud instance remotely, use a VPN.

This article is part of the Home network security series.
Read other articles of this series.


Nextcloud on your Turris Omnia keeps your data within your local network. You don’t need to trust any cloud server providers or other online parties. Besides, you don’t need additional hardware at home.



  • May 16, 2020: Updated the installation guide and steps to secure Nextcloud. Removed notes on RAM usage since we didn’t observe this anymore.

Read also