You are currently viewing the United Kingdom version of the site.
Would you like to switch to your local site?
22 MIN READ TIME

BUILD YOUR OWN CLOUD STORAGE

Don’t trust third parties with your data? Nick Peers has the answer…

© MAGICTORCH

IN THESE DAYS of password breaches and encroaching government agencies, how much do you trust any third party with your data? Cloud storage is baked into Windows with Microsoft’s OneDrive, but despite the generous 1TB of storage space with any subscription, how sure can you be that your data is truly beyond the reach of bad actors?

If you’d rather not trust the internet with your precious data, Nextcloud Hub is the solution for you. It offers the same features you find in any good cloud storage solution— backup and synchronization between all your devices—but goes further to add a secure self-hosted chat platform as well as private solutions for your contacts, calendar, and projects, all of which can be accessed on your phone as well as your desktop and laptop. There’s even a powerful web-based office suite—based on LibreOffice—that you can deploy to edit documents on the go.

Better still, you can sign up trusted friends and family to free accounts to give them access to your server, providing you with all the tools you need to chat, share, and collaborate on projects without worrying about who might be snooping on your data. It’s time to free your data from the tyranny of others. It’s time for Nextcloud.

BEFORE YOU BEGIN, you need a suitable server to host Nextcloud on. Our small server build from the September 2022 issue is perfect, but you can use any Windows, Linux, or macOS computer running Docker. For the purposes of this feature, though, we’ll assume you’re running Ubuntu Server on a headless small PC, accessed remotely through the Cockpit interface in your PC’s web browser. This means you can copy and paste commands from your text editor directly into Cockpit’s terminal, which saves no end of time.

