This is my OWN cloud | File Browser VM inside Proxmox

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone and thank you much for watching this is me Mr P let's carry on setting up proxmox server on my very old laptop in this video we will set up our first virtual well technically it's not the first virtual machine first virtual machine was the true Nas scale and this video is going to be second virtual machine which I will call Cloud well you can name your virtual machines any name you want mine is going to be called cloud and that virtual machine will run Docker and the docker will host the container by the name of file browser you can think about file browser's very simple alternative to Google Drive or OneDrive or Dropbox in the past I was using the next Cloud for quite a while but then lately I started to discover a lot of things that I don't like about next cloud and one of them was the next Cloud was very picky if I was uploading a bunch of files at the same time thousands of documents images Etc at the same time since then I moved to file browser which is very simple for me and it does the job what I need it just basically access my files from outside my home network and as will be set up and how to set this up I'll do in upcoming videos in this video just a simple set up a next file browser Docker inside a virtual machine and Link our true net ZFS data set to a users with the restrictions of how much space they can use I do have a dire Pi template ready here so right click and choose clone and I'll give a name of or ID number 201 name will be Cloud VM I'll change that to say full and rest of the stuff oh yeah Source I need to make sure it's launched on local and explain to you why I don't do put Source onto ZFS in a minute and then everything else it stays the same so click close so while it's doing I'll explain why I'm doing this the virtual machine Host Drive Virtual Drive will be located on my internal SSD which is inside the laptop and the reason for that that if I will move this main C drive speaking Windows terms to a ZFS and then I will Mount another part of ZFS as additional storage both of them basically serving the same VM will cause I O errors and basic VM will crash this is not a big deal and it's not happening with the much faster systems but because I'm using a laptop and two USB external drives obviously this is a big problem so that's why my cloud VM main Drive is located to my local storage which is SSD and not going to actual VM disks Which is my ZFS hosted by trunest so I do have a virtual machine ready so I'm just gonna go and start that virtual machine because I need to make sure it's up to date all the packets are upgraded updated and everything is sticking nicely so with diet pios starting for very first time since the Clone completed and you're just gonna quickly check if it's IP address 20 and you hop straight away into turmox to connect via termex as uh using the terminal for writing commands inside the on the decks inside the browser is very very messy so that's it I'm logged in just a quick uh check if everything is upgraded and updated by running app update and then to explain two ampersands apt upgrade Dash y all done let's run Docker do I have a dock on this one yeah I do have a Docker so everything is perfect next thing um we need to start setting up ourselves the the where the docker compose file will be located Etc actually next thing what I need to do is make sure that the host name is changed to what I like so I'm just going to delete all that I'm going to put cloud YT so for cloud and YouTube I'm just going to exit all that and reboot the system just quickly get myself a host name updated I've got my VM and restarted and right now I do have a hostname change to Cloud YT now let's navigate into the mount fold amount then diaper user data check what's inside everything's good change the user to diet pi make directory called Docker CD into that folder inside the docker make directory file browser and inside the file browser I will put in file called Docker Dash compose com pose.yml using Nano command and what we're going to do we're going to paste this script which will initiate the container this is the one we're going to use so if I'm going to go down to find the actual command so I'm going to just right click on that copy and paste into the terminal and there's a big chance it's going to be a big mess oh no actually it worked that's great because usually this comes all into one line I'm glad that this is all looks like that a couple of things we need to change user I know that it's going to Auto detect but I like to do that manually so put one thousand one thousand on both ends so that means that I'm gonna give a permission to this container with a dire Pi user will be main user of this container that makes sense so read and write permissions will be for ID number user ID number 1000 and group ID number 1000. next thing I can see there's a couple of folders I need to create so first is data where the data will go data is basically where all the users will store their files that needs to go into Mount slash diet Pi underscore user data and then I'll put the word Vault for example oh now actually let's put data leave it like this and configs I will delete all that and I'm going to say dot slash config and environment I'm don't really need that so we can put hashtag to disable that and Port 443 which is https I'm just going to change that to be 8080. so that's it we're going to run a Docker compose file version free we're going to create service by the name of file browser we're going to use this image we're not giving any tags at the end so that means it's going to be most recent one downloaded user will be one thousand one thousand ports will be 8080 volumes is going to be Mount dire Pi user data data this is where the stuff will be stored for the users and Dot slash config is this is where the config will config files will live and restart always it means Docker will try to keep this container always running even when the image restarts container will restart automatically Ctrl X took exit just before I press y to write and enter to confirm and now if I will cat this file as you can see there is dot config here so if I list the content of this folder I just have compose so I need to create a folder under username diaper and mkdir let's click on here MK there come on my term Max apparently froze okay I'm back with a little problem with the turmox anyway I'm back and right now we can do cat and then use the file so as you can see that is dot config I need to create a folder inside this folder file browser so list that I don't have a fold at the moment so as you diet pi to make sure I'm under diaper user data or die apply a user MK do config and now if I list that I do have compose file and a config folder and compose file I wrote dot slash config that means current folder one inside and that is why I created a config file folder inside file browser folder hope that makes sense but with the amount diaper user data data that's the one I need to create so I'm going to go inside mount diaper user data enter and inside here I will create a folder called data and this is where all the stuff will live for the users that's it I do believe everything is ready so I can go inside mount diaper user data Docker slash file browser and now just run Docker Dash compose up Dash D press enter and the docker compose y because it will have pseudo okay pseudo two estimation marks that means run previous command under sudo and now Docker compose starting this container for me it's very small container as you can see is done okay so let's go and check IP address 120 ending with 20 and let's navigate to this container and entering a p address following by column 8080 it should open this up for me default username is admin and a password is admin here we go and just before everybody Burns their eyes off I'm gonna go into settings global settings and on the light I will change that to dark and click update press the 5 to refresh and here we go dark mode is on so that's it I am inside the setup inside this file browser at the moment I'm logged in as a root user so that means I see everything I will see in here all the user folders so if they use it if I create five users I will see all the user folders here we need to create a user first so we're going to go inside the settings make sure that on global settings we delete this so we don't want to have slash users we just wanted to have slash and auto create user the home directory I'm going to take that on and I put slash and delete users out of it scroll down find the update button not the this update button the one before so this update Updates this block this update button the updates this box so we just click on this one it says setup updated on the bottom right hand corner you can see because my face is hiding it and now click on the user management click new and obviously the first one is going to be my myself Mr P create a password that is simple password for me just make sure that I even entering a simple password and that's it and I click save so that's it uses created if I right now go back into oh actually I'm going to log out enter my username enter the password log in I see nothing but if I'll go inside the terminal and I'll navigate to Mount diaper user data and then go inside data inside data I see a folder called Mr P and this is where the user left this is a user folder so if you're going to have for yourself let's say your friend Jeff Mike Billy they're all going to be like yourself Jeff Mike video folders showing up here if I will log out and log back in I see the folder because I have admin as I said oversees all the folders and I can see right now it says free storage 7.8 gigabytes uh it's not good it's not enough for the cabin multiple users sharing just eight gigs of data so we need to mount more stuff to this place this is where our true net ZFS data set comes in if I click on the storage I'll have this data set created in a previous episode I'll leave a link to that episode description below but for now I have a data Circle proxbox and I have VM disks data set here so if I click on here I'm going to create data set under VM disks and I will call This Cloud YT scroll down make sure that I have this selected to Samba SMB click save it's going to ask me to update ACL permissions which I need to do that as soon as ACL permission type app showed up you just click go to SLC ACL manager I'm gonna put word deck so this is the user created in our episode while I was showing you how to set up true Nas I'm going to see here that's fine text has access to this click update Access Control list or save ACL and wait for this to finish once that is done it's back to a storage page if I'll go right now into VM disk I see Cloud YT showing up I'll click on the cloudway T free dots at the end click add data set and I'll put this name Cloud Mr P actually and Mr P Dash cloud scroll down click generic SMB save and do the same thing as we did with the cloud YT data set which you need to go and update to ACL certificate as soon as ACL got updated I'm back into storage page now I need to click on shares and the windows SMB I'll click add and on the right hand side I navigate into the location where I just created Cloud Mr B Mr B Dash Cloud things I click on that scroll down and click save and now this data set has been shared using SMB I can go back into turmox and now inside here I need to write a command under user sudo so we change back to sudosu under user root sorry and we write diaper dash Drive underscore manager and select add network drive Samba 178 Dot and I forgot my trueness server IP address which is 156 so I'm going to say one five six enter what folder I'm sharing I'm sharing Cloud Dash and MRP and this is the name of the share that I created which is this Mr P Dash Cloud which is going to be located into this location which is this is the one Cloud Dash is it Mr P Dash Cloud yeah Mr P Dash Cloud I'm typing wrong way around so it's going to be mrp-cloud enter what's the user for the samba decks this is the one I created previously password will be I think is that this is the one and where I want to mount this so this is going to go into amount slash diet Pi underscore user data data Mr B and this is where the file browser Container Stores the user Mr P files so I'm going to say okay on that and if it is not done before dial Pi OS will go and fetch in the load sift utils and SMB client and we'll set everything up for the dire PIV virtual machine to be able to mount SMB files this will take a couple of seconds or so anyway I'll cut now and I'll come back when this is done if you see this message ever that means the location of a soundbar is set up correctly mounting point is set up correctly and credentials to log into smb's share is done correctly and now I'm just going to click enter this back back that actually go back inside a diet by driving method manager as you can see here it says capacity to 1.7 terabytes of storage has been mounted if I go back so right now that means that if I go to the browser and I will again into my file browser let's look out of here if I look in with Mr P this is still going to show that I have storage 8 gigs but actually all the files I'm dumping in here it's gonna go directly into my ZFS mirrored data set which is two terabytes of storage or they'll hear about and that's it my Mr P user has like I said two almost two tervisor storage but let's say your friend Jeff phone and said oh can you host can I have a piece of your cloud storage please and you say okay no problem so go back in here and say login as admin as you can see I oversee Mr file like I said so you go in settings user manager create an user and let's call this Jeff give Jeff a password and click save but don't tell Jeff password yet because you need to set up your storage location if I go back into my files right now I see Mr P and Jeff Files created Mr P already I've created Jeff we just did now now I'll go back inside my true Nas under storage I will go all the way back to my VM disks Cloud YT I'll click on the cloud YT and I say I want to create a data set for Jeff so we're going to call this Jeff Dash cloud and now I need to click Advanced options if we click Advanced options there is a field called quote quote for this data set and this is how much storage you allowing Jeff to have inside your Cloud I say I'm generous today I will put 10g so it's 10 gigabytes the one on the right it means quote for this data set and all children that means that a once your ZFS tuna starts doing a snapshots the storage that the snapshot will take will add up to the Jeff's quart quarter of the usage so if you put 10 gigs here whichever comes first will basically get limited so let's say he uploads six gigabytes of data but six gigabytes of data it has four gigabytes in the backups that's equals 10. six plus four equals 10 so he used it so I would remove this when I leave nothing here but I will leave 10 gigs here and I obviously everything else is leave it as default scroll down all the way and generic change to SMB and click save and now obviously again ACL permissions needs to be updated and once that's done you need to go into the shares on the left hand side and then obviously share that data set via SMB so I have ACL updated and as you can see right now I have Jeff Dash Cloud which has been SMB shared all over the network now we need to go back inside the turmox and now running a dire Pi Dash Drive underscore manager I need to select add network drive smb178156 the location of the file I wanna Mount is called Jeff Dash cloud user will be Dex password for the decks and where this is going to go now it's going to go into say diet Pi underscore user data data Jeff enter and now you go SMB has been mounted if I go back it tells as you can see here Mr P has two terabytes of data that he can go and move around but only Jeff has 10 gigs of data that is basically limit 10 gigs of normal and now if I exit that close it and now you can tell Jeff to log in with his username which in my case I just done like this and now Jeff can upload files in this place and start uh start creating all the things all the things he wants for code and Etc print here we go I've done that save and that's it and just created a file but here we go and let's see another friend comes in says oh I want a bit of your information of your Cloud um you can create another data set and another data set and Link them to that virtual machine and they all gonna be working fine and because the cloud VM virtual machine main Drive is located on SSD is not going to cause any i o errors when VM needs to function at the same time the mounted ZFS pool needs to function if you sending both for the the virtual machine main drive and your date is located in one single thing especially on this slow old laptop and USB attached USB external storage devices this is definitely going to cause you the i o errors anyway this is how you create your own cloud and you attach your uh create your friends accounts and give them access to the files and do close files and Etc and whatnot in upcoming videos I'm not sure if it's going to be probably the next one and one after I'll show you how we can make this to be publicable Public Access that means that anywhere anyone in the world will be able to access this and use it so um obviously with a lot of security we're going to have to put in place to make sure that there's no one willing nearly just comes in and started uploading torrents and whatnot anyway thank you much for watching I hope you're enjoying this series and I will see you in the next one goodbye
Info
Channel: MRP
Views: 11,895
Rating: undefined out of 5
Keywords: proxmox, proxmox on old laptop, how to proxmox, file browser, docker compose, docker, your own cloud, host your own cloud, google drive, microsoft onedrive, dropbox, home server, home lab, self-hosted
Id: XyjX6BLJAfw
Channel Id: undefined
Length: 19min 36sec (1176 seconds)
Published: Tue Nov 29 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.