NextCloud Setup - 200GB Free Cloud Storage on Oracle Cloud

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today we are setting up next cloud so next cloud is a great free alternative to using something like google drive uh microsoft onedrive icloud plus those kind of things this is a free open source alternative now we are going to be hosting this for free as well so over on oracle cloud they have a free tier oracle dot com cloud slash free you can get up to 200 gigabytes to host your applications so this is a great way of making use of that 200 gigabyte allowance so i'm going to be setting up next cloud on here so i've got my next cloud running i've got my test domain here id spot xyz and i'm running next cloud on a sub domain so cloud ideas.xyz is where my next cloud is running so this allows me to actually run a website on the main root domain here so on ids.xyz i've got wordpress running here so running two applications on the one server on my oracle cloud i'll show exactly how i did this and i'm actually managing all this through hestia control panel so i've got hestia control panning running on here as well so all these three things hestia wordpress and nexcloud i've got them all set up here you'll learn exactly how i did all of this during the tutorial and again all the commands that i use to set this up over my blog ideas.comma you so check the description for that link you can just copy and paste everything i do during the tutorial into your own system and get it all running exactly as i have here so if all this sounds interesting then keep watching [Music] all right i'm in my oracle cloud dashboard i'm on the get started tab here i am using a free tier account i've got this purple header at the top here make sure you've got that this makes sure that everything you do on your oracle cloud account is going to be free you will never get charged unless you intentionally upgrade to a paid account so there's no way you can accidentally choose an option that's going to cause you to lose money so this is always going to be free as long as you've got this up the top you're all sweet so from here what we do under get started we scroll down to create a vm instance let's give our instance a name i'm going to call it next cloud for today and we're going to choose our image and shape so we click edit there and our image we're going to change that and we go with canonical ubuntu 2004 there select the image and our shape this will actually work fine the standard amd you can actually click change shape there is a more powerful option ampere and we click the standard a1 flex so we get one oracle cpu with six gigabytes of memory you can actually increase that you can have up to four and 24 gigabytes of ram but this will actually run just fine with one and six so i'm just going to use this for this demonstration select the shape next card is actually not that performance um intensive in terms of how much resources it needs so it'll actually run fine on that amd if you're not able to access one of these ampere because sometimes these are out of capacity so you can use the amd if if this one's not available so these look fine um we want to create an ssh key so my preferred way of dealing with ssh is using putty so putty.org you can get the free copy of putty from there and we use something called putty jam that comes with putty to create a ssh key all we do is load up putty jan generate and wiggle the mouse in there to generate our key we've got our key there we can go ahead and save that in all right so we can save our public key i'll call that ideas.pub and our private key you can add a password if you're on a shared computer you should probably add a password but if you've got a private computer just save it on there so i've got my private key my public key saved now all right now our actual public key is here we can actually copy this and paste it into oracle there so i'm going to copy that make sure you've got it all highlighted properly there go back here and we paste our public key choose that one there and just paste that in there we go um the only other thing we might want to do is customize the boot size by default you get 46.6 gigabytes on your drive there so we can increase that because actually we get 200 gigabytes to use on our on our free tier account so we can increase that i might just bump it up to 80 for this example but as long as you're under 200 there you'll be all good so that looks all good we can go ahead and create so while this is creating you'll get a yellow icon here let's say it's provisioning so come back in about five minutes and this should be good to go we do have our public ip address this should pop up about 30 seconds or so into the process so we can actually copy that while we're waiting for this to provision we might actually set up our dns so i am using a domain called ideaspot xyz i put that over on namecheap for this example you're just gonna need to use your domain provider's dns manager so in namecheap you'll find that under your domain and advanced dns but other dms providers are pretty similar and we're going to add some new records here so i'm going to add an a record i'm going to point the root and i'm going to point that over to our ip address that's our ip address that we got from oracle cloud there so we tick that one on there i'm going to make a few other records as well for this because we're going to need one for our control panel i'm going to use hestia control panel to set this up so i'm going to call the hcp hes2 control panel point that to the ip address as well and because we're going to be setting up next cloud today i'm going to call mine cloud you can call that whatever you like but cloud i think sounds nice for next cloud again point that to our ip address so these are a records you can name those as you please but i'd use these for my example and one more that we need is our cname record for www i'm going to point that to my domain here ideasbot xyz in this case so your domain goes there and these are the only records we're going to need for this tutorial now just for those of you using cloudflare it's going to be a little bit different to get your dns and your ssl set up i have made a tutorial where i use hestia and cloudflare before i put that in the description so you can make sure you get your dns and your ssl all set up properly but for most of us just using that through namecheap or godaddy or google domains it's going to be something like this all right back on our oracle cloud dashboard we i've got green there so our instance is running we can actually go ahead and connect to our ip address using the username ubuntu here so let's go ahead and do that i'm going to use putty to do that so pati let's load that up and i'm going to connect to that ip address and we're going to be using ubuntu there at the ip address on port 22. i'm going to save this as next cloud demo that looks good and we save that in the other thing i want to do here is point over to our ssh key so we go down to connection and under ssh there we expand that and we want to call uh auth and then we find our private key that we saved earlier from putty so we just browse and get that key that we saved earlier so our private key there back to our session and we're going to save that again so that's all good so from here we should be fine we can click open here we can actually open this instance we click yes there and we should be able to log in to our instance awesome all right so this is our connection to our server we're going to need to run a few commands here over on my blog you'll actually find the commands so i'll link to that in the description but you'll find uh all the commands here on my blog so i'm going to change to super user here and that's our first command so let's do that you can actually copy um and right click to paste into this window um so sudo su dash changes to the hash mark that we're running as root now the next one we download our installer script so that's a w get and we download our install script so right click to paste into that window there and enter and that downloads our script and now we actually run our script we're gonna have to customize the script a little bit to get this to work how we want so let me zoom in here a bit so i can show you what i mean okay so the first thing in this line we need to change is the email i've got admin example.com here we can change that to ideaspot class gmail.com for this example but put your own email in there um the password i've got example demo password there we'll change that to a nice strong password there make sure you've got a space for the next bit there and hostname hcp example.com in my case i've got hcp ideaspot xyz so those three things email password and hostname we're going to set that up so copy that once you've got that set up to your own settings and back in putty we right click paste that in and press enter to run this install script so this does take a little while so it's going to be checking for any missing dependencies and it will start installing hestia and all the other required software to run this thing all right so you'll get a message here saying it's going to take 10 to 15 minutes to complete which is usually pretty accurate i mean we'll come back and check this out when it's done what we can actually do in the meantime back on our dashboard we can head over to our virtual cloud network here and set up the ports that we need for hestia so click on that one there and then we go to our subnet here and the default security list so this is our ingress rules so by default you should have 22 i've got a couple extras here that i used on a previous tutorial but this looks all good for now we're going to add some more so click add here and over on that blog post i've actually got on my blog post the list of the ports we're going to need so this is the list here um copy those if you're using cloudflare there's a few extra steps there so make sure you follow that using cloudflare but for the rest of us we use the default list there we're going to paste those in there like that source cidr is 0.0.0.0 and tcp there we can put in a description there i'll call mine hestia for this add the ingress rules and this should add our ports in there with our description there so that looks so cool let's check how our installer is going in putty so this is still ticking away let's um come back when this is done all right so this looks like it's finished up here it says you must restart the system before continuing um the one thing if we scroll up a little bit here um you can actually get the admin url you might want to copy these so you've got your url and password actually highlighting these things in putty automatically copies them to your clipboard so you can go ahead back to notepad for example and just paste those in so you've got those handy but you can work this out anyway if you've kept your password and you should know your ip address so this this isn't too bad if you lose this but i'm just going to show you how to do that anyway anyway scroll down here we can restart the system by typing reboot and enter and it will say that and we just have to wait about a minute and this will reboot but we're not going to really need to go back in here so i can actually close this off and we should be able to use everything from the browser from this point all right so there's a couple ways we can get into our control panel now the first way is just through your ip address http on port 8083. if you copy that you can actually get to your dashboard you'll get an http warning because http is not set up on the ip address but you can you can go through advanced and proceed there the other way you can get to in my case i set up hcp id spot xyz so if you go to hcp ids.xyz or whatever domain you've chosen for your control panel there when we did the install on port 8083 you can get to your login screen like that so hopefully this one's working and you've actually got ssl already set up on that when we did the install so we can ins uh we can log in here with admin and next and we use the password that we used when we set this up so that'll be the same as our install password that we used when we ran the install script so we can log in like that and that will get us into our admin panel i can actually save this in here um to my google chrome here so this looks all good now first thing we want to do rather than running everything is admin we set up a regular user here so we want to set up a new administrator i'm going to be called alex alex email here ideaspot class gmail.com a nice strong password in here and that looks all good let's go ahead and save that in awesome great now we can actually log in as alex and we can start adding domains to our server now so i'm going to add one here we click that one and let's start with our next cloud server so i'm going to call this one cloud dot ideaspot xyz in this case go ahead and save that in that will create a web domain called cloud that looks all good we can go back here we should be able to see that we've got cloud is set up we can click the pencil here we can set up ssl let's go ahead and do that so enable ssl there and we're going to use let's encrypt to obtain ssl certificate that looks all good and advanced options i don't think we need to change anything else there that looks all fine we can actually click save there and this does take a second because it's going to issue that let's encrypt certificate so just be patient here and that'll be ticking away so that's all good we've got the tick there we can go back to web and hopefully we should see the tick for ssl green there so that looks all good we can go back into our web domain there we can actually quick install the apps here so here's all the popular web apps you can install on our control panel for this one we wanted to install next cloud on that cloud subdomain here so click setup there and we can set up a username and password here all right so i'm going to call mine alex nice strong password click install and then just wait for the next cloud to install i don't think this takes particularly long so again just wait for this to install perfect so we've got a green tick there next cloud was installed successfully we could head over to cloud um idea spot xyz there we should be able to hit our next cloud login screen here there we go so i actually had set that up as alex and our password we can log in so that'll bring us to our welcome screen here you can scroll through here it gives you a little bit of a an onboarding experience here you can actually get apps you can get a desktop app for windows mac linux mobile apps as well so you can access your next cloud through all your different devices there you can sync up your contacts and your calendar and all that kind of good stuff anyway start using next cloud so here we are we can go to our files and we can uh store files on our cloud drive like this um it's all pretty this is all very user friendly honestly but anyway a great way of storing documents movies uh music all that kind of good stuff and sharing it with your friends or co-workers or whatever this is i'm not gonna go into too much detail on using next cloud but that is all set up and working just fine over on that cloud subdomain there we can head back to our hestia panel here we can go back to web let's actually set up uh like a website on the main domain so on id support xyz let's set up a wordpress install on that one so um idea spot xyz we're gonna go ahead and save that in there that'll create a new web domain on that root the ids.xyz and we head back and we should get the display xyz there we can go to the pencil and again we set up the ssl same method enable the ssl use let's encrypt there and we can save that in again just wait because it does take a little bit of time to get that let's encrypt certificate on here and that looks all good now so if i go to i display xyz um what do we get we should get a holding page here construction page um our display xyz is working we've got the ssl working so this looks all good we can actually install apps on that root domain now as well so lots of different options here i'm going to put wordpress on i know a lot of you love wordpress who followed my channel here so again we'll just fill that out site name username email and password so fill those top boxes out so there we go click install and wordpress should install now here that really only took a few seconds so we can head over here and we should see if we reload this we should get a wordpress default install there we can actually go to admin panel wp dash admin there and we can get in with the credentials that we just set up so idea spot and i'll put my password in here and log in should be all good there we go uh awesome so we can go ahead and start using wordpress set up a website on that main domain use our next cloud on our cloud domain so everything should be pretty uh self-explanatory from this point there is one little setting i might tweak here so um i'm logged in as alex i might actually log out log back in as admin because i'll show you how to adjust the server settings in here let's log out and log back in as admin there we go so once we're logged in as admin you can get the gear icon here what i want to do is increase the php settings for wordpress so usually you want to have a bit more resources for wordpress so click configure there and we should have web server there and we want to click that pencil there on the web server icon here configure php so wordpress usually enjoys having a bit more resources here the upload max file size is way too small by default so you can bump that up as as high as you want really so i might make it 2 000 megabytes you might want to import a big formal website um import it into wordpress and do something like that for example so make that as big as you need it memory limit we can double that to 256. again you might want to increase these execution and input times i'm talking about the zero on there and save that in so that should be all good but um i think those limits are a little bit small by default uh post max size and again i might make that bigger as well anyway so just set those up as you need i think those defaults were a bit small but um i think from from here we should be able to be good to go in terms of running wordpress and running next cloud so hopefully all this has been useful and let me know what you think in the comments but thanks for watching i'll see you next time
Info
Channel: IdeaSpot
Views: 57,396
Rating: undefined out of 5
Keywords:
Id: iBODItwRFvU
Channel Id: undefined
Length: 17min 48sec (1068 seconds)
Published: Wed Jun 01 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.