We’re also going to assume you plan to access Nextcloud from outside your network, so you need a suitable domain or subdomain to point to your home’s public IP address. Use the ddclient container (https://docs.linuxserver.io/images/docker-ddclient) to ensure it keeps pointing home even when your public IP address changes, and use Nginx Proxy Manager (https://nginxproxymanager.com), which we featured on page 62 of the April 2023 issue, to set up a reverse proxy.

We’ve opted for the official Nextcloud AIO Docker container, too, which downloads and installs all required containers—as many as 13 depending on the components you choose.

Instructions for installing Nextcloud AIO are at https://github. com/nextcloud/all-in-one—ignore the standard setup and click the “Reverse-proxy.md” link for instructions. Configure your reverse proxy by expanding the Nginx-Proxy-Manager section.

Install Nextcloud

Now switch your attention to Nextcloud AIO. Copy and paste the code under “Use This Startup Command” into your text editor. As things stand, this code won’t work. We need to add two lines, so the full instructions can be seen in the screenshot above.

You need to change “--net=bridge-for-all-seasons” to point to the same bridge network your reverse proxy is on, then point NEXTCLOUD_DATADIR to the path where you plan to store your synched files and other Nextcloud data. You probably also have to remap port 8080 if it’s in use elsewhere on your server— for example “-p 8081:8080” or something similar.

Now save the text file, copy it all to the clipboard, switch to Cockpit’s terminal, press Shift-Insert to paste the code in, and hit Enter. If all is well, Nextcloud AIO is up and running.

Initial setup

Wait around 30 seconds or so, then open a new browser tab and point it to https://192.168.x.y:8080 (substitute x.y with your server’s IP address, and 8080 with whichever port you mapped to it). You’ll see the Nextcloud AIO setup screen, with the password (or more precisely, passphrase) you need to access the AIO interface. Copy this to the clipboard (and paste it somewhere for safekeeping, say your password manager), then click “Open Nextcloud AIO Login” to open a new tab. Paste in the password and click “Log In.”

Create your Nextcloud AIO with a variant of this code.
© NEXTCLOUD

Input the domain you’ve configured in Nginx Proxy Manager to point to your Nextcloud instance, and click “Submit.” If you run into problems, check your Nginx Proxy Manager configuration is correct, and try navigating to http://192.168.x.y:11000 in your browser, followed by https://domain.com (substituting domain. com with your domain or subdomain). If both are functioning correctly, you see a hexadecimal string. If after you see this, Nextcloud still claims that port 443 isn’t open, destroy the container (docker stop nextcloud-aio-mastercontainer && docker remove nextcloud-aio-mastercontainer), and recreate it.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99p
SUBSCRIBE NOW
30 day trial, then just £9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Maximum PC
October 2023
VIEW IN STORE

Other Articles in this Issue


editorial
AFFORDABLE AMD
LAST MONTH, we built a brand new
QUICKSTART
THE NEWS
Intel’s messy roadmap Three lakes, two sockets, and
TECH TALK
Nvidia DLSS 3.5 and Ray Reconstruction
THE LIST
THE BEST GAMING CHAIRS
TRADE CHAT
AMD has canceled some GPUs, but don’t panic!
LETTERS
DOCTOR
THIS MONTH THE DOCTOR TACKLES...
AMD RADEON ON A BUDGET
Team AMD or Team Intel? Which sub$1,000 machine should you side with?
THE COMPONENTS
CPU AMD RYZEN 5 5600X This chip has
AMD RADEON ON A BUDGET
A NEW GO-TO AMD GPU FOR 1080P GAMING?
ALL-INTEL OR ALL-AMD?
WHICH IS THE KING OF 1080P GAMING?
LETTERS
WE TACKLE TOUGH READER QUESTIONS ON...
THE BUILDS
THIS MONTH’S STREET PRICES...
MAXIMUM PC
BEYOND MOORE’S LAW
Moore’s Law is mostly dead, yet it stumbles ominously forward. Jeremy Laird investigates whether the Lord of Light can revive computing’s prospects or are they already zombified?
MAKE WINDOWS GREAT AGAIN
Microsoft has made many unwelcome and unnecessary changes to Windows 10 and 11. Robert Irvine reveals how to reverse all the ways it has messed up its operating system
CHOOSE THE BEST VPN PROVIDER
Nate Drake gives you the rundown on how to select the very best VPN service for your needs
R&D
HOW TO STEP-BY-STEP GUIDES TO IMPROVING YOUR PC
TIP OF THE MONTH FOCUS SESSIONS With so
Perform major surgery on video
YOU’LL NEED THIS MKVTOOLNIXGUI Your Swiss army knife
Make e-mail easier with Thunderbird
YOU’LL NEED THIS THUNDERBIRD The latest version (115.0)
Keep your ad blocker working
YOU’LL NEED THIS CHROME OR EDGE, UBLOCK ORIGIN
Store your files online for FREE
YOU’LL NEED THIS MEGA ACCOUNT New Zealand-based cloud
LAB NOTES JEREMY LAIRD, CONTRIBUTOR
Falling behind the curve
Editor’s Pick:RedMagic 8S Pro
Forget video calling and Insta snaps, this is the best gaming phone right now
Samsung Odyssey OLED G9 G95SC
An OLED experience on an absolutely epic scale
IN THE LAB
Sk ytech Chronos 2
Cost-effective gaming that comes with a couple of caveats
Kingston XS1000
Good things come in small packages
Razer Blade 14
Good things come in small packages
AOK ZOE A1 Pro
Definitely more than a Deck, but is it better than a ROG Ally?
Asus ROG Rapture GT-A XE16000
A lot of router for a lot of cash
Corsair HS80 Max Wireless
Revised mid-tier headset from Corsair has plenty of features in its arsenal
Drop Lord of the Rings Dwarvish ENTR
As sturdy as a stout dwarf but basic under the skin
Mountain Makalu Max
A great wired gaming mouse, but sometimes a frustrating wireless one
Baldur's Gate III
Larian's latest is worth the 20-year wait
Scribus vs Affinity Publisher
Enter the world of publishing with these apps
Chat
X
Pocketmags Support