build your own cloud
الملخص
TLDRThe video explains how to set up a personal cloud storage solution that can replace services like Google Drive and Dropbox. The presenter suggests using tools like File Cloud and NextCloud to create a private cloud that offers better security and more control over personal data. File Cloud, suitable for enterprises, offers features like secure file sharing, integration with existing systems, and supports both Windows and Linux environments. NextCloud, more suited for home users, can run on a raspberry pi and offers numerous integrations through its apps. The presenter demonstrates setting up these solutions using AWS, Docker, and local hardware. Additionally, setting up a domain name and SSL security is covered, along with advice for both home and business scenarios.
الوجبات الجاهزة
- 💡 Setting up your own cloud can replace traditional services like Dropbox and Google Drive.
- 🔒 File Cloud offers enterprise-grade security and file sharing capabilities.
- 🏡 NextCloud is ideal for home lab setups with extensive app integrations.
- 💻 Solutions can be deployed on spare devices, Docker containers, or through AWS.
- 🔧 Control over your data is significantly increased with self-hosted cloud solutions.
- 🚀 File Cloud can be installed on both Windows and Linux systems.
- 📱 Both File Cloud and NextCloud offer mobile and desktop apps.
- 🔍 Linux users can leverage Docker for a straightforward installation process.
- 💼 File Cloud is more suited for businesses with features like data governance.
- 🔌 External hard drives can be used to expand storage options.
الجدول الزمني
- 00:00:00 - 00:05:00
The video aims to persuade users to abandon cloud storage services like Dropbox, Google Drive, and OneDrive in favor of creating their own private cloud. It argues that these services control user data and can be unreliable. The proposed solution is to use self-hosted solutions which require only a computer, possibly a spare laptop, and basic technology like Docker containers or virtual machines.
- 00:05:00 - 00:10:00
The video introduces two self-hosting solutions: FileCloud and Nextcloud. While FileCloud targets enterprises and offers a free community edition, Nextcloud is portrayed as more suitable for home users. Both solutions provide extensive features and the ability to have complete control over one's data. The video explains the ease of setting these solutions up, highlighting that they are free.
- 00:10:00 - 00:15:00
The host explains the technical requirements for deploying a self-hosted cloud using the solutions mentioned. It involves using spare hardware, different operating systems, or a cloud service like AWS. The importance of maintaining control over data is emphasized, and the process of setting up a personal virtual machine or utilizing existing hardware is detailed.
- 00:15:00 - 00:20:00
The video then provides a step-by-step guide for setting up FileCloud on AWS, demonstrating the use of EC2 instances, configuring key pairs, selecting the right instance size, and utilizing AWS marketplace images. The host stresses the cost-effectiveness of certain configurations and highlights learning opportunities by setting up in the cloud.
- 00:20:00 - 00:25:00
After setting up FileCloud, the video talks about configuring storage using Amazon S3 for scalability and cost efficiency. It outlines the steps to integrate S3 with FileCloud, including setting up S3 buckets and IAM users for access permissions. The segment provides a detailed walkthrough of how to achieve this integration for optimal storage management.
- 00:25:00 - 00:30:00
The host explains how to further configure FileCloud with security features like SSL certificates using CloudFlare. The video includes generating a CSR request and setting the server to use the new domain name. This part demonstrates securing cloud access and setting up proper domain configurations to ensure user security and data protection.
- 00:30:00 - 00:35:00
Next, the video continues with the on-premises installation of FileCloud, relevant for users not using AWS. It discusses installing on different platforms like Docker and Linux. Detailed installation steps are provided, including formatting external hard drives for added storage capacity and ensuring drive permissions are set appropriately.
- 00:35:00 - 00:40:00
The video illustrates FileCloud's user-friendly features such as setting up accounts and utilizing the File Cloud Drive feature to mount network shares. It describes setting file sharing limits and security measures and contrasts these capabilities with the limitations of other cloud services. A practical demonstration of file sharing and cloud management is shown.
- 00:40:00 - 00:47:12
Finally, the video shifts to explaining Nextcloud as an alternative for open-source enthusiasts. It emphasizes flexibility and extensive feature integration, although it lacks some sophisticated enterprise features found in services like FileCloud. The video concludes by encouraging viewers to explore these alternative cloud solutions, highlighting the benefits of control and customization.
الخريطة الذهنية
فيديو أسئلة وأجوبة
How can I replace Google Drive and Dropbox with my own cloud?
You can set up your own cloud using a spare laptop, a virtual machine, or even a Docker container. Tools like File Cloud and NextCloud offer free solutions to create your own cloud.
What are the main differences between File Cloud and NextCloud?
File Cloud offers enterprise-level features and security, while NextCloud is more home-lab focused, offering a wide range of plugins and integrations.
What unique features does File Cloud offer over standard cloud services?
File Cloud offers advanced security and file sharing options such as password-protected shares, download limits, and time-restricted access.
Are there mobile and desktop apps available for File Cloud and NextCloud?
Yes, both File Cloud and NextCloud provide mobile and desktop apps for easy access to your files from anywhere.
Can I use an external hard drive as storage for File Cloud?
Yes, you can use external hard drives to expand storage and mount it using Linux commands if hosting on a Linux OS.
عرض المزيد من ملخصات الفيديو
Electrical Diagnostic Thinking
Developments in EAST ASIA [AP World Review Unit 1 Topic 1]
Bitcoin: The Beauty of Mathematics (Part 52)
The Dutch Golden Age EP05 - The East India Company (VOC) and its legacy in Asia (English subtitles)
Joe & Tim Dillon Reflect on the Ups and Downs of the 2024 Election
Keynote address by Jean Tirole - 2019 Global forum on competition
- 00:00:00This, and this is all you need to replace Dropbox and Google Drive.
- 00:00:04You're gonna use this to make your own cloud. In this video,
- 00:00:07I just might convince you to stop using Google Drive, OneDrive, Dropbox,
- 00:00:10whatever it is, even if you're a business, let's kick that sucker to the curb.
- 00:00:15I almost pull a muscle. Most of us paid Dropbox, Google Drive,
- 00:00:18OneDrive to host and keep our data in the cloud,
- 00:00:21giving them control of our data. That feels good, doesn't it? But hey,
- 00:00:24we do get a little bit of convenience in return, right?
- 00:00:27We can easily share all these files and we have the peace of mind that it's
- 00:00:29always gonna be there and accessible until Google decides it shouldn't be.
- 00:00:32Or they change their prices or they go down or they get hacked.
- 00:00:35All of these things have happened. So the solution is to create your own,
- 00:00:39create your own clout, host your own stuff. Now, this is actually crazy simple.
- 00:00:42All you're gonna need seriously is a computer.
- 00:00:44It could be a spare laptop with a little external hard drive.
- 00:00:47It could be a virtual machine, a docker container. It can be in the clout,
- 00:00:50which I know sounds weird, but you're hosting it yourself. It's different.
- 00:00:53I'll show you. And you're gonna find that Google Drive, Dropbox, OneDrive,
- 00:00:56they haven't been giving us all the features we deserve. So right now,
- 00:00:59I'm gonna show you two self hosting features that are kind of gonna blow your
- 00:01:02mind. They have way more features than Dropbox and Google Drive Gross.
- 00:01:07Don't put that gr, that was so corny and dumb. Don't put the last part.
- 00:01:09So get your coffee ready.
- 00:01:11We're gonna give you a cloud experience on your own hardware,
- 00:01:14which that just sounds cool, right? You're building your own cloud in a way,
- 00:01:17and you're gonna learn a ton along the way. So if you're learning it, man,
- 00:01:20this is for you. And if you're not, do it anyway. Cuz this is for you too.
- 00:01:24Coffee break. And by the way,
- 00:01:28this is my default route roast. It's my stinking favorite.
- 00:01:30It's a single origin coffee from Ethiopia,
- 00:01:32probably my favorite origin for coffee.
- 00:01:34It has notes of berry chocolate and caramel and yes, I can taste all of it.
- 00:01:38You can too. And shout out to File Cloud for sponsoring this video.
- 00:01:42So now let's talk about what do you need? Well, first of all,
- 00:01:44you don't need these guys. You're done. Goodbye. Actually,
- 00:01:47before we talk about what we need, there were two options.
- 00:01:49I mentioned now why two? Well, let's cover that.
- 00:01:52But first I just want you to know they're both free, completely free.
- 00:01:55But they do target different audiences. For example,
- 00:01:57our first one we're talking about is File Cloud.
- 00:01:59They are the sponsor of this video. They do have a free community edition,
- 00:02:02but their target audience is large companies, enterprises,
- 00:02:07which is something I love by the way, because I get to use a tool,
- 00:02:09the same tool that large companies use.
- 00:02:11I'll tell you why I love that here in a second.
- 00:02:13But the second option is next cloud. Next cloud is pretty cool,
- 00:02:16but it's more home lap.
- 00:02:17You probably won't see an enterprise company using this and that's fine.
- 00:02:20Both of these have a ton of amazing features.
- 00:02:22I'm not gonna tell you what you wanna pick.
- 00:02:23You're gonna have to figure that out. I'm just gonna show you what they do.
- 00:02:26Now let's talk about what you need to deploy either of these.
- 00:02:28You got a couple options.
- 00:02:29Just know it's gonna be pretty easy With an asterisk , you'll see,
- 00:02:34but you're gonna learn a lot. Trust me,
- 00:02:35many of you'll want host this OnPrem or in your house, in your business,
- 00:02:39whatever it is. And that's kinda the main selling point, right?
- 00:02:41Like gimme my data. No one can have it.
- 00:02:43It's not leaving my house unless I can share it securely, but you can't.
- 00:02:45So for that, you can have a spare laptop collecting dust in your closet.
- 00:02:48You can install it on your Windows machine you're using right now,
- 00:02:51or a Windows server if you're a nerd like me. Or it can go on any Linux.
- 00:02:54Server F Cloud loves Ubuntu 2004 server L T s. I said all that backwards.
- 00:02:59That was weird. It can also be a Docker container. So you have a lot of options.
- 00:03:02Oh, they even have a image for virtual box and ES xxi,
- 00:03:06whichever option you choose. It's really, really simple to get installed.
- 00:03:09We'll walk through it.
- 00:03:10Then the other option I think is more fun and you're gonna learn a ton.
- 00:03:12And that's in the cloud. So I know it sounds weird like we're leaving the cloud,
- 00:03:16but you're gonna put me back in the cloud. What are you doing?
- 00:03:18You kind of have more control though. You do have more control.
- 00:03:20We're gonna put the sucker in aws, Amazon's cloud,
- 00:03:22which means we're gonna get to learn a few things about how to do things in the
- 00:03:25cloud like e C two and s3. I'm gonna walk you through the entire thing,
- 00:03:28but you're gonna end up hosting your own drive in the cloud. Your own cloud,
- 00:03:31in the cloud. So my advice,
- 00:03:33if you wanna play around and have fun and learn a ton, do pick both options.
- 00:03:37Play with it.
- 00:03:38Now keep in mind that on-prem is gonna be completely free as long as you have
- 00:03:41stuff aws,
- 00:03:43they do charge for hosting because you're not just using your hardware anymore,
- 00:03:46you're using someone else's hardware and you gotta rent. Okay?
- 00:03:48That's what you need. Oh, , I forgot.
- 00:03:50The most important thing you need coffee you do. That's required in it.
- 00:03:54Everything in it requires copy. We're gonna start with File Cloud. Now,
- 00:03:58as I mentioned before,
- 00:03:59one of the main reasons I love File Cloud is because they're enterprise,
- 00:04:02they target large companies. But why do I like that? Well, for me,
- 00:04:05and I think probably for you too,
- 00:04:06the reason I build my home lab is so I can kind of pretend to be a company cost
- 00:04:11playing as a company, right?
- 00:04:12Because I wanna get hands on the skills and experience with stuff companies
- 00:04:16might use and then pay me for those skills, right? That's the goal.
- 00:04:19My home lab is to learn.
- 00:04:20So any chance I can get to host something in my lab that's enterprise,
- 00:04:24that companies really actually might use, I'm gonna take it.
- 00:04:27And I love that you can install on Windows.
- 00:04:28I think it's probably one of the only host your own cloud solutions out there
- 00:04:31that install on Windows, which is why, why companies love it, right? But yeah,
- 00:04:34windows 10 and up Windows Server 2000 something I, I forget what it is.
- 00:04:38Then you put a thing there for what version?
- 00:04:40It was the file Clouds was known as an EFS or an enterprise file sharing
- 00:04:43solution. E F S.
- 00:04:45Their goal is to help you make your own private cloud as a person,
- 00:04:48as a business.
- 00:04:49They got you back an emphasis on the enterprise because it's really,
- 00:04:53really powerful and really, really secure.
- 00:04:55That's why they're big in government finance and education nowadays.
- 00:04:58Data is the name of the game. Keeping your data safe and secure,
- 00:05:01making sure you're not sharing it with someone you shouldn't. I mean, goodness.
- 00:05:04Can you think about a large company that uses Dropbox and trying to control who
- 00:05:07they share your data with? That's a nightmare.
- 00:05:09I'm just worried about my two kids in there who are using Dropbox and Google
- 00:05:12Drive, not to mention my employees. Goodness. Now for the community edition,
- 00:05:16before we install it,
- 00:05:17lemme tell you a few things I love it for and why you might wanna install it
- 00:05:20right now.
- 00:05:20Of course you get remote access to your files from anywhere and it's free.
- 00:05:23You also have full control of your stuff, of your data and it's private.
- 00:05:28And then this is just incredible ,
- 00:05:30I've been wanting this from Google Drive and Dropbox forever and they just don't
- 00:05:33do it.
- 00:05:33They have hyper secure file sharing and what that means cuz that that's just a
- 00:05:37word, right? What that means is when you share a file password protected limit,
- 00:05:42the time it's allows it to be downloaded,
- 00:05:43limit the amount of downloads that can occur. Create a file.
- 00:05:47Say you can only download it until next week and you can only download it one
- 00:05:50time. That's killer, right?
- 00:05:52Most solutions you can download a an application that'll sync your files back
- 00:05:55and forth, but you can also, and I don't think else does this,
- 00:05:57you can mount the share or you can mount your drive as a network share and it
- 00:06:01acts just like, it's so cool. If you're like, what are you talking about Chuck?
- 00:06:04I'll show you in a second. It's amazing. Now beyond the community edition,
- 00:06:07there are some things that they do enterprise that will just,
- 00:06:10you didn't even know what's possible. It's crazy.
- 00:06:12And we'll talk about that just for a moment so you can see what's out there.
- 00:06:14So you can learn what companies do to protect their data.
- 00:06:17I think it's important to know that because a big thing that File Cloud cares
- 00:06:20about is data governance. Putting retention policies on your data,
- 00:06:23having smart D L P or data leak prevention.
- 00:06:25They even have zero trust file sharing and antivirus scanning,
- 00:06:29all kinds of stuff I'll show you. So now the setup,
- 00:06:31I'm gonna start with AWS because honestly it's the most fun.
- 00:06:34Like really it's so fun. If you don't care about aws,
- 00:06:36if you wanna host this on your own,
- 00:06:38I will have timestamps just jump forward to that point in time stamp.
- 00:06:42That's one step I'm not gonna repeat.
- 00:06:43So you wanna watch this right now and that's setting up a file cloud account and
- 00:06:46getting your community edition license,
- 00:06:48which by the way used to be a paid license for community, used to be $10 a year.
- 00:06:52Now it's free. So you got nothing to complain about.
- 00:06:54I mean I'm sure you could find something and I'll see it in the comments,
- 00:06:57won't I? I'm talking to you buddy. Before you finish hitting enter,
- 00:07:00take a sip of coffee, take a breath,
- 00:07:03I'll take my own advice much better. So file cloud account,
- 00:07:07let's set that sucker up right now.
- 00:07:08We're gonna navigate out to ce dot file cloud.com CE for community
- 00:07:13edition here. We have a lot of the stuff I already showed you.
- 00:07:15Feel free to peruse that. But we're gonna scroll down and click on download now,
- 00:07:19which is gonna take us to the whole, hey, you need an account thing.
- 00:07:21So let's get an account. Bernard Hack. Wow,
- 00:07:25personal use. I have read everything man.
- 00:07:29Anyone else feel out they're lying when they click that I didn't read anything
- 00:07:31but I do agree blindly verification code And we're in from here.
- 00:07:35It's pretty simple. We're gonna click on download now.
- 00:07:37Download now and then click on download.
- 00:07:39That's gonna give you a few options of how you can do this.
- 00:07:42Right now we're gonna laser focus in on AWS because it's awesome.
- 00:07:46Clicking that will take you to the guide, which we're gonna depend on right now.
- 00:07:49And I'll walk you through and this will be actually pretty easy now if you've
- 00:07:52never used AWS before, I am so excited for you. It's so fun. In fact,
- 00:07:56right now you can sign up for a free tier account,
- 00:07:58which means you'll get a ton of stuff for free in aws.
- 00:08:01You may even be able to set this up for free.
- 00:08:03So you wanna head out to aws.amazon.com and get started for free.
- 00:08:07I'm not gonna walk you through it, I've got other videos on that.
- 00:08:09But go ahead and set up an account or get logged in if you already have one and
- 00:08:12meet me back here. Now here we are in the AWS console. It's kind of fun,
- 00:08:17don't get overwhelmed, there's a lot going on. But let's navigate through this.
- 00:08:19First we're gonna go up here to the services tab or button.
- 00:08:22Click that from here we're gonna click on the compute little menu icon right
- 00:08:26there. And finally we'll click on E C two,
- 00:08:29which is their service to create virtual machines and the cloud. Click on that.
- 00:08:32Now, mental note real quick. Up here at the top right,
- 00:08:34you'll see what region you're currently in. I'm in North Virginia,
- 00:08:37which is US East one. If you're somewhere different, just remember that,
- 00:08:40write it down, whatever. It'll come in handy here in a bit.
- 00:08:43Now from here we're gonna click on launch instance.
- 00:08:45We're gonna create an e C two virtual machine launch instance. Let's name it.
- 00:08:49And then just below the name,
- 00:08:50we have the option to search for an Amazon machine image, an aami.
- 00:08:53We're gonna search for file cloud right there. Hit enter.
- 00:08:56Now it's not gonna show you anything until you click on the AWS marketplace.
- 00:08:59Amis right here. Once you click on that, boom, file cloud's right there.
- 00:09:03First one is what we want. Click on select Now file cloud is free.
- 00:09:07Amazon isn't all the time and it's gonna tell you the server they recommend,
- 00:09:11the size and how much it will cost you per hour, which is a T2 medium.
- 00:09:15That's how they uh, refer to the sizing of their virtual machines.
- 00:09:18The amount of virtual CPUs that give you ram hard drive space.
- 00:09:21We'll walk through that. But anyways, let's click on continue.
- 00:09:24Now with that selected, let's walk through this together.
- 00:09:26Scroll down just a bit. Here we have our instant type,
- 00:09:29which they already default selected for us to be T2 medium.
- 00:09:32Now I'm gonna go with that, but you don't have to. In fact,
- 00:09:34I've installed this on a smaller version, especially if you're on the free tier.
- 00:09:37You can do the T2 Micro, which is free tier eligible.
- 00:09:40You can do that just to try it out.
- 00:09:41Just have fun so you're not charged anything at all.
- 00:09:43And if you're wondering Chuck, what's the advantage of going t2? Medium. Uh,
- 00:09:46it's faster. It can handle more.
- 00:09:48You're gonna have a better experience going with a larger computer.
- 00:09:50That's true in everything from gaming to cloud. Next we have our key pair login.
- 00:09:54AWS is big on using a key pair to login. So as opposed to a password,
- 00:09:58they're gonna want you to have a key that you'll use to unlock to get into their
- 00:10:01server. And we're gonna create that right now.
- 00:10:03We're gonna create the lock and key. That's what a key pair is.
- 00:10:05So we'll create a new key pair. If you already have one,
- 00:10:07you don't have to create a new one. I'll name this hack.
- 00:10:10Well everything else is fine. I'll say create keep here. And what that will do,
- 00:10:13you'll notice it downloaded the key,
- 00:10:15which I'll want to keep and refer to in a minute. Just keep it there.
- 00:10:18Keep it safe. The lock will be on the server. Now that's pretty much it.
- 00:10:21If we scroll down just a little bit just to make sure everything's good,
- 00:10:24it looks all good to me. You can add more stuff if you want to.
- 00:10:27You don't need to. I'm done.
- 00:10:29From here we're gonna click on launch instance and we are off to the races
- 00:10:34almost. Yep, it's launching it. It's probably booting it right now.
- 00:10:37If you wanna see what's going on and start to access it and see all the details,
- 00:10:40go ahead and click on this link right here, which is your instance id.
- 00:10:42Now you don't have to know everything about what I'm talking about to feel
- 00:10:45comfortable here. It's fine if this is new for you, let it be new,
- 00:10:48like walking into a new house. Just explore, have fun,
- 00:10:50just don't get crazy .
- 00:10:51I'm gonna click on the link now and we can see right there in the instant state.
- 00:10:54Mine is still pending. So I'm gonna wait just a second.
- 00:10:56Take a little coffee break for that to go to like booted ready to go.
- 00:11:00So with your virtual machine, booted,
- 00:11:02we're gonna scroll on over until we see the public I PV four DNS name,
- 00:11:07that's your server's address. That's how you can access it.
- 00:11:10We're gonna copy that right now. Open up a new tab and paste it.
- 00:11:15Now don't you hit enter yet. Calm down. .
- 00:11:17Before we hit enter we're gonna do a forward slash and type in admin and hit
- 00:11:21enter. Oh yeah, looking good actually you know what? Before we do that,
- 00:11:24take all out extra stuff out just after com. Do forward slash install.
- 00:11:28I like this feature.
- 00:11:29This will tell you if everything's golden and good installation checks.
- 00:11:33Do you got level those check marks, things look good. Extended checks,
- 00:11:36things look good. So anyways, let's get back to the admin.
- 00:11:38So take all that out just after com, type in admin and let's get logged in.
- 00:11:43The default login will be admin and the password will be your instance ID for
- 00:11:47this machine. So let's go back to AWS and we scroll over just a little bit.
- 00:11:50Our instance ID is right here. I'm gonna copy everything the I dash,
- 00:11:54copy that paste into the password field and get logged in.
- 00:11:58We are in but hold up, we're hit immediately with a hey invalid license file.
- 00:12:02Do we have one yet? No we don't have one. Let's go grab it.
- 00:12:04Let's get back to our file cloud portal that we were in earlier.
- 00:12:08And notice on step two we had the option to get our license.
- 00:12:10We definitely want that. Let's grab it right now.
- 00:12:12Click get license and it downloaded for you. That's all you had to do.
- 00:12:16So now getting back to aws, we're gonna click choose file,
- 00:12:18choose that license file, open it, apply it and that's it.
- 00:12:22You've got a fully licensed file cloud instance, pretty sick.
- 00:12:25Now you're immediately hit with a barrage of notifications on the right and I
- 00:12:29don't like that. Uh, we'll solve those here in a sec,
- 00:12:31especially the invalid url. We'll cover that.
- 00:12:33But let's go ahead and click those away. Goodbye, goodbye, goodbye, goodbye,
- 00:12:37goodbye. No, I'm not gonna show you everything cuz there's too much.
- 00:12:39But I will give you enough to get started to like not be totally lost.
- 00:12:42I'll give you some breadcrumbs. Now the first thing we want to cover is storage.
- 00:12:45And that's the whole point of this entire video, right?
- 00:12:47Is we wanna store our stuff somewhere else besides Google Drive one Drive in
- 00:12:51Dropbox. I'm getting tired of saying those company's names.
- 00:12:54Let's just call them the uh, the triad. We're calling 'em the triad from now on.
- 00:12:57Okay?
- 00:12:58Currently with this install I only have about 40 gigabytes or so of data to
- 00:13:02store, which is not a lot.
- 00:13:04And the reason for that is because that's how big my hard drive is on the AWS e
- 00:13:08C two machine I deployed. If I go over to storage in my AWS console,
- 00:13:12I can see my volume right there. Now you might be like, okay well that's easy,
- 00:13:16just increase the size of that volume and we could do that.
- 00:13:18But that wouldn't be the smartest thing, at least not the most economical thing.
- 00:13:22Increasing your volume size here cost more money than it would be to do
- 00:13:25something else. And that something else is called s3.
- 00:13:27S3 is Amazon's storage service and it's relatively cheap.
- 00:13:31It's gonna cost you 0.02 cents or dollars.
- 00:13:35I'm not sure how to refer to that per gigabyte,
- 00:13:37which is about the industry standard.
- 00:13:39And they're only gonna charge you for what you use.
- 00:13:41If you only got two gigabytes of storage up there,
- 00:13:42it's gonna cost you double of that.
- 00:13:44Now comparing that to Google or OneDrive or whatever it is,
- 00:13:47you'll probably get a better deal with Google and all these other companies.
- 00:13:49But if your goal is to have more control over your data and just have fun with
- 00:13:53Amazon, this is a pretty good option. Also,
- 00:13:55if you're a company with large amounts of data, like large amounts of data,
- 00:13:59this will end up saving you more money than Google will.
- 00:14:01And you also have the option looking at Amazon's price sheet of going like crazy
- 00:14:04cuz they had different storage tiers. If you didn't know about Amazon s3,
- 00:14:07I was pricing you the standard tier, which is 0.023 gigabytes per month.
- 00:14:11You can go for their like infrequent access tier,
- 00:14:13just stuff you wanna store that's much cheaper. Their glacier tier,
- 00:14:17like glacier tier, which is like crazy deep archive.
- 00:14:21Let's do the math on that. If I wanted to store 10 terabytes,
- 00:14:25see how many , how many zeros is that? That seems right, doesn't it? No,
- 00:14:29it doesn't seem right.
- 00:14:2910 terabytes will cost you 10 bucks a month just to archive your stuff.
- 00:14:32That's pretty cool. And you have the option of doing that.
- 00:14:34You don't have that option with these other consumer level things.
- 00:14:36So I say all that to say this.
- 00:14:38We're gonna set up right now an S3 storage bucket and we're gonna connect that
- 00:14:41to File cloud, which is fully supported. So here in aws,
- 00:14:44let's set up our S3 bucket. It's actually not too crazy,
- 00:14:47but it will involve two things.
- 00:14:49First we're gonna set up an S3 as you probably guessed,
- 00:14:52and then we'll set up an IAM user for file cloud to access that
- 00:14:57bucket. An IAM is Amazon's identity Access management sounds scary, it's not.
- 00:15:02Let's do it real quick. First, our bucket for s3. We're gonna go up to services,
- 00:15:06the top left here and then we'll scroll down just a bit on the side until we see
- 00:15:09storage right here. Go ahead and click on that.
- 00:15:12And for us right now we care about s3. Click on s3.
- 00:15:16And this is actually pretty simple. First we'll just create a bucket,
- 00:15:18click on create a bucket. The more I say that,
- 00:15:20the more I like that they called it a bucket.
- 00:15:22We'll name it something for region, let's keep it in the same region.
- 00:15:24We created our E C two, which for me was US East one. And then from there,
- 00:15:28that's pretty much all we need to worry about.
- 00:15:30We're not gonna open this up to the public. Keep it all default,
- 00:15:32all protected and safe. And finally down here at the bottom,
- 00:15:34we'll click on create. Ah, my pen create bucket.
- 00:15:37We got our bucket time for the IAM user.
- 00:15:39From here we'll click on the search bar. We're gonna search for it real quick.
- 00:15:42Just search for IAM. And there it is right there. By the way,
- 00:15:45you can use the search bar as much as you want for all the things we've been
- 00:15:47doing so far. So click on iam. Ah, it took me outta dark mode. Okay,
- 00:15:52thanks a lot aws. And here we're gonna focus on one thing,
- 00:15:55creating a new user account.
- 00:15:56So on the left here we have account management or access management and we have
- 00:15:59users click on users. And then over here on the bottom right,
- 00:16:02we'll click on add users. I'll name this hack, well file cloud,
- 00:16:07click on next,
- 00:16:07click on next once more and we'll click on create user at the bottom.
- 00:16:10We're done. Not yet though. . We have one more thing.
- 00:16:13We have to give that user account permissions to be able to interact and use the
- 00:16:17S3 bucket. So find your user account in our list right here.
- 00:16:20There's mine right there. I'm gonna click on that.
- 00:16:21And here in the middle we have our permission policies.
- 00:16:23On the right we have add permissions.
- 00:16:25Go ahead and click on that and click on create inline policy.
- 00:16:28Now this will be really simple cause all we're gonna do is copy and paste.
- 00:16:30First we're gonna go back to our file cloud portal.
- 00:16:32And remember previously when we clicked on download here and we chose AWS and
- 00:16:36opened up a new document here for us to look at here,
- 00:16:39they're gonna have some fun stuff for us. If you scroll down just a bit,
- 00:16:42you'll see the table of contents and we'll want to click on the last option,
- 00:16:46which is post install, expand that.
- 00:16:48And then there'll be a link right in the middle setting up file cloud,
- 00:16:51manage S3 storage, click on that. Whew,
- 00:16:53A lot of clicking and we're almost there . Um,
- 00:16:56we're actually gonna do all three of these options,
- 00:16:58but we're gonna do number two first, which sounds very counterintuitive, I know,
- 00:17:01just stick with me here.
- 00:17:02Click on change credentials or configure cred credentials.
- 00:17:05And then right here where it says under S three key,
- 00:17:08we have the following permissions. Click on that.
- 00:17:11Here we have some delicious J S O N starting with that opening bracket.
- 00:17:14We want to copy all of it until the closing bracket or curly brace rather copy
- 00:17:18that.
- 00:17:18Go back to your AWS console where we were configuring our policy and
- 00:17:23we're gonna click on J S O N.
- 00:17:24So right now we have the visual edit editor selected.
- 00:17:27We're gonna click on js o n instead.
- 00:17:28We're gonna control A and then control V pasting all our delicious J S O N.
- 00:17:33Everything looks good there. Click on review policy at the bottom right,
- 00:17:36we'll name it real quick. And then click on create policy.
- 00:17:38And now our user account, which mine was hack, well file cloud.
- 00:17:42He has permissions to mess with our S3 buckets.
- 00:17:44So back in our file cloud dashboard, we have one goal here.
- 00:17:47It has to change from using the storage in Amazon, which is just our hard disc,
- 00:17:51our drive for the virtual machine change from using that to using Amazon's S3
- 00:17:55file storage.
- 00:17:56Now for this we do have to get a little under the hood and mess with command
- 00:17:59line, which is kind of fun. So let's just do it real quick.
- 00:18:01It's not gonna be crazy.
- 00:18:02But first I'll show you what we're changing here on the left.
- 00:18:04We scroll down just a little bit,
- 00:18:06we'll have settings and then we'll click on settings.
- 00:18:09Go ahead and close that tutorial.
- 00:18:11And what we wanna click on right now is the storage section in our settings
- 00:18:14right here.
- 00:18:15Notice here in our storage settings we can change the location of where we store
- 00:18:18our file cloud settings.
- 00:18:20But I don't see anything about S3 and that's cuz we have to enable.
- 00:18:23And for that we gotta go to the command line. So let's get back to aws.
- 00:18:26This won't be scary, I trust me,
- 00:18:27it won't be scary if we get back to our e C two instance,
- 00:18:30which if you get back to your e c two service,
- 00:18:31you'll be able to get there pretty quick.
- 00:18:33Let's just go and open the settings here on the right you'll see the option for
- 00:18:36actions and then connect cuz we wanna connect to us. So click on connect.
- 00:18:39And I love this cause right here at the very bottom they have an example of the
- 00:18:42command you can use to automatically connect to your box with the key you
- 00:18:45downloaded if you just created that. So I'm gonna copy this command,
- 00:18:48I'm gonna launch my terminal here and I'm gonna change my directory real quick
- 00:18:51to the downloads folder. That's where I have my, my key stored.
- 00:18:54I just downloaded it and that's probably where you have yours too.
- 00:18:57So I'll do CD downloads and then I'll simply paste that command.
- 00:18:59And all this is doing is connecting to our server via SSH using our key.
- 00:19:03And it's not gonna ask us for a password. It's gonna be pretty sick. Ready?
- 00:19:06Go accept all fingerprints. Yes sir.
- 00:19:09And we're in and here we're gonna edit one file. So with me right now,
- 00:19:12type in pseudo then we're gonna use Nano cause Nano is the best text editor in
- 00:19:16Linux period. Just as.
- 00:19:19And then we're gonna edit this file that be forward slash var slash www slash
- 00:19:23html slash config slash cloud config dot php head enter.
- 00:19:28And we're gonna change one thing here.
- 00:19:30I'm gonna scroll down pretty much towards the bottom of this file until I see
- 00:19:34this. Define Tony, do cloud storage implementation.
- 00:19:39Right now it says local. We don't want that. We want it to say Amazon s3.
- 00:19:42And that's what we're gonna do. Gonna move my cursor on over,
- 00:19:46delete local and say Amazon S3. And that's it.
- 00:19:51We'll hit control X, Y enter to save and that should be all we have to do.
- 00:19:56And then one more thing, we're just gonna copy a file. That's all we have to do.
- 00:19:59We're gonna type in pseudo once more.
- 00:20:00We're gonna use the CP command for copy and we'll copy this file var ww
- 00:20:05html config,
- 00:20:07Amazon S3 storage config dash sample php.
- 00:20:11And we're gonna copy that file to same location. It's just gonna paste that in.
- 00:20:15But we're gonna remove the sample and the dash.
- 00:20:17So where it looks just like this Amazon S3 storage config do php.
- 00:20:20We're not gonna change that file, we just need to create a copy of it.
- 00:20:23Hit enter when we got it. Now looking back at our storage settings,
- 00:20:25it looks a little bit different. We have S3 options now let's configure it.
- 00:20:29So our first two options, S3 Key and S3 C. Let's get that.
- 00:20:33We're gonna go back to our IAM management console.
- 00:20:35Jump into our user account we created, which for me was Hack. Well file cloud.
- 00:20:40And we'll see over here in the menu options right here in the middle kind of is
- 00:20:43security credentials. Go ahead and click on that. If you scroll down just a bit,
- 00:20:47you'll see a section called Access keys. We wanna create one of those.
- 00:20:51So let's so click on create access key.
- 00:20:53From here we're gonna click on the little radio button for third party service.
- 00:20:57Click on I understand and click on Next describe it five o'clock.
- 00:21:01And then we'll click on create access key. Done.
- 00:21:03So now this information right here is what we need first.
- 00:21:06Look at the access key. I'll copy that.
- 00:21:07Go over to File Cloud and paste that right here where it says S three key paste.
- 00:21:12Then we'll grab the secret access key. It's a secret. Click on copy,
- 00:21:15it's copied, we'll paste it here. And the secret for bucket name,
- 00:21:19whatever your bucket name was. Mine was Hack, well bucket.
- 00:21:23Everything else is optional. We'll click on save S3 settings, click on. Okay,
- 00:21:28settings verified, we're good to go.
- 00:21:30We are now using Amazon S3 as our storage for File cloud, which is pretty sick.
- 00:21:34So if you did this, that's amazing , because that was, yeah,
- 00:21:39you gotta be honest, it's kind of complex.
- 00:21:40Right now we're using Amazon as a cloud storage provider on the back end.
- 00:21:43Bio cloud is kind of our front end and it's amazing.
- 00:21:45So let's test it real quick. Um, let's create a new user.
- 00:21:48Kinda our first thing to do on file cloud. Let's go to users on the left here,
- 00:21:51under users and groups. Click on add a user,
- 00:21:53it's all pretty basic stuff for authentication notice we have default
- 00:21:55authentication selected by default,
- 00:21:57but you could change it to active directory or ldap.
- 00:21:59You can integrate with anything pretty much. Let's put a little user in.
- 00:22:02I'll say Chuck, Chuck a little bit of password here,
- 00:22:06email address and click on Create. Now let's just grab our URL for file cloud.
- 00:22:11I'll open up an incognito window,
- 00:22:12I'll get logged in with my new user and here we go. My home personal cloud,
- 00:22:16just like that. First of all, it's already here. It's already happening.
- 00:22:19Let me add a file. I'm gonna go to my files. I'll just drag and drop something.
- 00:22:22I'll drag and drop a Dropbox. Uh, picture . Perfect, it's there.
- 00:22:26Now what I wanted to show you is let's go to Amazon S3 real quick and let's see
- 00:22:30if we have any new objects in our bucket. Look at that.
- 00:22:32We have an object one I just uploaded.
- 00:22:34Now one more thing you may wanna do for Amazon S3 settings.
- 00:22:37So here in file cloud and our storage, if we scroll down just a bit,
- 00:22:41we'll see a button that says where is it? Where to go. Oh,
- 00:22:43right here we have S3 Encryption and Manage.
- 00:22:46We can enable Amazon S3 encryption,
- 00:22:48which will encrypt our data at rest and in transit between Amazon S3
- 00:22:53and File Cloud. Our file cloud server.
- 00:22:55I'll leave the default option here and I'll click on enable encryption.
- 00:22:58Keeping in mind that it will encrypt everything currently in there.
- 00:23:01So it's best to do this. Like to begin with , click on.
- 00:23:04Okay and we're good.
- 00:23:05All existing files and new files will be encrypted using a E S 2 56.
- 00:23:10Okay, sorry I squeaked a bit there at the end.
- 00:23:13I feel pretty accomplished right now. That was pretty cool.
- 00:23:15Now at this point you do have file clouds set up in AWS using S3 storage,
- 00:23:18but there's probably a few more things you'll want to do.
- 00:23:20Like using your own domain name, setting up a legit SSL certificate.
- 00:23:24We're gonna cover that here in a moment. In fact,
- 00:23:26I'll put a timestamp jump to that real quick if you wanna just do that right
- 00:23:28now. But now I wanna get into hosting this yourself on prem.
- 00:23:32Now once you have your file cloud CE account setup,
- 00:23:34which I covered just earlier, installing on-prem is pretty easy.
- 00:23:37And I'll show you a few different options.
- 00:23:39So here we have the option to download our server.
- 00:23:41I'll click on download clicking on any of these options.
- 00:23:43We'll show you how to do it. I'll you real quick.
- 00:23:45How to do the docker installation, the Linux install.
- 00:23:48And for a really quick way to do this,
- 00:23:50just download the O V F and actually I think docker's faster.
- 00:23:52But you can download a virtual machine image.
- 00:23:54They can just load up in virtual box already ready to go. And then Windows.
- 00:23:57I'm not really gonna show you that cause that's kind of self-explanatory.
- 00:24:00All you gotta do is download an MSI installer and just go from there.
- 00:24:02It'll do it for you. So let's knock out the easy one first. Docker,
- 00:24:06click on docker. Really just a few commands you can copy and paste yourself.
- 00:24:09So here are my Linux server or it could be your Linux computer cloud two,
- 00:24:12wherever. Let's first make sure we have Docker and Docker compose installed.
- 00:24:16So we'll do a little pseudo a P T update,
- 00:24:17make sure our repositories are up to date.
- 00:24:19And then we'll do a pseudo A P T I install docker io,
- 00:24:23docker dash compose dash y, just like this.
- 00:24:26Hit enter little coffee break. It'll do its thing.
- 00:24:29If you have no idea what docker is, check it out.
- 00:24:31I got a video somewhere explaining what it is. It's amazing.
- 00:24:33You're gonna have a great time,
- 00:24:34but you don't have to know what Docker is to run this. It's already installed.
- 00:24:37Cool. Now we're gonna do a couple things.
- 00:24:38First we're gonna use this w get command here they have fors pulled down their
- 00:24:41Docker composed file. We'll just paste it in there.
- 00:24:44It pulled on the file if I'll do an ls, there's our Docker composed file.
- 00:24:47And then it wants us to pull all four file cloud images,
- 00:24:50which takes a long time, especially for the community version,
- 00:24:53the file cloud solar image. So we're not gonna pull that.
- 00:24:56And we also don't need file cloud preview.
- 00:24:58So all we'll do is copy the command up until file cloud preview. We'll just do,
- 00:25:02we'll stop at MongoDB, which is their database. We'll copy that.
- 00:25:05Go back to our command prompt, clean up a little bit,
- 00:25:09type in pseudo paste that command and let the party start.
- 00:25:12This could take a minute, so just take a little coffee break. Also,
- 00:25:15keep in mind that Docker,
- 00:25:16they recommend only for training and testing and it's not optimized for
- 00:25:20production servers. Now does that mean you can't use it in your home lab?
- 00:25:23Not at all. You probably just use that all the time. It's fine.
- 00:25:25But if you're run into issues, that's probably why. Okay,
- 00:25:28it actually wasn't that long. If you do a pseudo doctor PS it's running,
- 00:25:32it's going. So let's see if it works. Grab your IP address,
- 00:25:35navigate on out to the IP address slash admin. Actually no,
- 00:25:40let's do a forward slash install to make sure it's all healthy.
- 00:25:43This will do some checks to make sure it installed correctly.
- 00:25:45Everything's running. It totally is. That's awesome.
- 00:25:47Now let's go to forward slash admin. We'll log in with admin and super secure.
- 00:25:51Password. Password, all lowercase. And we are in.
- 00:25:56So now the last thing we have to worry about is the license file,
- 00:25:59which looking at our file cloud portal, just under what we downloaded,
- 00:26:01we can say get our license, click get license and it will download for us.
- 00:26:05Just like that. Notice that to download there. Getting back to our server,
- 00:26:09we'll just say choose file, pick that license file,
- 00:26:12apply it and we're good to go.
- 00:26:13Now there are a lot of things we gotta do to set this up.
- 00:26:16We'll continue that here in a moment. If you wanna jump straight there,
- 00:26:18go ahead now I'm gonna cover the Linux install real quick.
- 00:26:21So to install directly onto Linux,
- 00:26:22we'll click on our Linux X 86 64 Ubuntu Deb package.
- 00:26:26It'll take us to a place where we can install it directly from our repository,
- 00:26:29which is fantastic.
- 00:26:30Now I do highly recommend you go with their recommended server os and that's
- 00:26:35UB 2 20 0 4 lts. Just do that. It'll save you a headache, trust me.
- 00:26:39So go ahead and click on that.
- 00:26:41And it's simply a matter of adding some repositories,
- 00:26:43updating your repositories and installing it like that. It's that simple.
- 00:26:47So let's do it real quick.
- 00:26:48We're gonna copy all these commands right here in step one,
- 00:26:50adding all the repos and we'll paste that here.
- 00:26:54It's gonna update our repos done and then we're going to install the Apache and
- 00:26:58Mongo DB servers. And actually I'm just gonna do the first two commands.
- 00:27:01We'll paste those here and then I'm gonna grab the command down here that'll
- 00:27:04automatically accept the ULA. And install hands free, paste that command,
- 00:27:09give it just a little bit of time. Quick coffee break.
- 00:27:13Now throughout the install you may hit things like this and I always say install
- 00:27:17the package maintainer version. It's kind of annoying, just go through it.
- 00:27:21There's not too many but just enough to be annoying.
- 00:27:27Then right here, I'm just gonna say why enter one more time.
- 00:27:31I think it was last time. No look more stop it. Okay,
- 00:27:35think it's done now that should be it. Let's just make sure it's working.
- 00:27:38We'll do an SS dash tool pin and I do see ports open. That's a good sign.
- 00:27:43I'm gonna grab that IP address and navigate out there to see if it's working.
- 00:27:46Type in the IP address. We'll go to forward slash install.
- 00:27:49Make sure everything's good. Dude, things are looking great.
- 00:27:52If you get the screen, you did a good job and if you see how blue check marks,
- 00:27:55you also did a great job.
- 00:27:56So now we can go to forward slash admin after the IP address instead get logged
- 00:28:01in with the super secret password and use the name of admin then password,
- 00:28:05all lowercase.
- 00:28:06That's the stupidest combination I've ever heard in my life we're in.
- 00:28:09But we need a license file. Getting back to our file cloud portal,
- 00:28:12just click on get your license and it will download the license for you.
- 00:28:15Just downloaded mine, I'll choose it, apply it. We're good to go kind of.
- 00:28:19We'll ignore all those messages on the side. And then finally,
- 00:28:22if you wanna set up your file cloud just with the virtual machine image,
- 00:28:25it's super simple. You download it, yeah,
- 00:28:27spin it up in virtual box or E S X I or whatever.
- 00:28:30It's just pre-baked and you follow the steps I mentioned previously.
- 00:28:33Go to the install full uh url, make sure everything's good. Then go to admin,
- 00:28:37load your file. If you're like I didn't, I skipped those parts,
- 00:28:39we'll just go back and watch that last part. You'll get it.
- 00:28:41Now I didn't mention that all you need to replace the triad is a computer and an
- 00:28:45external hard drive and you'll want do that because right now my server here
- 00:28:48doesn't have much storage's got like 50 gigs or something like that.
- 00:28:52What I want to use is an external hard drive. But how do we do that?
- 00:28:54Let's set that up real quick. It's not too bad.
- 00:28:56And this will be specific to Linux.
- 00:28:58Now I do recommend you start out with a blank hard drive completely clean cuz we
- 00:29:02are gonna format it. So I'm gonna grab this guy, plug him into my computer,
- 00:29:04my Linux server.
- 00:29:05So first I'll type in the command LS USB for list USB and I can tell right
- 00:29:10there there's my Western Digital right there. I know he's plugged in.
- 00:29:14Now I'm gonna type in ls, B L K. I can see right here.
- 00:29:17SDB one is how he's identified on my Linux machine and I can tell like he's got
- 00:29:221.8 terabytes right there. Perfect.
- 00:29:24Now I'm gonna double check and make sure he is not mounted.
- 00:29:26I'm gonna type in mount and I'll just do a,
- 00:29:28actually let's do a mount pipe grip for SDB one.
- 00:29:33Nothing. So he is not mounted. We're good to go there.
- 00:29:35Now we have to format our hard drive.
- 00:29:37Keeping in mind this will erase everything.
- 00:29:40Hope you know that one command super easy.
- 00:29:42Pseudo M K F S will do a dash t. And then EXT four.
- 00:29:46This is the EXT four file system.
- 00:29:48It's I think the best You can try other options. But for simplicity,
- 00:29:51let's try this and it'll specify our drive,
- 00:29:54which will be in the dev location on your Linux file system.
- 00:29:57And then SDB one for me. Whatever you had when you did L S B L K,
- 00:30:02put it there. Go ahead and do it. Ready, set, go. It'll take a minute.
- 00:30:05So just a little little coffee break. Formatting is complete.
- 00:30:09Now we can mount our drive. So real quick, I'm gonna make a new directory.
- 00:30:11I'm gonna say NK dir slash mnt slash file cloud.
- 00:30:17That's my new directory.
- 00:30:18I'm gonna check the permissions on that directory real quick by typing in ll and
- 00:30:21in the directory.
- 00:30:22And I can see right here that we'll need to allow some permissions for our users
- 00:30:27according to this stuff right here. But we're gonna do this real quick, okay,
- 00:30:29will be pseudo c h mod.
- 00:30:32We'll do you for users plus RW for read and write.
- 00:30:36And then that new directory we just created Mount or N N T file Cloud
- 00:30:41done. Looks good so far. So now we can mount our drive,
- 00:30:44our external drive and it's really simple to do that.
- 00:30:46It'll be pseudo mount will specify our drive,
- 00:30:49which was Dev sdd one for me.
- 00:30:52And it'll specify where you want to mount it in the file system,
- 00:30:55which for us we created a folder for that already slash nt slash file
- 00:31:00cloud, it's mounted. If we type in mount, we can check that out real quick.
- 00:31:03There it is. This video has so much stuff. I hope you're having fun.
- 00:31:06Let's check our file permissions real quick for that folder.
- 00:31:08Once more we'll do ll slash NT slash file cloud, make sure everything's good.
- 00:31:13Looks like we need some work actually because the Apache service will need to be
- 00:31:16able to read and write to this directory.
- 00:31:18So let's change the permissions real quick. Once more,
- 00:31:20we'll do pseudo CH mod for simplicity.
- 00:31:24Let's do a for everybody plus read write and then we'll specify our
- 00:31:29directory MT file cloud. Actually let's set back real quick.
- 00:31:34Let's go back to the beginning of CH mod and we'll do a dash r dash capital R
- 00:31:39for recursive. Let's add that real quick.
- 00:31:42Check our permissions once more things look a lot better.
- 00:31:45So now here in file cloud, let for our storage path, let's change it real quick.
- 00:31:49We'll do forward slash mentee slash file cloud where I have my external
- 00:31:53drive mounted. I'll check the path. Looks good. Awesome.
- 00:31:58Click on save.
- 00:32:00And now we've successfully mounted and are using an external hard drive with
- 00:32:04file cloud. Felt like a lot. Kind of was a lot but that's awesome.
- 00:32:08Now there's two more things I wanna show you with File Cloud.
- 00:32:10Two more things we wanna set up to make it a bit better.
- 00:32:12First I wanna get a domain name and SSL set up.
- 00:32:15And second I wanna show you real quick how we can add a user set up our phone
- 00:32:18and everything with File Cloud and the coolest feature by far mounting a network
- 00:32:22share like you're there, like you're anywhere,
- 00:32:24like you can go anywhere and have this network share mounted. It's so cool.
- 00:32:27Now this first tutorial is specific to AWS or if you're just hosting File Cloud
- 00:32:31externally in some other cloud that's publicly accessible,
- 00:32:34it has a public IP address.
- 00:32:36We want to get that sucker a domain name and enable ssl.
- 00:32:39Now for that I'm going to assume that you already have a domain name and if you
- 00:32:43don't already have one,
- 00:32:44I've got other videos that'll show you how to get a domain name pretty cheaply
- 00:32:47and pretty awesomely. And you're gonna wanna set that up with CloudFlare.
- 00:32:51These are two prerequisites I'm not gonna walk you through.
- 00:32:53So buy a domain name and set that domain name up with CloudFlare using it as
- 00:32:57your name server. Again,
- 00:32:58I've got videos somewhere around here floating around that'll show you exactly
- 00:33:01how to do that.
- 00:33:02Now we'll start with our config and CloudFlare here in CloudFlare.
- 00:33:05We're gonna go to the DNS settings of our domain.
- 00:33:06Go to records and we're going to add a new record. This will be a sub domain,
- 00:33:11meaning it's gonna be network chuck.com, but it'll have something before.
- 00:33:14So file do network chuck.com. I'm gonna call it Hack well files.
- 00:33:19And then we'll point that domain to our IP address in Amazon or Leno or wherever
- 00:33:23you're hosting your uh file cloud server. So I'll go back to aws,
- 00:33:27grab that public IPV four address right here, copy and paste that right here.
- 00:33:32I'll keep the proxy status enabled and I'll click save.
- 00:33:35So now hack well files.network chuck.com will forward to my file cloud
- 00:33:40server. But that's just half the story.
- 00:33:41We now need to set up our file cloud server to believe that's its new name.
- 00:33:46That's where you can find it. Now I do have a link to File Clouds guy below,
- 00:33:49but I wanna walk you through it real quick. First,
- 00:33:51we'll create a CSR request for File Cloud.
- 00:33:53Now if you've never done something like this, get a certificate signed for ssl.
- 00:33:56It's pretty cool to walk through this and learn it right now.
- 00:33:58I struggled with this so much in the beginning of my career, I'm like CSR, ssl,
- 00:34:02what is that? To know this now is so powerful. So anyways,
- 00:34:06here what we're gonna do, we're gonna use this command right here,
- 00:34:08which is open SSL to generate a csr.
- 00:34:11You do wanna be logged into your Amazon e C two instance,
- 00:34:13the terminal to run these commands. I'm gonna paste that right now. Open ssl,
- 00:34:17let's go. It's gonna ask you to do some things like where do you live us,
- 00:34:21the country Code State, Texas City Dallas Company Hack.
- 00:34:25Well now for common name, this is where you wanna put your url.
- 00:34:28So it'll be hack, well what did I call it again? I don't even remember.
- 00:34:33Oh Hack Well files. Hack well files do network chuck.com.
- 00:34:38That'll be your common name. Your CN email address.
- 00:34:42Am I gonna do a password? Keep going and it's done. Now here if you type in ls,
- 00:34:47you should see a server CSR and a server key created that csr.
- 00:34:51We want that sucker. We're gonna cap that server file real quick.
- 00:34:54Type in cat server dot csr, there's our certificate request right there.
- 00:34:59Leave that there, we'll come back in a minute. Let's go to CloudFlare here.
- 00:35:02I'm gonna navigate over to the SSL TLS section on the left and go to Origin
- 00:35:06server here.
- 00:35:07I'm gonna get my certificate signed by CloudFlare and then I'm gonna download
- 00:35:10that. So I'll say create certificate.
- 00:35:13I'm gonna say use my private key in csr.
- 00:35:16Right here is where we'll paste our certificate.
- 00:35:18If we get back to our terminal here, we're gonna grab this, copy it,
- 00:35:21paste it right here. Now here for host names.
- 00:35:23I'm just gonna be very specific and say File hack,
- 00:35:26well file z network chuck.com and then click create.
- 00:35:31Now leave that page there.
- 00:35:32We're gonna step forward into the next steps in our terminal.
- 00:35:34I know this is kind of involved and other solutions are kind of automatic,
- 00:35:37but it's fun to learn this manually. It is.
- 00:35:39So first thing we'll do is we'll use the A two e n mod command to enable SSL and
- 00:35:44Apache. So we'll copy that command, go to our Ubuntu, paste it there,
- 00:35:48done next step. Now getting back to CloudFlare,
- 00:35:51we're gonna grab this certificate file or this text. We're just gonna copy it,
- 00:35:54get back to our terminal and we're gonna make a new file real quick.
- 00:35:57We're gonna say nano server ct,
- 00:36:01we'll paste that certificate in there, control X, Y enter to save,
- 00:36:06good to go.
- 00:36:06And then we're gonna copy and paste these commands to make a new directory in
- 00:36:09Apache. We'll paste that first one.
- 00:36:11We'll copy our certificate to that folder and then we'll copy our server
- 00:36:16key, our private key to that folder. And then one last thing,
- 00:36:20we gotta modify our web server config and Apache to use this new certificate.
- 00:36:24So the file location is here. Just gonna grab that.
- 00:36:27I'm gonna type in nano edit that file.
- 00:36:30I'm gonna do a pseudo before that just in case.
- 00:36:32We're gonna change our virtual host right here from 80 to 4 43.
- 00:36:35And then just under document route we're gonna add server name
- 00:36:41and then put in the server name that you set up.
- 00:36:43Mine was hack well files.network
- 00:36:46chuck.com.
- 00:36:49And then just under that we're gonna copy the SSL engine on paragraph right
- 00:36:54here, paste that right there, make sure everything's lined up nice and neat.
- 00:36:58Then we'll hit control X Y enter to save and that should be it.
- 00:37:02All we'll have to do now is restart Apache,
- 00:37:04which I'll just copy and paste that command and we should be good.
- 00:37:06So now in theory I should be able to go out to hack well
- 00:37:11files.network chuck.com and that should take me right to my file cloud server
- 00:37:15SSL and everything. And it totally did. That's awesome.
- 00:37:19I'm gonna get log into the admins one once more.
- 00:37:22And there's one thing I wanna change. It says invalid server url.
- 00:37:25You wanna change that cuz as important as you share your files and everything,
- 00:37:29they'll have a an URL that people can access it with.
- 00:37:31And if it's like 1, 2, 7 0 0 1, that's not gonna be great.
- 00:37:35So let's change that real quick.
- 00:37:36We're gonna go to settings here and here under server url.
- 00:37:39We're just gonna change it to https Hack well files.network
- 00:37:43chuck.com. It's gonna check it, make sure it's all good. Server's valid, save.
- 00:37:48Now before I show you the awesome network share feature,
- 00:37:50I'm sure you're wondering, Hey Chuck, I did an on-prem install.
- 00:37:54How do I handle SSL and CloudFlare and all that?
- 00:37:56I would recommend using CloudFlare tunnels. It's called Cloud Flared.
- 00:38:00And I have a video right here of how to set that up for any service within your
- 00:38:03home.
- 00:38:04It basically allows you to open up a very secure tunnel into your house through
- 00:38:08your firewall and access all your stuff anywhere.
- 00:38:11Easily do that here with File Cloud.
- 00:38:13I'm not gonna walk through it right now cause this video's getting so long,
- 00:38:16but it's not very, very crazy different from what we've been doing here.
- 00:38:19Now let me show you real quick this cool server share thing.
- 00:38:21So first I'm gonna step a new user. Um, this can apply to anybody anywhere,
- 00:38:25whatever installation method you used, I wanna set up a new user.
- 00:38:28I already had one for Chuck. I'm gonna add a new one. Add. I'll say Bernard.
- 00:38:32Bernard and I'll create that user. Awesome.
- 00:38:35Now I'll open up a new incognito tab,
- 00:38:37log in hack well files.network chuck.com.
- 00:38:41It's so cool, this works flawlessly. Get logged in as Bernard bam,
- 00:38:45I'm a new user. I got my own cloud ready to go.
- 00:38:47Now I can use File Cloud for my web browser anywhere all the time.
- 00:38:50And it's amazing. But the apps are what make it shine.
- 00:38:52So here on my dashboard I have the option to install mobile and desktop apps
- 00:38:55right here. I'm gonna click on that. Now here we have a few options.
- 00:38:59This first one,
- 00:38:59file cloud sync is what you would see for most Cloud Drive things.
- 00:39:04It'll store your files both on your computer and remotely and they'll sync back
- 00:39:08and forth. Pretty cool. But the drive is what's really neat. ,
- 00:39:12let's try that out now.
- 00:39:14So I'm gonna click drive and I'll download this for Windows. I'll launch it,
- 00:39:17install it. You know how installations work. Pretty basic. I'll restart later,
- 00:39:22no big deal. And I'll launch my file Cloud drive.
- 00:39:25It's kind of hard to say File Cloud to get started. I'll put in my information.
- 00:39:28So I'll server's already been set up. I'll log in. You can set a download limit,
- 00:39:33which is cool. And then you choose your mount. So I'll mount it as,
- 00:39:36let's just say L and bam, I'm done. Start using drive.
- 00:39:40So it gave me a little recent activity of how it mounted and it's, it's mounted.
- 00:39:43So check this out, take a file here, put it in my files, it's there.
- 00:39:47And here are my drive, map drive. There it is.
- 00:39:49Now what's cool about this is I can actually share it from here.
- 00:39:52I'll right click that. Click on more options. File cloud, share link.
- 00:39:56I can just change my share options right here within ,
- 00:39:58my stinking file explorer. That's pretty cool.
- 00:40:01I can say expires tomorrow. I can restrict it to one download. That's,
- 00:40:06let's do two downloads and then I'll do a password and then I'll copy that link.
- 00:40:10I'll get email notifications and people use it. Let's test that out real quick.
- 00:40:13There's the password. Download the file.
- 00:40:16So that feature I don't see anyone else doing. It's pretty cool. So File Cloud,
- 00:40:19community edition, you're gonna have a great time. It's really fun.
- 00:40:22Set this up and let me know how it went for you. Comment below.
- 00:40:25And also if you're a business or maybe you're thinking about pitching a new file
- 00:40:28solution to your company,
- 00:40:30the enterprise features are what kind of set File Cloud apart from everybody
- 00:40:34else. Like I said, educational institutions, financial government,
- 00:40:37all that kind of stuff. They use this to manage their data.
- 00:40:41It's like here in governance, which is a very scary word.
- 00:40:44You can pretty much do anything you want with your data monitor every bit
- 00:40:48, like you can do legal holds, data leak protection.
- 00:40:52You can classify your content, you can put in retention policies,
- 00:40:56smart D L P, an entire compliance center for gdpr, hipaa,
- 00:41:01I T A R, . It's all kinds of stuff. You can do workflows if this,
- 00:41:05then that on files. I mean look at the triggers I have for these workflows.
- 00:41:09The file is downloaded, the comment is added. All these things,
- 00:41:12I mean every little thing you can control.
- 00:41:14And that's killer for a business and an enterprise,
- 00:41:17not to mention you can integrate it with everything. Active directory,
- 00:41:19single sign-on. You can implement antivirus scanning on all your data.
- 00:41:24I mean looking at the third party integrations you can do, of course antivirus,
- 00:41:27Salesforce Seam, reCAPTCHA, McAfee, Microsoft Teams.
- 00:41:31You can even enable it. Edit your files in Microsoft Office,
- 00:41:35like if you're in the portal, just auto open. Now that was File Cloud.
- 00:41:39And I'm now realizing that this video is so super long because there was
- 00:41:44a lot we had to cover.
- 00:41:45And I think File Cloud is amazing because they focus on one thing and they do it
- 00:41:49great. And that's just file sharing and data security.
- 00:41:52And they do that for enterprises and they can do it for you in your house.
- 00:41:56That's pretty cool. So that's the enterprise solution.
- 00:41:58Now let's move on to more of the home lab open source solution and that's next
- 00:42:03cloud. Now next cloud is pretty popular already.
- 00:42:05You've probably already heard of Next Cloud and setting it up is not too bad.
- 00:42:08Now my favorite way to install Next cloud is through Docker.
- 00:42:11They make it really easy and you can find Next Cloud in a lot of places.
- 00:42:14By the way, you can run on your Sonology and nas.
- 00:42:15You can integrate it with True nas. So it really is a great home lab solution.
- 00:42:19So let's try the Docker install real quick. Now,
- 00:42:21next cloud can only be installed on Linux-based systems. Again,
- 00:42:24file Cloud is the only one I know of that can go on Windows. So real quick,
- 00:42:26in Linux we need Docker. Let's install it, make sure we have it.
- 00:42:30We'll do a pseudo a P T update, not update, update. There we go.
- 00:42:35And then we'll do a pseudo APT install docker.io y.
- 00:42:39Now we go grab there Docker command, which you copy and paste this code.
- 00:42:43It's a simple docker run command, paste it and run.
- 00:42:46It's gonna pull all the necessary images doing its thing. And that's it.
- 00:42:49Go to https, your IP address or your domain name, whatever it is,
- 00:42:53port 80 80 From here you got a weird password thing.
- 00:42:56You wanna copy this little phrase here. Kebab maturity,
- 00:43:00paste that password in there for the next cloud A I login. And by the way,
- 00:43:04the reason you can't do anything else here is because they didn't do a dash D
- 00:43:07for running it as a Damon for Docker. By default, it's kinda annoying.
- 00:43:10Now depending on your setup,
- 00:43:11you may wanna do a reverse proxy and refer to the reverse proxy documentation.
- 00:43:15I'm not gonna refer to that here again because ,
- 00:43:17my video is already so stinking long.
- 00:43:19But right now I'm running this on LE Node and LE node's already public.
- 00:43:22And I'm just gonna use the reverse DNS address I have for Lin node.
- 00:43:25I'll submit that as the url.
- 00:43:27Now next cloud is pretty cool because they have a ton of features,
- 00:43:30like almost too many. So they uh, integrate with next cloud office.
- 00:43:34They call collab. You can do next cloud talk. I don't wanna do that.
- 00:43:37I'm not gonna do the office thing either. Turn that off,
- 00:43:39save changes and then I'll download and start the containers.
- 00:43:42It's kind of weird how they do it where it's like you install the installer as a
- 00:43:46Docker container and then and then it,
- 00:43:49the Docker container installs the other Docker containers. It's really strange,
- 00:43:52right? So that's what it's doing right now. We'll wait. Okay, it's almost there.
- 00:43:57The yellow means they're starting. So we're gonna wait for that to finish.
- 00:44:00Now also, while we're waiting,
- 00:44:01the other cool part about Next cloud is you can install it on pretty much
- 00:44:03anything including a raspberry pie. They have Next Cloud Pie,
- 00:44:06which will work pretty well. Now it won't be blazing fast,
- 00:44:09but it does its thing.
- 00:44:10And also one thing you'll want to note with Next Cloud as I'm watching the
- 00:44:13startup is that it's very like online service,
- 00:44:16meaning it needs to have an internet connection pretty much all the time to
- 00:44:18work.
- 00:44:18If you wanna like keep it closed off on your network without any connection,
- 00:44:22I don't think it works well with that. I could be wrong,
- 00:44:24but I was reading some documentation and that's what I found. But anyways,
- 00:44:26it looks like mine is done. Um, there's my admin user name and then password.
- 00:44:30I'm gonna copy this password real quick. I'll click on open my next cloud.
- 00:44:34Let's get logged in, get a nice little graphic meeting. This is pretty neat.
- 00:44:37And notice they try to be, they try to be everything right? Um,
- 00:44:40you can like have a contacts and and calendar and and do
- 00:44:45notes. And you've got tasks like I like what they're trying to do,
- 00:44:49but also I hate it because it's like I just wanna manage my files and you're
- 00:44:53making this really complex. But files they can manage and much like File Cloud,
- 00:44:57they have apps for everything and they do have a drive thing,
- 00:45:00but they don't do that Mapped drive thing, which I love.
- 00:45:03Now one of the big differences between next Cloud and File Cloud will be the
- 00:45:06limitations. Next cloud being an open source solution and much more, you know,
- 00:45:11targeted toward home users. They pretty much give you everything,
- 00:45:15all the features. So unlimited users, you can add a bunch of apps,
- 00:45:18like lemme see all the apps, you can add all the integrations. It's pretty cool.
- 00:45:21And if you're a tinkerer and you love to just add a bunch of things to your
- 00:45:24stuff and troubleshoot things for a while, uh, this will be fun.
- 00:45:28And with File Cloud, you're not gonna see all that file Cloud.
- 00:45:30You actually have a limitation of five users.
- 00:45:32So if you're gonna be doing more than five,
- 00:45:33next cloud might be the solution for you. Unless you're a business,
- 00:45:35then you may want to really, really consider File Cloud.
- 00:45:38Now Next Cloud does have similar sharing features.
- 00:45:40When I wanna share a link I can control, like can they edit it,
- 00:45:43I can hide the download, but I can't limit the download.
- 00:45:45But I can do things like password protect and set expiration dates,
- 00:45:48even though I'll note Hi buddy. So pretty much the same as File File,
- 00:45:51but you can't limit the downloads, which I don't think anybody else does.
- 00:45:55So I know this video has probably been so long. I'm exhausted.
- 00:45:58I've been recording for hours.
- 00:45:59But I hope I encourage you to possibly kick the triad to the curb.
- 00:46:04Now I still use Google Drive and I use Dropbox. I use 'em as backup. For me,
- 00:46:08I'm comfortable with that decision cause I like my data being everywhere.
- 00:46:12I don't care if they have my videos, I make those public anyway.
- 00:46:14I just want them backed up in as many places as possible.
- 00:46:17So I use a little bit of everything. But now for personal things,
- 00:46:19no I don't put everything up there. I like control of that. So for you,
- 00:46:22you may want to be very much in control of your personal data if you're a
- 00:46:25company,
- 00:46:26even more so cuz you may have a ton of regulations where you can't put your
- 00:46:29stuff up there. So you have to have that control.
- 00:46:31So solutions like File Cloud specifically can help you with the business side of
- 00:46:35things.
- 00:46:35And if you're a person who has that business level of security and fantastic
- 00:46:39file sharing file cloud will be for you.
- 00:46:41And if you're more of a fan of open source, you like a product that does a lot,
- 00:46:44next cloud is really fun too. So I'll leave it up to you,
- 00:46:47whichever one you think,
- 00:46:48but I just want to make sure you guys know there's an option besides going with
- 00:46:52the triad. It does require a bit of IT knowledge but of tinkering.
- 00:46:55But we covered that here in this video.
- 00:46:56And please let me know in the comments what you think,
- 00:46:58what do you use for file sharing, how do you keep your stuff safe?
- 00:47:01That's all I got. I'll get you guys next time.
- cloud storage
- File Cloud
- NextCloud
- data security
- file sharing
- cloud computing
- personal cloud
- AWS
- Docker
- enterprise solutions