build your own cloud

build your own cloud

# Creating Your Own Cloud

In this video, the speaker explains how to create your own cloud and replace services like Dropbox and Google Drive. The speaker argues that hosting your own data gives you more control over it and provides a better understanding of how cloud services work.

Self-Hosting Features

  • FileCloud and Nextcloud are two free self-hosting options with more features than Dropbox or Google Drive.
  • FileCloud is geared towards large companies, while Nextcloud is more for home use.
  • Both options have a ton of amazing features, but users will need to figure out which one works best for them.

Setting Up Your Own Cloud

  • Users can set up their own cloud using a spare laptop with an external hard drive, a virtual machine, or a Docker container.
  • Hosting on-premises is completely free as long as you have the necessary hardware. Alternatively, users can host their cloud in the cloud using Amazon Web Services (AWS).
  • AWS charges for hosting because users are renting someone else's hardware.

Benefits of Self-Hosting

  • By self-hosting, users have complete control over their data and can ensure that it remains secure.
  • Self-hosting also allows users to learn about how cloud services work and gain valuable knowledge about managing their own infrastructure.

Why FileCloud is Great for Learning and Enterprise

In this section, the speaker explains why he likes to use FileCloud in his home lab and why it's popular among large companies. He also discusses the importance of data security.

Benefits of Using FileCloud in a Home Lab

  • Building a home lab allows individuals to gain hands-on experience with enterprise-level technology.
  • FileCloud is an enterprise-level solution that can be installed on Windows, making it a popular choice among companies.
  • Data security is crucial for large companies, which is why they prefer solutions like FileCloud over Dropbox or Google Drive.

Features of the Community Edition

  • The community edition of FileCloud offers remote access to files from anywhere and complete control over data privacy.
  • Hyper secure file sharing allows users to password protect files, limit download time and number of downloads.
  • Users can sync files back and forth or mount their drive as a network share.

Enterprise-Level Features

  • The enterprise version of FileCloud offers advanced features such as data governance, retention policies, smart DLP, zero trust file sharing, and antivirus scanning.

Setting Up a FileCloud Account on AWS

In this section, the speaker walks through setting up a free account on ce.filecloud.com and downloading the software.

Creating an Account

  • Navigate to ce.filecloud.com and create an account using your personal information.
  • Verify your email address by entering the verification code sent to you.

Downloading the Software

  • Click on "Download Now" and select the AWS option.
  • Follow the guide provided to complete the setup process.

Setting up an EC2 Instance in AWS

In this section, the speaker guides the viewer through setting up an EC2 instance in AWS.

Navigating to EC2 Instance Creation

  • Click on the "Services" tab and select "Compute".
  • Select "EC2" from the dropdown menu.
  • Take note of your current region at the top right of the screen.

Creating an EC2 Instance

  • Click on "Launch Instance".
  • Search for "FileCloud" and select it.
  • Choose a suitable instance type (e.g. T2 Medium).
  • Create a new key pair or use an existing one.
  • Launch the instance.

Accessing Your EC2 Instance

  • Wait for your instance to boot up.
  • Copy your public IPv4 DNS name.
  • Add "/install" to the end of your DNS name and check installation status.
  • Remove everything after ".com" and add "/admin".
  • Log in with default credentials (username: admin, password: instance ID).

# Logging in and Setting up S3 Storage

In this section, the speaker guides the viewer through logging into AWS and setting up S3 storage.

Logging into AWS

  • To log in, copy and paste the password into the password field.
  • If you receive an "invalid license file" error message, download a license from the FileCloud portal.
  • Click on "Get License" to download it.

Setting Up S3 Storage

  • Use Amazon's S3 storage service for more control over data and cost savings.
  • Create an S3 bucket by going to Services > Storage > S3 > Create Bucket.
  • Name your bucket and keep all settings default.
  • Create an IAM user account by going to IAM > Users > Add User.
  • Name your user account and give it programmatic access.

# Benefits of Using Amazon's S3 Storage Service

In this section, the speaker discusses why using Amazon's S3 storage service is beneficial.

Cost Savings

  • Storing data on Amazon's S3 is relatively cheap at 0.02 cents per gigabyte per month.
  • You only pay for what you use, making it more economical than increasing volume size on EC2 machines.

More Control Over Data

  • Using Amazon's S3 allows for more control over data compared to other consumer-level services like Google Drive or OneDrive.
  • Companies with large amounts of data can save more money using Amazon's storage tiers like infrequent access or glacier tier.

# Creating an IAM User Account

In this section, the speaker walks through creating an IAM user account for FileCloud to access your newly created S3 bucket.

Creating an IAM User Account

  • Go to IAM > Users > Add User
  • Give the user account a name and programmatic access.
  • Attach an existing policy to the user account or create a new one.
  • Save the access key ID and secret access key for later use.

