7 minute read

How to: Build Free, Secure Personal Cloud

Next Article
In Memory

In Memory

How to:

Build a Free, Secure, and Unlimited Personal Cloud

Advertisement

By Dr. Yu-Ju Lin

Data is essential in the 21st century. A quarter-century of digital transformation has gotten us here: to the advent of the Data Age. From floppy disk to CDs and hard disk to cloud, storage technologies have come a long way, transforming our memories and experiences from physical devices to virtual spaces. The impact and value of data has never been more profound. With all these advancements, learning how to access data securely from anywhere in the world has become extremely important.

When done effectively, a cloud-based infrastructure can offer advantages over traditional storage technologies in the areas of performance, scalability, and even security. Most people would choose to use a thirdparty service to host your data, aka cloud storage. Amazon Web Services said a cloud storage is, “a cloud computing model that stores data on the Internet through a cloud computing provider who manages and operates data storage as a service.” Why would you bother spending the time and resources to make your own cloud when so many are already available? Do we really need to reinvent the wheel?

Unlike public cloud services, personal cloud storage does not charge users monthly subscriptions. Users use their own hardware and free open-source software to host their data. Personal cloud is easy to scale up. If you need more storage, just add another or a bigger hard drive. Most importantly, you own your data. If you rely upon a thirdparty for your cloud, you have little to no control over how that cloud can be used and how it’s deployed. If you build that cloud by yourself, you are in complete control. No matter how large your cloud, how many users, how strong your security — it’s all in your hands. To most people, building a personal cloud is unreachable due to lack of tools and knowledge. In this article, we are going to introduce an easy way to build a free, secure, and unlimited personal cloud that you will be able to access from any device, anywhere in the world. Here are the parts you will need for this tutorial: 1. An old laptop. Laptop is great in building a cloud storage as it comes with a battery that can serve as a UPS in case of power outage. Alternatively, many would choose to use a Single Board Computer, like Raspberry Pi 4. However, the supply of SBC has been disrupted and it’s very hard to find one with a reasonable price during this pandemic. The price you pay for a Raspberry Pi 4 Kit is almost the same as purchasing a low-end laptop from Walmart. A low-end laptop is also much more powerful than a Raspberry Pi 4. It also comes with built in storage, screen, keyboard, touchpad, and battery. So an old laptop is the recommendation. 2. An operating system (OS). There are many OS available for this purpose. We chose to use a Linux system. We cover how to use Linux in our classroom, so computer science students should not have any problems operating it. But for most people, operating Linux is an adventure. Modern day Linux distributions, like Ubuntu, is a userfriendly OS. Operating it is not much different than operating a Windows or MacOS. It also comes with a lot of free software that you can download from its store. However, setting up services and packages in Linux is a little bit daunting to most people. To quickly build a secure cloud server without going too technical, I am going to use a versatile distribution, Dietpi, for this tutorial. 3. A USB drive at least 4 GB large. Please backup your data before writing the image on it. 4. A portable drive, as large as you want for your cloud. You may want to use a 500GB or larger drive. These are relatively cheap. You can add more storage later. 5. Time: 30-60 minutes.

Steps:

1. Download a proper image from https://dietpi.com

Figure 1 Disc Images on Dietpi website

At the bottom of the download page, you should be able to find a lot of disc images like what is shown in Figure 1. We will use the Native PC disc image. There are two kinds of Native PC disc images. If your laptop is more than five years old, you need to download the Native PC (BIOS/CSM) image, otherwise, you should download the Native PC (UEFI) image.

2. Download the Etcher from: balena.io/ etcher/.

Figure 2 Download links on Balena website

You will find the download link as shown in Figure 2. Once downloaded, run the Etcher and follow the instruction on the screen to write the image to the USB drive.

3. Connect an Ethernet cable to your laptop, restart your laptop, and boot from the USB drive. You may need to consult your laptop manual on how to boot from a USB drive.

4. Once started, it will show something like what is shown in Figure 3.

Figure 3 Dietpi installation screen

5. Choose the only disk available on the

screen and use Tab key to navigate. Press Enter key to move on to the next step. The installer will show a lot of texts on the screen and on the installation progress. Wait for a few minutes to allow it to finish the installation.

6. After the installation, the system will

restart. If it does not restart, you can power cycle it. Once it is up, you should be able to see the same screen in Figure 4. You may want to write down important information on the screen: Username, Password, and LAN IP. Use the credential to login to the system for the first time. When typing the password, you will not be able to see what you are typing for security reasons.

Figure 4 Initial Login Screen

7. After logging into the system, you should change your default password as prompted

and install Serial driver. Afterwards, you should reach the following screen shown in Figure 5. Notice, this password is the system password, not the password to your cloud. Choose Browse Software. Use Arrow keys to move from one option to another. Use Enter key to choose an option.

Figure 5 Dietpi-Software Installation Screen

8. Dietpi will show software on screen as what is shown in Figure 6. Feel free to browse the software offered using up-arrow and down-arrow keys. Use Space key to choose an option. Use Tab key to move between browsing, Ok, and Back options. For this tutorial, we will use Nextcloud and Certbot:

Figure 6 Dietpi Software Browsing Screens

9. Once Ok is chosen, it will move back to

previous screen. Now we are ready to install the software. Move to Install and then choose Ok.

Figure 7 Choose Install to begin the installation

10. The next screen will say Would you like

to begin? Select Ok, then Apache, and then Confirm. The installation should start after Confirm. At the end of the installation, it will ask if you want to participate in a survey. After making your own choice, you will be back to the Terminal. If you wrote down your IP address when you first logged into the system, use a device (phone, laptop, PC, or tablet) to open a browser and enter the following address (replace the IP address shown with the one you wrote down when you logged into the system):

11. You will see the following screen. Use admin as username and dietpi as password. You will be able to change it later. Notice, this password is your cloud password, not the system password you set-up in Step 7.

Figure 8 URL address you should use for the first time

Figure 9 Nextcloud login page

continued >>

This article is from: