Build Your Own Raspberry Pi Cloud Server With Nextcloud

Cloud storage is an important a part of trendy life. The draw back is that your information is saved on distant servers by a faceless company which you need to belief with the privateness and safety of your treasured paperwork and pictures.

There may be an alternative choice, nevertheless: internet hosting your information in your very personal cloud server operating on a pc in your house or workplace. Probably the most common companies for attaining that is Nextcloud.

We’ll present you the best way to set up Nextcloud on a Raspberry Pi, connect exterior storage, and select an acceptable case.

Nextcloud vs ownCloud for Raspberry Pi: Which Is Greatest?


Cloud storage

An alternative choice on your home-based Raspberry Pi cloud server is ownCloud, which might be put in inside Raspberry Pi OS. In truth, Nextcloud is an unbiased spin-off of ownCloud created by a number of the latter’s core contributors.

Whereas the core options are very comparable for each, there are some key variations. A few of the extra superior options in ownCloud are solely accessible for premium subscribers, whereas all options are free in Nextcloud. Non-technical customers might also discover Nextcloud’s person interface slightly simpler to make use of.

1. Set up Nextcloud

There are two foremost strategies for putting in Nextcloud on Raspberry Pi 4 (or different Pi mannequin). The primary is to make use of the Nextcloud Ubuntu Appliance for Raspberry Pi. This requires you to open an Ubuntu SSO account and likewise to generate SSH keys to remotely entry and begin up your new Nextcloud server.

Alternatively, NextCloudPi is a particular model of Nextcloud designed to run on a Raspberry Pi 3 or 4. That’s the tactic we’re utilizing right here.

MAKEUSEOF VIDEO OF THE DAY

First, obtain the newest NextCloudPi OS picture file from the OwnYourBits website. Open the folder marked Nextcloud_RPi adopted by a date (not the Berryboot model). Obtain the BZ2 file or use the torrent to obtain it (really useful).

Extract the file utilizing an archiving device (e.g. WinRAR or 7-Zip for Home windows) in your pc; you’ll now have a folder containing an IMG file.

As normal when putting in an working system on Raspberry Pi, we’ll use the Raspberry Pi Imager utility to flash this (OS picture) file to an inserted microSD card—an 8GB or bigger capability card is really useful. To make use of this:

  • Click on Select OS
  • Choose Use customized and browse to the NextCloudPi IMG file
  • Click on Select Storage and choose your microSD card (usually referred to as one thing like “Generic Storage Gadget”)
  • Click on Write and anticipate it to be written and verified


Install NextCloud PI in Raspberry Pi Imager

2. Boot Up Nextcloud on Raspberry Pi

Place the microSD card in your Raspberry Pi and activate the facility. After a couple of seconds exhibiting the bootup sequence (plenty of scrolling textual content), you’ll be prompted to log in. The default username is pi and the password is raspberry. For safety causes, it’s advisable to alter your Raspberry Pi password afterwards.


NextCloud Pi command line login

3. Hook up with Wi-Fi

Enter sudo raspi-config and choose 2 Community Choices, then N2 Wi-fi LAN. Select your nation, adopted by your router’s SSID (identify) and password. Choose End to return to the command line.

To find the Raspberry Pi’s IP deal with, enter:

ip addr

Observe down the inet deal with underneath wlan0: that is the Raspberry Pi’s IP deal with. Some routers will reserve the identical deal with for it every time it’s booted; if not, you’ll wish to arrange a static IP deal with on your Raspberry Pi.

At this level, you may as well additionally allow SSH for distant entry from one other pc in case you do not wish to maintain your Raspberry Pi linked to a monitor whereas persevering with the setup. To take action, use the command:

sudo service ssh begin

From the command line or terminal of one other pc, you possibly can then enter ssh pi@[your Pi’s IP address] to entry the Raspberry Pi’s command line.

4. Allow Nextcloud Internet Interface

Enter sudo ncp-config and choose Sure if prompted to replace. Within the subsequent menu, choose CONFIG and use the down arrow to scroll to the underside of the checklist.

Right here, choose nc-webui, then erase no and sort sure. Press Enter after which any key. Choose Again and End to exit the config device.