# Creating an S3 Bucket

In this section, the speaker guides the viewer through creating an S3 bucket.

Creating an S3 Bucket

  • Go to Services > Storage > S3 > Create Bucket
  • Name your bucket and keep all settings default.
  • Do not open it up to the public.

# Conclusion

In this section, the speaker concludes by summarizing what was covered in the video.

Summary

  • Use Amazon's S3 storage service for cost savings and more control over data.
  • Create an IAM user account for FileCloud to access your newly created S3 bucket.
  • Create an S3 bucket by going to Services > Storage > S3 > Create Bucket.

Setting Up S3 Bucket Permissions

In this section, the speaker explains how to give a user account permissions to interact and use an S3 bucket.

Adding User Account Permissions

  • Find the user account in the list and click on it.
  • Click on "Add Permissions" on the right side of the screen.
  • Click on "Create Inline Policy".

Creating a Policy

  • Go back to the file cloud portal and open up the AWS document.
  • Scroll down to "Post Install" and click on "Setting up File Cloud, Manage S3 Storage".
  • Click on "Change Credentials or Configure Credentials".
  • Under "S3 Key", click on permissions.
  • Copy all of the JSON code from opening bracket until closing brace.
  • Go back to AWS console and select JSON editor instead of visual editor.
  • Paste copied JSON code into editor and click review policy at bottom right corner.

Changing Storage Location

In this section, we learn how to change storage location from Amazon's hard disk drive to Amazon's S3 file storage.

Enabling S3 Storage

  • Open settings by clicking on gear icon in left panel then selecting settings.
  • Click on storage section in settings menu.

Editing Configuration File

  • Connect to server via SSH using key downloaded earlier by copying command provided in AWS console then pasting it into terminal window.
  • Edit the file by typing "sudo nano /var/www/html/config/cloudconfig.php" into terminal window.
  • Change "local" to "Amazon S3" under "Define Tony, do cloud storage implementation".
  • Save changes and exit editor by pressing control X, Y, then enter.

Copying File

  • Copy file using command "sudo cp var/www/html/config/".

# Setting up Amazon S3 Storage for FileCloud

In this section, the speaker explains how to set up Amazon S3 storage for FileCloud.

Copying and Configuring the S3 Storage Config File

  • Copy the amazon-s3-storage.config.php.sample file to the same location and remove "sample" and the dash from its name.
  • Configure the first two options, S3 Key and S3 C, by going back to IAM management console and creating an access key.
  • Paste the access key information into File Cloud's settings.

Testing Amazon S3 Storage

  • Create a new user in File Cloud.
  • Log in with the new user and add a file to test if it is stored in Amazon S3.
  • Check if there are any new objects in your bucket on Amazon S3.

Enabling Encryption for Amazon S3 Settings

  • Enable encryption for Amazon S3 settings by clicking on "S3 Encryption and Manage" button under storage settings.
  • Click on "Enable Encryption" button to encrypt all existing files and new files using AES 256.

