Build Personal DIY Cloud Storage With Remote Access

Today we focusing Build Personal DIY Cloud Storage With Remote Access.

In this article, we will show you how to Create a personal DIY cloud storage with remote access. Private cloud storage works by connecting a to-do cloud storage service like NextCloud to a hosting platform. The DIY service provides a user interface to manage your files in the cloud. It gives you control over things like how much you pay and how much you pay features You can use If you want to store your files in the cloud, you can choose from dozens of services.

Most of them will do the work for the average person or family. Setting up up These services are simple and require no additional hosting platform as the cloud storage company already allocates server space to its customers. Building a DIY cloud storage solution is more complicated, but it gives you control over where your files are stored, how they’re accessed, and your level of security. DIY storage is great for large businesses, as many of these services are HIPAA compliant and have options for LDAP/Active Directory.

Building a DIY cloud storage solution is complicated, but you can control where your files are stored, how they’re accessed, and how secure you are. DIY storage is also great for large businesses, as many of these services offer HIPAA compliance and fax online with LDAP/Active Directory options. If you’ve ever thought about creating your own cloud storage, there are Android cloud storage apps besides PCs. mobile Users get the benefits of Clouds backup services. Below, we have mentioned ways to create a personal DIY cloud storage with remote access.

How to Create a personal DIY cloud storage with remote access

Things you need to build a DIY cloud storage

To create a DIY cloud storage solution with secure remote access you will need the following:

A Raspberry Pi Zero 2 W or better. You can also use the old one laptop Or a PC with Ubuntu or any other Linux distribution.

An SD card (minimum 4GB)

External USB storage, such as an external SSD or hard drive with a power supply.

Install and set up Up NextCloud Server

Install and set up up NextCloud server on Raspberry Pi Zero W, 2, 3 or 4, follow the steps below. If you are using the old laptop With a Linux distro (Ubuntu), you can skip this step.

Flash Raspberry Pi Lite OS

Step 1: Download, install and use the Raspberry Pi Imager tool to flash a microSD card with Raspberry Pi Lite OS.

Step 2: After flash, open the boot partition and create an ssh file and a wpa_supplicant.conf file. In the wpa_supplicant.conf file, paste the following code and save it. Update the code with your Wi-Fi SSID and password

See also  How To Clear Windows 11 Cache

Country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid=”NETWORK-NAME” psk=”NETWORK-PASSWORD”}

Step 3: Remove the card from the computer, plug it into your Raspberry Pi and connect the power supply to power it on.

Install NextCloud

Next, follow the step-by-step instructions below carefully to avoid any confusion:

Step 1: On Windows, open Putty and enter the Raspberry Pi’s IP to access SSH. On Mac and Linux, you can log in to the Raspberry Pi using a Terminal window with the username pi and the password raspberry.

Step 2: Once logged in, run the following command.

sudo apt update && sudo apt update

Step 3: Press Y and Enter key to continue.

Step 4: After update, install Apache2 and PHP.

sudo apt install apache2

Step 5: Visit Raspberry Pi IP after installation to confirm Apache2 installed successfully.

sudo apt install php8.0 php8.0-gd php8.0-sqlite3 php8.0-curl php8.0-zip php8.0-xml php8.0-mbstring php8.0-mysql php8.0-bz0- php8.0. intl php-smbclient php8.0-imap php8.0-gmp libapache2-mod-php8.0

Step 6: This will install the necessary packages for PHP and NextCloud. Restart Apache.

sudo service apache2 restart

Step 7: Install MySQL Server.

sudo apt install mariadb-server

Step 8: After installation, use following commands to create user and database.

sudo mysql -u root -pCREATE database mynextclouddb;create user ‘yourusername’@’localhost’ with identity ‘[YOURPASSWORD]’;grant all privileges on nextclouddb

Step 9: Finally, download and extract NextCloud on Raspberry Pi using the following commands,

cd /var/www/

Step 10: Now, create the data directory.

sudo mkdir -p /var/www/nextcloud/data

Step 11: Assign permissions and control over NextCloud files and folders.

sudo chown -R www-data:www-data /var/www/nextcloud/ sudo chmod 750 /var/www/nextcloud/data

Step 12: Create a configuration file.

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

Step 13: Paste the following into the editor window, then press CTRL+X, then Y and the Enter key.

Alias ​​/nextcloud “/var/www/nextcloud/” <டைரக்டரி /var/www/nextcloud/> All must be provided AllowOverride All Options FollowSymLinks MultiViews Dave off

Step 14: Now, tell Apache to use the configuration file.

sudo a2ensite nextcloud.conf

Step 15: Restart Apached2 for the changes to take effect.

sudo systemctl reload apache2

Step 16: To access NextCloud you can now use HTTP://Visit /nextcloud. For example,

192.168.0.136/nextcloud