5. Activate and Configure Nextcloud

In an internet browser on one other pc, enter the deal with https://[your Pi’s IP address]:4443

Should you see a warning that your connection isn’t non-public or safe, select to disregard it (by choosing Superior in Chrome or Firefox) and proceed to the positioning.

You’ll be prompted to log in. The default username is ncp, and the password is ownyourbits.


NextCloudPi activation screen

The NextCloudPi activation display screen exhibits two passwords, which you’ll want to repeat and paste right into a doc for secure preserving. The primary is the password for the NextCloudPi internet panel which allows you to configure server settings. The second is for the Nextcloud internet interface itself. You may adjustments these passwords later if you need.

With these passwords famous down, choose Activate. After a couple of seconds, you’ll be prompted to log into the NextCloudPi internet panel. Nonetheless, let’s skip that for now and log into the Nextcloud internet interface.

6. Entry the Nextcloud Internet Interface

Go to https://[your Pi’s IP address] (with out the :4443 suffix) and log in with the username ncp and the second password you famous down.

After proceed via a welcome display screen, you’ll see the principle internet dashboard. That is your personal Raspberry Pi 4 cloud server!


NextCloudPi web dashboard

Click on the N on the high proper to entry a drop-down menu with choices for Settings (a complete bunch—private and admin), Customers (you possibly can add and handle customers), and Apps to put in (such because the Collabora On-line workplace suite and ARM64 server).

Within the high toolbar are icons for sections comparable to Recordsdata, Images, Contacts, Calendar, and Duties. There’s additionally a NextCloudPi icon that takes you to the net panel. Click on it and also you’ll be prompted to log in with the username ncp and the primary password you famous down. A wizard will seem, with choices to configure USB storage and exterior entry over the web.

7. Add USB Exterior Storage

Your microSD card can have restricted capability, so it’s greatest so as to add USB storage on your Nextcloud Raspberry Pi server. Join your storage system to one of many Raspberry Pi’s USB ports.

Earlier than going any additional, you’ll must create a listing for it within the command line on the Raspberry Pi (or through SSH). Enter the next command:

sudo mkdir /media/USBdrive

Go to the NextCloudPi internet panel in your different pc’s internet browser. Within the wizard that seems (you possibly can open it utilizing a wand icon within the high toolbar), choose USB Configuration. Reply Sure to the primary query, then click on Proceed.

You’ll then be requested if you wish to format the USB drive. Should you‘re positive there are not any vital information on it you wish to maintain, choose Format USB. Lastly, click on Transfer information to USB.

8. Add Exterior Entry Over the Web

To this point, you possibly can solely entry your Nextcloud server from your personal native community, which is a bit limiting. To entry your Nextcloud server over the web from any location requires the usage of port forwarding and a dynamic DNS service.

9. Select a Case For Your Nextcloud Server


DeskPi Pro Raspberry Pi case

Working your Nextcloud server on a naked Raspberry Pi board isn’t a good suggestion as it would accumulate mud over time. There’s all kinds of instances accessible for standard-size Raspberry Pi 3 and 4 fashions.

Slightly than an inexpensive plastic case, we’d suggest one thing extra strong such because the DeskPi Professional. This has sufficient room contained in the case for a SATA storage drive and is provided with an M.2 to SATA adapter. To stop your Raspberry Pi overheating, it additionally options an ICE Tower cooling system and heatsink.


One other good choice is the Argon ONE M.2 case, which allows you to use any dimension M.2 SATA drive. Alternatively, you may select a strong case for Raspberry Pi alone and plug in a normal exterior USB storage drive.

Construct Your Personal Raspberry Pi Cloud Server: Success

Congratulations, you’ve now arrange a cloud server in your Raspberry Pi utilizing NextCloudPi. You may go to its dashboard utilizing an internet browser on one other system. There’s even a Nextcloud app for iOS and Android that you need to use.


muo-diy-raspberrypi-twisteros-macos-featured-2
Flip Your Raspberry Pi Right into a Mac or PC With Tornado OS

Supercharge your Raspberry Pi with Tornado OS, giving it an superior new look impressed by Home windows and macOS.

Learn Subsequent


About The Creator

Leave a Comment