[#] Installing On-Premises Server

In this section, the speaker explains how to install an on-premises server after setting up Amazon S3 storage for FileCloud.

Downloading Server Options

  • Download the server by clicking on any of the options: Docker installation, Linux install, virtual machine image, or Windows MSI installer.

Conclusion

  • The speaker concludes that once you have set up your FileCloud CE account and installed an on-premises server, there are additional steps to take such as using your own domain name and setting up a legitimate SSL certificate.

Installing FileCloud on Linux and Docker

In this section, the speaker explains how to install FileCloud on Linux using Docker.

Installing Docker and Docker Compose

  • To install Docker and Docker Compose, run a few commands that can be copied and pasted.
  • Run sudo apt update to ensure repositories are up-to-date.
  • Install Docker and Docker Compose by running sudo apt install docker.io docker-compose -y.

Downloading FileCloud's Docker Compose file

  • Use the wget command to download the Docker Compose file provided by FileCloud.
  • Run ls to confirm that the file has been downloaded.

Pulling required images

  • Copy the command up until "filecloud-preview" from the instructions provided by FileCloud.
  • Paste it into your command prompt to pull all four required images.
  • Note that pulling the community version of the filecloud-solar image may take a long time.

Checking installation status

  • Check if everything is running by running sudo docker ps.
  • Navigate to your IP address followed by /install in your web browser to check if everything is healthy.

Installing FileCloud directly onto Linux

In this section, the speaker explains how to install FileCloud directly onto Linux without using Docker.

Recommended server OS for installation

  • The recommended server OS for installing FileCloud is Ubuntu 20.04 LTS.

Adding repositories and updating them

  • Copy all commands under "Step 1" from the instructions provided by FileCloud.
  • Paste them into your command prompt to add repositories and update them.

Installing Apache and MongoDB servers

  • Install Apache and MongoDB servers by copying and pasting the first two commands under "Step 2" from the instructions provided by FileCloud.
  • Copy and paste the command that automatically accepts the ULA and installs hands-free.

Checking installation status

  • Check if everything is working by running sudo ss -tulpn to see if ports are open.
  • Navigate to your IP address followed by /install in your web browser to check if everything is healthy.

# Setting up FileCloud with External Hard Drive

In this section, the speaker explains how to set up FileCloud with an external hard drive on a Linux machine.

Downloading and Applying License

  • Click on "Get Your License" in the FileCloud portal to download the license file.
  • Apply the downloaded license file.

Setting Up FileCloud with Virtual Machine Image

  • Download the virtual machine image and spin it up in VirtualBox or ESXi.
  • Follow the steps mentioned previously: go to install full URL, make sure everything is good, then go to admin and load your file.

Formatting External Hard Drive

  • Connect the external hard drive to your Linux server and check if it's identified by typing lsusb command.
  • Check how it's identified on your Linux machine by typing lsblk command.
  • Format your hard drive using sudo mkfs -t ext4 /dev/sdb1. This will erase everything on the hard drive.
  • Create a new directory for mounting the formatted hard drive using sudo mkdir /mnt/filecloud.

Mounting External Hard Drive

  • Check permissions of /mnt/filecloud directory using ll /mnt/filecloud.
  • Change permissions for users using sudo chmod u+rw /mnt/filecloud.
  • Mount external hard drive using sudo mount /dev/sdd1 /mnt/filecloud.

Conclusion

FileCloud has been successfully mounted and is now ready for use with an external hard drive.

Setting up FileCloud with a Domain Name and SSL

In this section, we will learn how to set up FileCloud with a domain name and enable SSL.

Getting a Domain Name and Setting it Up with CloudFlare

  • To get started, you need to have a domain name. If you don't have one, there are other videos that can show you how to get one cheaply.
  • Set up your domain name with CloudFlare using it as your name server.

Configuring DNS Settings in CloudFlare

  • Go to the DNS settings of your domain in CloudFlare.
  • Add a new record for the subdomain that points to your IP address where FileCloud is hosted.
  • Keep the proxy status enabled and save.

Creating CSR Request for FileCloud

  • Use OpenSSL command to generate a CSR request for FileCloud.
  • Enter details like country code, state, city, company name, common name (URL), email address.
  • Save the CSR file.

Signing Certificate with CloudFlare

  • Navigate to SSL/TLS section on the left in CloudFlare and go to Origin server.
  • Get certificate signed by CloudFlare and download it.
  • Paste certificate into a new file named "server ct".

Modifying Web Server Config in Apache

  • Modify virtual host from 80 to 443 in Apache config file.

# Setting up SSL for FileCloud Server

In this section, the speaker explains how to set up SSL for a FileCloud server.

Setting Up the Server Name and SSL Engine

  • Set up the server name.
  • Copy and paste the SSL engine paragraph under the server name.
  • Save by hitting control X Y enter.

Changing the Server URL

  • Go to settings and change the server URL to https Hack well files.network chuck.com.
  • Check if it's valid and save.

# Sharing Files with FileCloud Server

In this section, the speaker explains how to share files using FileCloud server.

Adding a New User

  • Add a new user by clicking on "Add" and entering their details.

Installing Mobile and Desktop Apps

  • Click on "Install mobile and desktop apps".
  • Download "File Cloud Sync" or "Drive".

Using File Cloud Drive

  • Download File Cloud Drive for Windows.
  • Mount it as L drive.
  • Share files from within file explorer by right-clicking on them, selecting "more options", then "File Cloud", then "share link".

# File Sharing and Data Security

In this section, the speaker talks about File Cloud, an enterprise solution for file sharing and data security. The speaker highlights the various features of File Cloud, including workflows, triggers, third-party integrations, and antivirus scanning.

Features of File Cloud

  • File Cloud is an enterprise solution for file sharing and data security.
  • It offers various features such as workflows, triggers (file download or comment added), third-party integrations (antivirus scanning on all data), and integration with Active Directory and single sign-on.
  • It can be integrated with Microsoft Office to edit files directly from the portal.

# Nextcloud - A Home Lab Open Source Solution

In this section, the speaker talks about Nextcloud as a home lab open-source solution. The speaker explains how to install Nextcloud using Docker and highlights its features.

Installing Nextcloud using Docker

  • Nextcloud can be installed using Docker.
  • Docker needs to be installed first on Linux-based systems.
  • Copy and paste a simple docker run command to install it.
  • Depending on your setup, you may need to do a reverse proxy installation.

Features of Nextcloud

  • Nextcloud has many features such as integration with next cloud office (collab), next cloud talk, contacts/calendar/notes/tasks management.
  • It can be installed on almost anything, including a Raspberry Pi.
  • It requires an internet connection to work properly.

# File Cloud vs Next Cloud

In this section, the speaker compares and contrasts the features of File Cloud and Next Cloud.

Features of File Cloud

  • File Cloud has a limitation of five users.
  • It is recommended for businesses due to its security features.
  • Similar sharing features as Next Cloud.

Features of Next Cloud

  • Unlimited users can be added to Next Cloud.
  • It is recommended for personal use or open source enthusiasts who like a product that does a lot.
  • Similar sharing features as File Cloud.

# Sharing Features in File and Next Cloud

This section covers the sharing features available in both File and Next cloud.

Sharing Features

  • Password protection and setting expiration dates are available in both platforms.
  • However, limiting downloads is only possible with File cloud.

# Personal Data Backup Options

The speaker discusses their personal data backup options.

Personal Data Backup

  • Google Drive and Dropbox are used as backups by the speaker.
  • They prefer having their data everywhere, but they do not put everything up there.

# Control Over Personal Data

The speaker emphasizes the importance of control over personal data, especially for companies with regulations on where they can store their data.

Control Over Personal Data

  • Companies need to have control over their personal data due to regulations on where they can store it.
  • Solutions like File cloud can help with business-level security and fantastic file sharing.

# Conclusion

The speaker concludes by encouraging viewers to consider alternatives to the "triad" and emphasizes that File Cloud and Next Cloud require some IT knowledge and tinkering.

Final Thoughts

  • The speaker encourages viewers to consider alternatives to the "triad."
  • File Cloud and Next Cloud require some IT knowledge and tinkering but are viable options.
Video description

Now you can deploy and run your own hyper-secure file sharing platform, by downloading FileCloud’s Community Edition. Visit https://ntck.co/filecloud and download FileCloud Community Edition as a self-hosted solution, on your Windows or Linux servers or preferred IaaS provider (AWS, Azure). (no code required) In this video, NetworkChuck will walk you through how to create your own cloud, either at home, on-prem or in the cloud! NetworkChuck demos the setup of FileCloud and Nextcloud, two excellent dropbox, google drive and microsoft one drive replacements. These are great options for both personal and business. LINKS --------------------------------------------------- FileCloud AWS: https://ntck.co/3CyTYz4 AWS IAM User Policy: https://ntck.co/3PkKPlj FileCloud Docker install: https://ntck.co/3pckT0A FileCloud Linux Install: https://ntck.co/42OypoM NextCloud Install: https://ntck.co/44694HZ 🔥🔥Join the NetworkChuck Academy!: https://ntck.co/NCAcademy **Sponsored by Filecloud 0:00 ⏩ Intro 1:43 ⏩ What do you need? 3:57 ⏩ What is FileCloud? 6:30 ⏩ the SETUP: FileCloud on AWS 12:44 ⏩ Amazon S3 Setup with FileCloud 23:30 ⏩ the SETUP: On-Prem FileCloud 28:43 ⏩ Adding an External Hard Drive to FileCloud 32:13 ⏩ Setting up a Domain Name and SSL for FileCloud 38:18 ⏩ Mounting a Remote Share in FileCloud 41:58 ⏩ the SETUP: NextCloud SUPPORT NETWORKCHUCK --------------------------------------------------- ➡️NetworkChuck membership: https://ntck.co/Premium ☕☕ COFFEE and MERCH: https://ntck.co/coffee Check out my new channel: https://ntck.co/ncclips 🆘🆘NEED HELP?? Join the Discord Server: https://discord.gg/networkchuck STUDY WITH ME on Twitch: https://bit.ly/nc_twitch READY TO LEARN?? --------------------------------------------------- -Learn Python: https://bit.ly/3rzZjzz -Get your CCNA: https://bit.ly/nc-ccna FOLLOW ME EVERYWHERE --------------------------------------------------- Instagram: https://www.instagram.com/networkchuck/ Twitter: https://twitter.com/networkchuck Facebook: https://www.facebook.com/NetworkChuck/ Join the Discord server: http://bit.ly/nc-discord AFFILIATES & REFERRALS --------------------------------------------------- (GEAR I USE...STUFF I RECOMMEND) My network gear: https://geni.us/L6wyIUj Amazon Affiliate Store: https://www.amazon.com/shop/networkchuck Buy a Raspberry Pi: https://geni.us/aBeqAL Do you want to know how I draw on the screen?? Go to https://ntck.co/EpicPen and use code NetworkChuck to get 20% off!! fast and reliable unifi in the cloud: https://hostifi.com/?via=chuck #filecloud #filesloution #nextcloud