Now let’s configure the web server configuration so that it runs Owncloud correctly. sudo sh -c "echo '' > /etc/nginx/sites-available/default"ĥ. Let’s clear the server config file since we will be copying and pasting our own version in it. Now we need to chmod the three cert files we just generated. sudo openssl dhparam -out /etc/nginx/dh2048.pem 2048ģ. This process will take quite a long time, up to 2 hours.Īdding the dhparam flag to the command will help speed up the process, but arguably is less secure. To generate a 2048 byte long dhparam file, run the following command on your Raspberry Pi. By default, this would use a default one that isn’t nearly as secure. This file helps ensure that our SSL connections are kept secure. In addition to the SSL certificate, we also need to generate a custom dhparam file. Just enter the relevant data for each of the questions it asks you.Ģ. Now we need to create an SSL certificate you can do this by running the following command: sudo openssl req -new -x509 -days 730 -nodes -out /etc/nginx/cert.pem -keyout /etc/nginx/cert.key We will also be setting NGINX up so that it can support HTTPS connections as well.ġ. Our next step is to now set up and configure NGINX for it to work with the Owncloud software. You can work around most of these by adding a third-party PHP repository to your operating system. When running this command on older versions of Raspberry Pi OS, you might run into a “ package not found” error. sudo apt-get install nginx openssl ssl-cert php7.4-xml php7.4-dev php7.4-curl php7.4-gd php7.4-fpm php7.4-zip php7.4-intl php7.4-mbstring php7.4-cli php7.4-mysql php7.4-common php7.4-cgi php7.4-apcu php7.4-redis redis-server php-pear curl libapr1 libtool libcurl4-openssl-dev Run the following command to install everything we need. This includes PHP 7.4 and its numerous modules that OwnCloud relies upon. In this step, we will be installing all the packages that we require to run Owncloud. Once you are running Raspbian Buster, you can safely continue with this tutorial. You can follow our guide on upgrading from Raspberry Pi OS Buster to Bullseye.Īlternatively, we do have a workaround if you want to stick with an older release of Raspberry Pi OS.ģ. If you’re on an earlier version, then I highly recommend you upgrade to Raspbian Bullseye before continuing. These instructions have been updated to work with Raspberry Pi OS Bullseye. Next, we need to add the www-data user to the www-data group. Firstly, in either The Pi’s command line or via SSH, we will need to update the Raspberry Pi and its packages, do this by entering: sudo apt updateĢ. We will need both of these pieces of software to run the Owncloud software.ġ. The first thing we need to do is install both NGINX and PHP to our Raspberry Pi. ![]() ![]() In this particular tutorial, we’re going to be downloading a web server ( Nginx) and Owncloud. There are quite a few ways you’re able to install Owncloud onto your Raspberry Pi. If you haven’t installed Raspbian, then check out our guide on how to install Raspbian via NOOBS (New Out of the Box Software). ![]() Setting up The Raspberry Pi Owncloud Serverįirstly, you will need to have a Raspberry Pi with Raspbian installed. It will take you through everything you need to know get your Raspberry Pi Owncloud server up and running. If you’re a visual person and would like to see our video on how to put this tutorial together, then check out the video below. Note: It is highly likely that the USB ports on the Raspberry Pi will be unable to power an external hard drive so you may need to invest in a powered USB hub. I made use of the following equipment for this personal cloud storage setup. If you’re curious and want to learn more about the Owncloud software, be sure to check out the Owncloud website. This tutorial will take you through everything you need to know to get Owncloud setup and accessible. It is important to remember that since your data will be stored on your local network, you will end up with using more bandwidth if uploading and downloading files from outside your network. If this is the case, then this tutorial is perfect for you. In this project, we are going to make a Raspberry Pi Owncloud server that can act as your very own personal cloud storage.Īs the protection of your privacy becomes harder and harder, you may be thinking of moving your files to a private cloud storage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |