Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

Hands on with the Nextcloud Box

$
0
0

Hands on with the Nextcloud Box

If you’ve been here before you’ll have no doubt seen any one of several mentions I’ve made of Nextcloud; it’s a fantastic self-hosted platform and my go-to when recommending a do-it-yourself alternative to the mainstream DropBoxtype platforms. Here’s a refresher if you need it:

What is Nextcloud?

Nextcloud is a fork of ownCloud that’s quickly becoming the newer, better and faster-developed alternative to the self-hosted cloud storage software of old. It has every feature OwnCloud has to offer and more; if you’re an ownCloud user and have ever been frustrated by the dual licenses, the paid vs free model and as part of it lack of some of the better features, Nextcloud have gone completely FOSS (Free and Open-Source Software) following the Red Hat model of charging for enterprise support rather than enterprise features.

Some of the previously enterprise-only features released as part of the standard FOSS Nextcloud installation include FileDrop, an alternative to Dropbox’s “File Requests”, two-factor authenticationand LibreOffice online, an alternative to Google Docs or Office Online.

In addition to recently announcing version 10, Nextcloudhave worked with Canonical and WDLabs to bring to market the Nextcloud Box , a small (not quitefitlet-RMsmall but still), Raspberry Pi-powered, Snappy Ubuntu Core server with a 1TB WD PiDrive. I asked Nextcloud if I could get a review unit and a fortnight later it arrived at my door complete with a Raspberry Pi (not included on retail units).


Hands on with the Nextcloud Box

Unpacked it looks a little something like this:


Hands on with the Nextcloud Box

As pictured, the package comes with:

Nextcloud Box enclosure MicroSDcard 1TBPiDrive (pre-installed) A HDD/microUSB/USB3 splitter cable to connect and power both the HDD and the Pi A microUSB cable and 3A plug Screws & screwdriver

Again, the Pi is not included in retail units so will have to be supplied. Currently the Nextcloud Box supports the Raspberry Pi 2 Model B, but this will be expanded with software updates in the future to work with additional boards.

Build
Hands on with the Nextcloud Box

As the Nextcloud Box comes disassembled it will naturally need to be put together.

This is as simple as screwing the Pi into the enclosure with the 4 supplied screws and cabling it up as shown above. Nextcloud provide a handy image to demonstratehow the cables should be routed (click for PDF):


Hands on with the Nextcloud Box

To me the cable routing felt a little tight, I wasn’t too excited by how sharply-angled the USB cable coming out of the Pi had to be for this setup, but it works regardless. The ethernet cable (not pictured in the instructions) can easily follow the route of the power cable as the cutout is certainly large enough for both:


Hands on with the Nextcloud Box

Once assembled, the lid secures with a few powerful magnets making it wonderfully easy to gain access if required without the need for tools.

Setup

After powering it up there’s a bit of a wait while a built-in script takes care of pre-setup of the Nextcloud environment(8-10 minutes is stated, though mine didn’t take that long) and eventually navigating to http://ubuntu-standard.local or http://ubuntu-standard.yourdomain if you don’t use local internally like me should present the Nextcloud interface requesting the creation of a new administrator:


Hands on with the Nextcloud Box

Once credentials are created, we’re in:


Hands on with the Nextcloud Box

Yes, that’s really all it takes. It’s worth noting this is still Nextcloud 9. An update to 10 is currently in the works as of publishing.

HTTPS support

You may notice the links above are plain old HTTP. HTTPS is not enabled by default due to firewall requirements.

Let’s Encrypt is included with the Nextcloud Box as standard and once port forwarding is in place it’s really easy to enable HTTPS. Once set up, Let’s Encrypt will automatically renew its certificates, requiring no further input to remain secure.

The steps for enabling HTTPS can be found here .

Snappy Snaps

Being a Snappy Ubuntu Core, there are a slew of other appsthat can be installed, including some recommended by Nextcloud such as Snapweb.

Snapweb is a graphical interface for searching and installing various snaps through the Snap store. It’s much easier for those unfamiliar or uncomfortable with the command line:


Hands on with the Nextcloud Box

Unfortunately at the moment Snapweb itself requires manual installation viathe command line as follows:

sudo snap install snapweb --beta

However following this the interface will be available either via the internal IP or hostname on port 4200, eg: http://ubuntu-standard.local:4200 . The Nexcloud Box wiki explains how this can be setup as an external site from within Nextcloud itself here . Snapweb will be installed by default in this way in the future.

Note

As of publishing there’s currently a bug with the newly released version of snap-confine which prevents newly installed snaps from running. To get around this for now, run:

wget http://launchpadlibrarian.net/287156245/snap-confine_1.0.42-0ubuntu3_armhf.deb sudo dpkg -i snap-confine_1.0.42-0ubuntu3_armhf.deb

This installs the latest snap-confine version from Yakkety and only needs to be done if Snapweb (or other snaps) don’t appear to be running after installation. When installed, run:

sudo snap run snapweb

Otherrecommended Snaps include Rocket.Chat and SpreedRTC, but there are so many available it’s definitely worth exploring the Snap store to check outthe various services which can be run in addition toNextcloud on the Box.

Performance and issues

Up to nowmy main Nextcloud instance has run within an LXD container atop a Ubuntu 16.04 host with 4 cores and 16GB RAM, by no means a slouch. By comparison, the Pi-powered instance is somewhatless responsive, but by no means does it perform poorly.

I uploaded around 17GB of data overnight averaging out at roughly 9MB/s not unexpected on the Pi’s 10/100 NIC. Inside the networkthe 10/100 NICis something of a bottleneck, but from outside where you can access your files on the go this will not be noticeable.

It didn’t crawl to a halt as I was somewhat expecting it to uploading so much data in one go, and I feel the performance is fine for a couple of users. Cracks will show with multiple users simultaneously using the Nextcloud Box for large up/download tasks though, so keep that in mind.

My only real gripes with the box as it stands today are thumbnail generat

Viewing all articles
Browse latest Browse all 11063

Trending Articles