Cloud storage from old hard HHD Drives
one, two, three four five
six seven I have all 7 old hard disks Among them, I can choose 3 good hard
disks with larger capacity One of them is a solid-state hard disk with a rather
small capacity of 60GB Next are two hard disks,
each with the same capacity
of 500GB The solid-state drive will be used as the boot disk Two traditional
hard disks used to store data I am eagerly waiting, do you want to help me make
that dream come true? Let's continue with the purpose of this content Because my
computer can only install up to 3 hard disks,
I only choose 3 hard disks
You can add more hard disks if your computer can Please note to choose a
solid-state drive to boot and install the operating system The operating system
used in this video is Ubuntu server To install the ubuntu
server operating system on the target computer
I have prepared an 8GB USB stick To install the ubuntu server operating system
on the target computer I have prepared an 8GB USB stick You can use a 4GB USB
stick for this You go to the ubuntu home page and download the latest installer
So that you don't have to wait long, I have pre-downloaded the latest iso file
of the ubuntu server
operating system So that you don't have to
wait long, I have pre-downloaded the latest iso file of the ubuntu server
operating system I use Rufus tool to create Ubuntu Server installer You open
the rufus application select the usb stick and browse to the iso file
downloaded to the computer before to create the ubuntu server installer You
open the rufus application select the usb stick and browse to the iso file
downloaded to the computer before to create the ubuntu server
installer It will take about 10 minutes to
create the installation usb stick you want Then remember to safely remove the
usb to avoid data loss Next, you plug the usb stick into the target computer to
install the ubuntu server operating system For the target computer you need to
configure to boot from the usb stick
With each manufacturer, the
way to access the BIOS will be different As for my computer, when I turn on the
computer, I repeatedly press the Delete key to access the BIOS As for my
computer, when I turn on the computer,
I repeatedly press the
Delete key to access the BIOS In the motherboard management page you change the
boot order to the usb stick With my USB stick, I choose SRT USB 1100 You save
your changes and restart your computer It will take about a minute for us to
start the installation
You will be asked to choose a language, I
choose English Next is to choose the keyboard type, I choose English US You
need to assign a static ip address to your computer So you choose manual
setting Depending on the ip address range you are using, assign the ip address
accordingly I will assign the computer ip address 10.11.32.47 For ubuntu
server,
the way to assign the address is different
from Windows OS, so you configure it correctly Next we merge 3 hard disks into
a single hard disk for maximum cloud capacity With the storage configuration
you choose Custom storage layout With the storage configuration you first
delete all existing partitions on the hard disks You delete the partitions of
the hard disk
by selecting each hard disk and selecting
Reformat Because all 3 of my hard disks have partitions so I configured to
reformat each hard disk I finished deleting all partitions of all 3 hard disks
Next, select the bootable hard disk For the operating system to boot quickly,
choose a solid-state drive to boot Here I have a solid state hard drive with
actual capacity of 55G and
I choose it as my boot hard disk Select solid
state hard disk, select use as boot device Continuing with the solid state
drive, you create a new partition called swap You set the swap partition size
to be half of your computer's physical RAM This partition acts as virtual RAM
for the Ubuntu operating
system when you use up your computer's
physical RAM This partition acts as virtual RAM for the Ubuntu operating system
when you use up your computer's physical RAM Next, you in turn create
partitions for the hard disks For each hard disk you choose free space Add GPT
partition You format
the partition as Leave
unformatted You repeat with all 3 hard disks Then each hard disk will have a
new partition with a capacity equal to the maximum capacity of the hard disk
Next you will merge these three partitions into a new partition Create software
RAID With RAID configuration you have many
configuration ways But for the purpose of
aggregating the capacity of all partitions, you choose Raid 0 striped Next you
use the spacebar to select all 3 partitions to merge them together With two
500GB traditional hard drives and one 60GB solid state drive, I've got a new
partition with a capacity of 986GB
With two 500GB traditional hard drives and one
60GB solid state drive, I've got a new partition with a capacity of 986GB You
choose the newly created partition, Add GPT partition You create a new boot
partition Set up 1G capacity for the boot partition With the remaining free
space you create a new partition Partitioning the hard disk and merging
multiple hard disks
into one is done Next you will be asked to
create an administrative account for the Ubuntu server operating system You
write it down to use in the next steps To get remote access to ubuntu server
don't forget to enable openssh server In the list of recommended installation
software you choose next cloud,
this is an open source
application to build a great personal cloud In the list of recommended
installation software you choose nextcloud, this is an open source application
to build a great personal cloud Now that you have set up the necessary things,
the installation of the ubuntu server operating system on the target computer
begins Now that you have set up the necessary things,
the installation of the ubuntu server
operating system on the target computer begins It will take about 10 minutes to
complete the installation Once the installation is complete, you will be asked
to reboot your device You press the Enter key to continue You need to access
your motherboard's BIOS again to correct the boot order
Now you will have the computer boot from the
solid state drive Here you can remove the installation usb stick from the
target computer You save the changes and start the computer It will take about
5 minutes for the computer to finish booting up completely At this step you
will need information such as the ip address and admin account of the ubuntu
server From another computer
I open any browser and enter the ip address of
the ubuntu server A next cloud initialization page will appear stating that you
have successfully installed it You will be asked to create an admin account for
next cloud, you should write it down to use it in the next steps next cloud
will recommend you to install some software, but i only use this server to
store files so i will ignore next cloud
will recommend you to install some software,
but i only use this server to store files so i will ignore If you want to use
these software you can install them after building the next cloud server Let's
check the capacity of the private cloud A fairly large capacity compared to
free services
like Google Drive or One Drive, 909GB A fairly
large capacity compared to free services like Google Drive or One Drive, 909GB
To check if next cloud is working properly I try to upload any file Upload
successful, so next cloud works fine What are we going to do next? Of course we
will configure
to allow access to the private cloud from
anywhere From my Windows machine I connect to the ubuntu server using ssh You
open the command window enter the command ssh username @ ip address Next, enter
the admin password when prompted Because when I installed ubuntu server I
enabled openssh server so I can connect remotely using ssh If you want to
access
it from outside the
internet, you should enable https, so your data will be more secure If you want
to access it from outside the internet, you should enable https, so your data
will be more secure The command you use is sudo nextcloud.enable-https
self-signed Again you are asked for the admin password
of the your Bunkie server
You refresh your browser and try accessing the nextcloud management page In the
address bar, https has appeared, so https has been successfully activated In
the address bar, https has appeared, so https has been successfully activated
Next, you configure
port forwarding on the router, for each
manufacturer, the configuration will be different, but the purpose is the same
Next, you configure port forwarding on the router, for each manufacturer, the
configuration will be different,
but the purpose is the same
Port to forward is 443 To configure port forwarding you need the ip address of
the ubuntu server In my case I will forward port 443 to ip address 10.11.32.47
Check what is my public address my public ip address is 14.226.59.72
I will try accessing my
private cloud from outside the internet using a public ip address I got a
warning about accessing from an untrusted domain So how do we make it a trusted
domain? You reopen the previous ssh
command window and configure
as follows sudo nano /var/snap/nextcloud/current/nextcloud/config/config.php
sudo nano /var/snap/nextcloud/current/nextcloud/config/config.php Scroll down
to find the line containing the ip address of the ubuntu server Next,
replace the ip address with the star character
If you configure like this you will make all domains trusted to nextcloud you
can also add each domain separately if you want After saving the configuration
file, refresh your browser and check the results As you can see I was able to
access the private cloud from outside the internet But most people use public
ip address which is dynamic,
so what do you do Don't worry, the next part
of the video will help you solve that problem I will use duckdns to update the
public ip address dynamically and give you a free domain name You go to
duckdns, sign up for a free account and you get up to 5 free domains With this
cloud server I create a new domain name netvnncc.duckdns.org But you need to
install
duckdns on ubuntu server for
it to update public ip address automatically You choose your domain name and
follow duckdns instructions to install it on ubuntu server You create a new
file named duck.sh Then copy and paste the content containing your own token
Please note to correct
the path to the duck.sh file as I am doing
Don't forget to save the file before closing Next you use the command sudo
chmod 700 duck.sh Next command is crontab -e, then choose nano editor This file
is used to schedule automatic updates of your public ip address You also need
to correct the log file path like I am doing Don't forget to save the file
before closing The next command
is sudo ./duck.sh With this command you will
update the public ip address and assign it to your domain name The log file
will record your public ip address update results If the screen appears OK, you
have successfully updated your public ip address Let's use the new domain to
access the cloud https://netvnncc.duckdns.org Successful lucky successful So I
have successfully built
a private cloud with a capacity of 909GB If
you have more hard drives or your hard drives have a larger capacity, your
cloud capacity will be up to TB If you have more hard drives or your hard
drives have a larger capacity, your cloud capacity will be up to TB Next I will
connect to the private cloud
from my phone I have the next
cloud app pre-installed on my phone I just enter my domain name and account to
access the private cloud
Thank you