top of page
Writer's picturelaiblacelphydi

How To Build Your Own Cloud With Raspberry Pi And OwnCloud



Our goal is to install the latest version of ownCloud on the Raspberry pi 4. This tutorial assumes that you have a fully functional Raspberry pi 4 with Raspbian and a 8 GB Micro SD card Minimum!.




How To Install OwnCloud On Raspberry Pi



ownCloud is a well-established, free, and easy-to-operate piece software developed for this purpose. The cost effective mini-computer, Raspberry Pi, acts as a particularly effective host for owncloud. This tutorial reveals everything you need to do to set up a Raspberry Pi cloud.


In order to use your Raspberry Pi to create a cloud server, you need a few extra components in addition to the mini-computer. You also need to change some settings in advance, before installing and setting up ownCloud 9.


You should ensure that the computer and any installed packets are up-to-date before starting the ownCloud installation process on the Raspberry Pi. For this, you should enter the following commands:


  • Finally I'm at the end. These are the tings I have done before I now can start installingownCloud on myRaspberry Pi.Change default users on Raspberry Pi

  • Mount ext4 USB flash drive to Raspberry Pi

The current version of ownCloud is 8.2.2 and this version would be better, cause it has full PHP7 support. But Iwill now install 8.1, cause there are some problems with 8.2.2 and the calendar app does not support PHP7 at themoment. But ownCloud 9 will come soon in 2016. The last time I have installed ownCloud is a while ago and so I will start withManual Installation on Linux.


The default user on a freshRaspbian ispi with the password raspberry. To feel a little bit more save I would like to delete the userpi and change the default root user password.


The only way I can be sure of the performance was to test it out myself. The installation was quick, only a few steps needed and you are up and running. If you want to install and test it yourself, follow their guide: How to install ownCloud Infinite Scale on a Raspberry Pi in 4 easy steps


One thing to note, for some reason I was not able to access owncloud from a web browser running on a different computer. I'm guessing, if you were testing it on a local machine, it will work fine. So i had to change the URL in the bash script to:


The version i installed (following the guide) is outdated. The latest version as of writing this article is OCIS v1.16.0. I also tested the latest version. Even though i was able to access owncloud from a web browser from another computer, I was not able to get the upload file to work properly. I think the issue is to do with the SSL certificate being issue to local host or something. So if you are testing it locally, it should be fine.


You don't have permission to edit metadata of this video. Edit media Dimensions x Small Medium Large Custom Subject (required) Brief Description Tags (separated by comma) Video visibility in search results Visible Hidden Parent content Create your own cloud server on the Raspberry Pi 2 Poster Upload Preview Ok Cancel jQuery(function() jQuery.telligent.evolution.widgets.seVideoManagerVideoView.register( wrapperId: '.fragment-b3ddff4f373f41a3befafb182a78f9e9131263856_media', isUserHasAccess: false, finalRating: 0, mediaId: 7825, contextWidth: '520', contextHeight: '333', minWidth: '670px', resources: linkCopied: 'Link copied to clipboard', errorContactAdministrator: 'An error occurred please try again or contact your administrator.' ); ); jQuery(function() jQuery.telligent.evolution.widgets.seVideoManagerEditorView.register( wrapperId: '.fragment-b3ddff4f373f41a3befafb182a78f9e9131263856_media', thumbnailUrl: null, macroType: 'URL', videoUrl: ' =g9TkTreiih0', mediaId: '7825', mediaUrl: ' =g9TkTreiih0', externalIconUrl: ' -storage.element14.com/defaultwidgets/00ec0202bb9041c288cc63c14b3070ba/b3ddff4f373f41a3befafb182a78f9e9/external.svg?sv=2016-05-31&sr=b&si=telligent&sig=xhN8u0RV0VmF8p9To%2FqWd7SOn1WSitt8lI98nqU6Wx4%3D&_=XYWqYqLBtyEV1GXp5mZgmg==', thumbnailUploadUrl: ' =220555c2-08d4-47b1-8a1f-3a4224cddb20', rteStyles: ' div.push-notification.error z-index: 100000 !important; /* hide original dimensions */ .modal table.mcetelligent-form > tbody > tr:nth-child(2) visibility: collapse; .mcemedia-previewwrapper::after content: none; .modal > .modal-content .mcemedia-previewwrapper padding: 0; border: none; height: auto; .modal > .modal-content height: 670px !important; .modal > .modal-content .mce-container.mce-panel height: 680px !important; .modal > .modal-content .mce-container-body.mce-abs-layout height: 670px !important; ', // View states isConversionViewState: false, isErrorViewState: false, isUserHasAccess: false, // Parents parentContent: null, parentContentList: [ "ContentId": "67d70236-d6b1-4b2f-a903-3f64a3be1248", "ContentTypeId": "00000000-0000-0000-0000-000000000000", "Name": "Create your own cloud server on the Raspberry Pi 2", "Url": " -pi/raspberrypi_projects/b/blog/posts/create-your-own-cloud-server-on-the-raspberry-pi-2" ], resources: errorContactAdministrator: 'An error occurred please try again or contact your administrator.', subjectRequired: '"Subject" is required field.', subjectExceededLength: '"Subject" exceeded maximum length of 255 characters.', descriptionExceededLength: '"Brief Description" exceeded maximum length of 250 characters.', invalidDimensions: 'Width or Height contains invalid values.' ); );


ownCloud is installed with SQLite by default. However SQLite is only good for testing and lightweight single user setups. It has no client synchronisation support, so other devices will not be able to synchronise with the data stored in an ownCloud SQLite database. MariaDB is the ownCloud recommended database.


Before starting to setup OwnCloud Server with Raspberry Pi 3, we first need to install an operating system. DietPi is one of the lightest operating systems available to date made specifically for low powered devices like the Raspberry Pi and Odroid. It has optimized software installers compiled specifically for the Raspberry Pi 3 that automate the install process, making the setup a simple process.


After the system reboots, open your browser and enter the IP of the Raspberry Pi and use /owncloud/ to in order to start the OwnCloud Server Setup Wizard. In my case, the IP for the Raspberry Pi OwnCloud Server installation is 10.1.10.111/owncloud/.


Congratulations! You managed to setup OwnCloud Server with Raspberry Pi 3 and you now have a dedicated Raspberry Pi OwnCloud Server for Private Cloud Storage. Next, you can learn how to install Emby Server on Raspberry Pi using the same easy to use DietPi method and build your ultimate server with the Raspberry Pi 3. In our future articles, we will show you how you can setup other services next to your Raspberry Pi OwnCloud Server, so make sure to check back soon for more.


sudo apt-get install nginx openssl ssl-cert php5-cli php5-sqlite php5-gd php5-common php5-cgi sqlite3 php-pear php-apc curl libapr1 libtool curl libcurl4-openssl-dev php-xml-parser php5 php5-dev php5-curl php5-gd php5-fpm memcached php5-memcache varnish mysql-server php5-mysql


You can also install a desktop sync client for Windows, Mac or Linux by following the instructions here. There are also mobile clients available in the relevant stores for iOS, Android and apparently Blackberry cough


We manually changed these two files eariler. So I reverted the files to their default values and rebooted but this appeared to break OwnCloud. I got an error about the .ocdata file in /mnt/FreeNAS/owncloud. I then reverted back to the changed values of 1024M rebooted again and I could access OwnCloud plus the error had disappered...


In order to set up your own personal cloud storage (ownCloud), you must have the LAMP (Linux, Apache, MySQL/MariaDB, PHP) stack installed. Other than the LAMP stack you might need Perl and Python-based upon your use.


Once you get the Owncloud page, you need to create an admin account and a Data folder location, where all files/folders will be stored (or leave default location i.e. /var/www/owncloud/data or /var/www/html/owncloud/data). Next, you need to enter mysql database username, password, and database name, refer to the screenshot below.


In this guide, we are going to learn how to install ownCloud Server on Debian 11. If you need to have your own self-hosted cloud storage that provides a safe, secure, and compliant file synchronization and sharing solution, try ownCloud.if(typeof ez_ad_units!='undefined')ez_ad_units.push([[300,250],'kifarunix_com-box-3','ezslot_15',105,'0','0']);__ez_fad_position('div-gpt-ad-kifarunix_com-box-3-0');


Before you can proceed, check about system requirements for ownCloud installation.Install Apache Web Server;Run the commands below to install Apache on Debian 11;apt install apache2 -yInstall MariaDB on Debian 11MariaDB 10.8 is the current latest version of MariaDB that is supported;


Hence, to install MariaDB 10.8, navigate to MariaDB repositories page and select your OS distro, Choose a MariaDB Server version and repository mirror.The copy and run the repository installation commands;apt install apt-transport-https curl gnupg2 -ywget -qO- _release_signing_key.asc \ gpg --dearmor > /etc/apt/trusted.gpg.d/mariadb.gpgecho \'deb bullseye main' \> /etc/apt/sources.list.d/mariadb.listYou can now install MariaDB 10.8 from the MariaDB repository using the command below;


Install PHP 7.4 and Other Required Modules;apt install php libapache2-mod-php php-mysql,intl,curl,json,gd,xml,mbstring,zip -yInstall ownCloud Server on Debian 11Install ownCloud repositoryOwnCloud is not included by default on Debian 11 repositories. However, there is repo for each Linux distribution maintained by ownCloud itself.There are available different ownCloud repos for various Debian release versions. 2ff7e9595c


0 views0 comments

Recent Posts

See All

Comments


bottom of page