Find out how to arrange a Raspberry Pi ownCloud server

You don’t want us to let you know that cloud storage is a really helpful factor. And, because of ownCloud, even these of us who don’t belief huge firms with our information can benefit from the comfort of cloud storage. ownCloud is among the finest applications for working a cloud storage system in your Raspberry Pi, and with the assistance of it and DietPi, it’s simple for any Pi consumer to have their recordsdata at their fingertips anyplace they go. Sounds nice, proper? So how do you do it? We have now you coated. Right here’s arrange a Raspberry Pi ownCloud server.

Find out how to arrange a Raspberry Pi ownCloud server

There are many methods to get cloud storage. You possibly can flip to companies like DropBox or cloud companies from main firms like Apple and Google. However you don’t essentially must pay cash to get dependable cloud storage – and also you don’t essentially must belief big firms like Apple with all your personal recordsdata. You’re greater than able to replicating these companies by yourself. You’ll simply want some storage (like an exterior arduous drive) and a tool. You’re studying The Pi, so you recognize the place that is going: we’re going to make use of a Raspberry Pi. So seize your instruments!

You’ll want all the standard stuff plus an Ethernet cable and an exterior storage machine (optionally available, however really useful – when you’re going to arrange ownCloud, you would possibly as properly give your self loads of space for storing).

We’re going to put in DietPi, a super-lightweight working system for the Raspberry Pi. Then we’re going to make use of ownCloud that works on DietPi.

Step 1: Set up DietPi in your Raspberry Pi

Your DietPi set up course of is similar as with most different Raspberry Pi working methods. Seize the disk picture right here, unzip it with this system of your selection (7-Zip will work), after which write the disk picture to your microSD card with this system of your selection (Win32 Disk Imager on PC and Disk Utility on Mac will each work).

Step 2: Write down your IP tackle and log into DietPi

With DietPi on the microSD card and your Pi related to the web by way of Ethernet cable, go forward and boot up. DietPi ought to print out your IP tackle even earlier than you log in. We’re going to want that, so go forward and write it down.

Log in with the username root and the password dietpi (you are able to do this on the Raspberry Pi itself or simply SSH in from one other laptop). It’s your first time logging in, so DietPi will replace robotically. Wait that out after which hit enter to reboot. Then log again in!

DietPi - First boot

Step 3: Set up ownCloud

As soon as DietPi has rebooted and also you’ve logged again in, you’ll have the ability to set up new software program – and that’s precisely what we’re going to do.

DietPi - Setup

This system we wish known as ownCloud.

Within the DietPi menus, navigate to Software program Optimized – Choose DietPI optimized sogtware for set up after which to 47 OwnCloud: your very personal cloud (eg: dropbox). You’ll use the house bar to pick and Enter to verify.

DietPi - Setup (2)

After deciding on ownCloud, you’ll be despatched again to the menu you began from. Navigate to Set up – Go >> Begin set up for chosen software program and press Enter. On the next display screen, choose OK and hit Enter once more to point that you just’d like to start.

DietPi - Setup (3)

DietPi will set up ownCloud after which reboot (sure, DietPi actually likes to reboot).

Step 4: Entry the ownCloud internet interface

Let the Pi reboot after which put it apart for a second. Hop on one other machine and open a browser. Do not forget that IP tackle to your Raspberry Pi? The one you wrote down? Go forward and sort that within the tackle bar of your browser between http:// and /owncloud. As an illustration, mine appeared like this: http://192.168.0.103/owncloud/.

What you’ve varieties right here is the URL to your ownCloud internet interface. And the very first thing the net interface will do is run the setup wizard.

The setup wizard will immediate you to create an admin account. Select your username and password, then check out the apps that ownCloud recommends you obtain. Take this system’s recommendation.

In any case this, you’ll end up logged in to the ownCloud internet interface.

ownCloud - Web interface

Step 5: Use your storage!

Your Raspberry Pi ownCloud server is now arrange and you can begin importing recordsdata within the storage by clicking the plus image above the checklist of recordsdata and selecting Add. You possibly can hop into this interface along with your browser on nearly any machine in your community, in addition to by way of the ownCloud good cellphone apps. You’ll want your username and password, after all, and also you’ll have to ensure your Raspberry Pi is on when it’s good to entry your cloud.

ownCloud - Web interface (2)

However wait – in your community? Your cloud storage is fairly restricted when you can solely use it in your personal house. Let’s do only a couple extra steps and make our cloud storage out there anyplace.

Step 6: Arrange port forwarding

If you wish to entry your ownCloud server from outdoors your house community (and also you virtually definitely do), you’ll have to arrange port forwarding in your router’s admin interface and configure trusted domains in ownCloud’s settings.

Let’s deal with port forwarding first. Go forward and entry your router’s settings by typing your router’s IP tackle right into a browser tackle bar. We’ll all have the identical targets right here, however our settings might look a bit totally different. As an illustration, my router’s settings appear like this:

Service Port: 80
Inner Port: 80
IP Handle: [your Pi’s IP address]
Protocol: TCP
Widespread Service Port: HTTP

Change your settings so that they match ours above (once more, they received’t essentially be in the identical order or structure). The place we’ve [your Pi’s IP address], it’s best to, after all, put your Pi’s precise IP tackle. That is the IP tackle you wrote down manner again in Step 2.

That takes care of the router. Now for ownCloud.

Step 7: Configure trusted domains

With port forwarding set, ownCloud’s trusted domains setting is the final impediment to having fun with cloud storage from outdoors your house community.

Hop in your Raspberry Pi and log into DietPi. Enter this command:

sudo nano /var/www/owncloud/config/config.php

We’re going to edit this config file and add your public IP tackle to the checklist of trusted domains. My config file seems to be like this:

 false,
'instanceid' => 'oczs3u2vnel0',
'passwordsalt' => 'nRmHalWK8DQBNJ2bUicukJsg8Ys4Y2',
'secret' => 'fMP9Uix9Ub965r2ukRzKVgmn0ZK8GRSWWo5l1x9zseRZFkxS',
'trusted_domains' =>
 array (
 0 => '192.168.0.103',
 ),
'datadirectory' => '/var/www/owncloud/information',
'overwrite.cli.url' => 'http://192.168.0.103/owncloud',
'dbtype' => 'sqlite3',
'model' => '9.1.6.2',
'logtimezone' => 'UTC',
'put in' => true,
);

See that half I put in daring? You need to have the same part in yours, and that’s have been you’re going to make our adjustments. Proper above the place the parentheses shut, add a brand new line that reads 1=>'[your public IP address]’ – (the place the half in brackets is, after all, your precise public IP tackle and never simply these phrases). When you don’t know your public IP, you may simply examine by asking Google “what is my IP address?” When you’ve received it proper, the part will appear like this:

'trusted_domains' =>
array (
0 => '192.168.0.103',
1 => '[your public IP address]'
),

Our new line is in daring on this instance.

Now we’re all set. Exit the editor and save the config file by urgent Ctrl+X, then Y, then Enter.

Now you may log in to your ownCloud server from outdoors your house community by shopping to http://[your public IP address]/owncloud/. Be aware that we’re utilizing the general public IP tackle now as a substitute of your Raspberry Pi’s IP tackle. That’s it – you now have cloud storage that works wherever you’re!

Leave a Reply

Your email address will not be published. Required fields are marked *