Step 17: Enter the username and password you created for the MySQL database in step 8.

Step 18: Now, click Finish Setup and wait. Once done, you can upload files locally and start sharing.

Follow the next steps to expose your DIY cloud storage, i.e. NextCloud, to the Internet for remote access.

Install and set up Up A Cloudflare tunnel

Install and set up up A Cloudflare Tunnel To securely access your DIY cloud storage from anywhere, follow these steps.

Add the site to Cloudflare

Get a free domain name at Freenom or buy one from a domain registrar like GoDaddy or BigRock and add the domain to Cloudflare by following the instructions below.

Step 1: After purchasing or receiving a free domain, update your name servers with the following:

serena.ns.cloudflare.com elmo.ns.cloudflare.com

Step 2: When done, sign off up and log in to Cloudflare.com.

Step 3: Click Add Site.

Step 4: Enter the domain name and click Add Site.

Step 5: Select the free plan and click Finish.

As we have already updated our name servers, there is no need to add any records at this time. You click on Complete and press Sure.

Install the Cloudflared service on the Raspberry Pi

To install the Cloudlfared service on your Raspberry Pi, open a terminal or PuTTY and connect via SSH. Then follow these steps:

Step 1: Run the following commands to download, extract and install the Cloudflared service on your Raspberry Pi.

sudo apt wget https: sudo tar -xvzf cloudflared_2022.7.1_arm.tar.gz sudo cp ./cloudflared /usr/local/bin sudo chmod +x /usr/local/bin/cloudflared cloudflared -v

Step 2: Now, run the following command. It will display the URL.

cloudflared login

Step 3: Copy the URL and open it in a web browser to authenticate the domain you added to Cloudflare.

Set up up Cloudflare tunnel

Step 1: To create a secure tunnel to access your DIY NextCloud storage, run the following command in a terminal window,

cloudflared tunnel creates

Step 2: Now, copy the UUID of the displayed tunnel and the path of the JSON file.

Step 3: Create and edit the Cloudflared configuration file or config.yml file using the following command.

sudo nano ~/.cloudflared/config.yml

Step 4: In the editor terminal window, paste the following code.

tunnel: a2efc6c1-2c75-45f83ee credentials-file: /home/pi/.cloudflared/a2efc6c1-2c75-45f83ee.json> entry: – hostname: nextcloud.YourDomain.com service: http: – service: http_status:404

Step 5: Make sure to change the tunnel UUID and credentials file path. Also, update the file hostname you want to give to your DIY cloud storage and update the IP in the Services: area.

Step 6: To save changes, press CTRL + X, then press sA, followed by a key.

Step 7: Finally, create a DNS entry in Cloudflare by running the following command,

cloudflared tunnel route DNS

Step 8: Now, you can start the secure tunnel.

Cloudflare Tunnel Run

Step 9: Once the tunnel starts, NextCloud can add the domain name to the trusted domain to avoid the next access error.

Step 10: To fix this, run the following command in an SSH terminal window.

cd /var/www/nextcloud/data/config sudo nano config.php

Step 11: In the editor, add your own domain (hostname) to add as a trusted domain as shown in the code below.

, 1 => ‘nextcloud.MyDomain.org’, ), ‘datadirectory’ => ‘/var/www/nextcloud/data’, ‘dbtype’ => ‘sqlite3’, ‘version’ => ‘24.0.2.1’, ‘overwrite.cli’ .url’ => ‘ ‘installed’ => true, );

Step 12: Press CTRL + X followed by s and press the Enters A key to save the changes.

Now, you can open a web browser or install the NextCloud app on your Android or iOS smartphone or tablet and remotely access, upload or sync your files or data to your DIY NextCloud storage.

Final Words

We believe in our article how to Create a personal DIY cloud storage with remote access that will help you and solve all your problems. Personal cloud storage works by connecting a DIY cloud storage service like NextCloud with a hosting platform. Provides a DIY service interface to manage your files in the cloud. It gives you control over the amount and money you pay features You can use For even more control, you can install most of our DIY options on your own hardware instead of an online hosting platform.

Faq

About This Guide?


In this guide, we told you about the Build Personal DIY Cloud Storage With Remote Access; please read all steps above so that you understand Build Personal DIY Cloud Storage With Remote Access in case if you need any assistance from us, then contact us.

How this tutorial or guide assisting you?


So in this guide, we discuss the Build Personal DIY Cloud Storage With Remote Access, which undoubtedly benefits you.



Share this article about Build Personal DIY Cloud Storage With Remote Access

I hope you like the guide Build Personal DIY Cloud Storage With Remote Access. In case if you have any queries regards this article/tutorial you may ask us. Also, share your love by sharing this article with your friends and family.
#Build #Personal #DIY #Cloud #Storage #Remote #Access

Trickbugs: Tips and Tutorials
Logo