Want additional storage on your Rasberry Pi 3? You can install ownCloud 10 on Raspberry PI 3 with Raspbian Stretch to make a remote control external storage for you. The possibilities are endless as you can store plenty of amount of data that you can trace or retrieve from any corner of the world.

Since the default storage in Rasberry PI is 3 is very small and not adequate for your awesome experiments or for media consumption for that matter. So it is obvious you want to expand the storage. But not only expand, but also make it a cloud storage device so you can access it from any part of the world.

Before going forward, you should have this component for installing ownCloud 10.

  • Raspberry pi 2 or 3
  • Raspbian installed
  • Minimum 8GB micro SD card

Install ownCloud 10 on Raspberry PI 3 with Raspbian Stretch Installed

In this article, you will learn to download and install ownCloud 10 on your Raspberry PI 3. There are six-part that will be included in this article:

Setting Raspberry Pi 3 for OwnCloud 10

Before downloading and installing OwnCloud 10 you will need to set up your Raspberry PI 3. You just need to follow these steps:

  • Update Raspberry pi System
  • Install LAMP server
  • Install ownCloud dependencies
  • Install ownCloud 10
  • Enable SSL for secure access
  • OwnCloud Configuration

Step 1: Open Terminal or SSH

Step 2: Enter following commands

sudo raspi-config

Make this following changes :

  • Advanced option -> Expand Filesystem (if available)
  • Change user password “For Security when accessing from the WAN”
  • Change the option to locale to en_US.UTF8 select “Localisation Option -> Change Locale”
  • Split the Memory, allocate 16M to video graphics
  • Select “Advanced Options–> Memory Split”
  • Overclock to Modest or Medium
  • Select “Overclock”

After finishing this setup, just-auto reboot, while auto rebooting, you will also need to Update the RPI and Packages.

Update Raspberry PI and packages

So for not facing any type of error while installing, you just need to follow these steps.

Step 1: Open Terminal

Step 2: Enter this following commands

sudo su

apt update && apt upgrade

Step 3: Wait for some minutes. After updating, you will now need to install LAMP server.

Installing LAMP server

After updating your Raspberry Pi and packages you just need to LAMP server. For installing LAMP server, you just need to follow this steps

Step 1: Start Terminal or SSH

Step 2: Install Apache server by entering following commands

apt install apache2 -y

Step 3: Start and end Apache on Boot by entering following commands

systemctl start apache2

systemctl enable apache2

After this you need to install some required packages.

Advertisement

Installing  required packages

You will need to install some packages which are quite required to process other steps.

apt install -y apache2 mariadb-server libapache2-mod-php7.0 \ php7.0-gd php7.0-json php7.0-mysql php7.0-curl \ php7.0-intl php7.0-mcrypt php-imagick \ php7.0-zip php7.0-xml php7.0-mbstring

Just have some patience while this packages get installed in your Raspberry Pi.

Install OwnCloud

After following this steps successfully, you are now able to download OwnCloud in your Raspberry Pi

Step 2: Enter this following command

cd /tmp

wget https://download.owncloud.org/community/owncloud-10.0.10.tar.bz2

Step 3: Extract and Change the permission by this command

tar -xvf owncloud-10.0.10.tar.bz2

chown -R www-data:www-data owncloud

Step 4: Move the directory of the file by this command

mv owncloud /var/www/html/

Step 5: Exit from the directory by typing cd

Configure APACHE server

Now you need to create configuration file under /etc/apache2/sites-available

Step 1: Open Terminal

Step 2: Enter this command

sudo nano /etc/apache2/sites-available/owncloud.conf

Step 3: Paste this code under that

Alias /owncloud “/var/www/html/owncloud/”

<Directory /var/www/html/owncloud/> Options +FollowSymlinks AllowOverride All

Dav off

SetEnv HOME /var/www/html/owncloud SetEnv HTTP_HOME /var/www/html/owncloud

Step 4: Save this

You need to create a symbolic link, enter this following command

sudo us

ln -s /etc/apache2/sites-available/owncloud.conf etc/apache2/sites-enabled/owncloud.conf

Additional Apache Configuration

You will need some additional configuration, just paste this  following command in Terminal or SSH

a2enmod headers systemctl restart apache2 a2enmod env a2enmod dir a2enmod mime

It will enable another module too.

Creating an MYSQL database

After all this, you need a database for further use. So you just need to open Terminal and type this command

MySQL -u root -p

After that, you will have popup then execute the command in bold lines

MariaDB [(none)]> create database owncloud;

Query OK, 1 row affected (0.00 sec)a

MariaDB [(none)]> create user owncloud@localhost identified by ‘12345’;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> grant all privileges on owncloud.* to owncloud@localhost identified by ‘12345’;

Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges;

Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit; Bye

Now for the next step, you can use your additional hardware. If you have an external drive then you don’t need to follow the other step.

Configure OwnCloud Server with browser

If you don’t have any additional drive then you need to follow these steps from your browser.

Step 1: Open this address in your browser

http://192.168.1.140/owncloud

(change IP address to the address you are using in Raspberry Pi)

Step 2: Create a username and password for admin

Step 3: Enter this details according to the MYSQL database you added

Username: owncloud Password: 12345 Database: own cloud Server: localhost

Step 4: Click on Finish

Without an external drive for your OwnCloud setup. Now you are ready to access your OwnCloud on your raspberry PI 3. You can use the following steps if you find any problem for first use.

Access for first time

Step 1: Enter youripaddress/owncloud in you browser — (for eg. 192.168.1.1/owncloud)

Step 2: Enter your Username and password.

Step 3: Enter details of your MySql account immediately

Step 4: Click on finish Setup

After this, you have completed all of your steps and ownCloud 10 installed to your Raspberry pi 3

Conclusion

After completing this tutorial, you will have a fully functioning online storage along with your Raspberry Pi 3. The process is rather easy but might be a little complex for novices or new users.

So if you have any doubts in the process above, feel free to comment down below. Our technical team is ready to help you out in any case possible.

  • How to Insert Emoji in Microsoft Word Documents
  • Microsoft OneNote Keyboard Shortcuts for Windows and Mac
  • How to Record and Transcribe Audio in Microsoft Word
  • How to Enable Windows Tamper Protection in Windows 10
  • How to Change Your Login Name on Windows 10