Raspberry Pi OMV 5 NAS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] welcome to another video from explaining computers just over a year ago i built a nas a network attached storage device using a raspberry pi 4 and the free software open media vault since that time open media vault has been updated to the next version and the means of installing it on a raspberry pi has changed significantly and so in response to a lot of requests i thought i'd make this updated video right in this project i'm going to be using this raspberry pi 4 2 gigabyte model although you could use any raspberry pi 4 or indeed any raspberry pi 3 model a or model b this said a raspberry pi 4 will give better performance due to its one gigabit ethernet and usb 3 ports for openmedia vault we also need at least two drives one to install the software on and one or more on which to store data here openmedia vault will be installed on this sandisk endurance microsd card which happens to be 32 gigabyte although an 8 gigabyte or 16 gigabyte card would be fine our data drive will then be this one terabyte samsung cuvo which i happen to have available although any ssd or hard drive would be fine this said if you use a three and a half inch drive it'll need to have its own power supply as you won't be able to power it from the pi and also note you could use a usb thumb drive as the data drive for open media fault we'll also need a power supply for the pi or it won't work value obviously i'll be using the standard raspberry pi 4 power supply and to connect the ssd to the pi i'll be using this usb 3 to sata adapter finally to hold everything together i'm going to use one of these a terrapi kit with it with a fan which i've shown you on my channel in the previous video along with the new conversion kit which allows us to mount the ssd horizontally and so if we use the magic of filmmaking to put everything together all of our hardware is complete and we can move on to the software side of this endeavor right here we are on the website for open media vault and in the past installing open media vault on a raspberry pi involved downloading an image and writing it to a micro sd card however direct install images of open media vault are no longer available for single board computers and instead we need to follow the instructions that are available from this page and if we click on the ones here for the raspberry pi you'll find that what's documented here is very extensive indeed these are very good instructions but they might be a bit daunting for some users and so what i'm going to run through here are the most basic steps required to get open media vault up and running on a raspberry pi and which involve installing the light edition of raspberry pi os on a microsd card booting it up executing some setup commands and running an install script the method i'm about to show you is simpler than following the official instructions here on these pages but note that it does require a monitor and keyboard to be connected to the pi during the setup process as well as typing out a few fairly extensive commands so let's get started and the first thing we need to do is to download the light edition of raspberry pi os which we can do from this page on the raspberry pi website and if we go down here you'll find the light edition there we are there's raspberry pi os light which just means the addition of raspberry pi os without a desktop and so if i click on download here you'll see that actually i've downloaded it already so i won't download it again and what we now need to do is to write that image to a microsd card and you can do this in various ways but i'm going to use the software below etcher which you can download for free from this website and indeed i've got echo installed on this computer we just run it up here in the windows it'll come up and we can select our image there it is one we just downloaded or could have downloaded it's already picked up our micro sd card which is plugged into the computer i'm using here and we can click on flash windows may give you a warning like this it may not it depends how your system is set up if it does just say yes and elena etcher will get on with the flashing and verification process and there we are it's finished we must make sure we cancel on this message that windows will bring up and we now have a micro sd card to boot up on our raspberry pi right i've now inserted the micro sd card into the pi which is connected to power and ethernet as well as to a monitor and keyboard which we need for the initial setup process although after the setup process the pi can run headlessly so if we turn on the power the pi will start up do a first run configuration of raspberry pi os and eventually arrive at a command line locking prompt where we need to enter the default username which is pi and the default password which is raspberry now at this point we can proceed with the setup but just before i do that i'm going to increase the console text size so we can see things more clearly on video so you don't have to do this bit unless you want to have larger text on your screen but for me i'm going to enter this command which as you may guess will reconfigure the console setup and we need to select here the default of utf-8 and then the default again of guest optimal character set and then we want to select the font terminus which is the only font here which will offer a larger size and then finally we want to select 16 32 and there we are as you can see we've now got a larger font in our console so now we're back on the process of setting up open media vault and the first thing we need to do is to make sure raspberry pi os is fully updated so we're going to enter a sudo apt and a update like that and what that will do is to update the pi's repositories or online software sources and then when that is run we need to run a sudo apt upgrade and a minus y and this will update raspberry pi os and the minus y flag we entered means that the pi will automatically answer yes to any queries which come up during the update process next we need to make sure that the pi's network settings are all okay for open media vault by entering this command and like all the commands i'm entering here i'll include these in the video description this is the first of two commands that requires a little bit of typing going to make sure you get this absolutely correct make sure the space is in the right places all of that but if that's okay we can press enter and finally here we need to do a sudo and a reboot to make sure all of this has been implemented now with the pi having rebooted we could log in again using the username pi and raspberry if you remember those there we are and we're now at a point where we could enter the command to install openmediavault and the command is this one a very long command we've got to type in very carefully which will basically obtain and execute a script to do the open media vault installation so we work through this carefully we start with a w get like that and a space minus sign there and then it's now a capital o that is not a zero not a small error to capital o and then a space and a hyphen and then another space with an h t t p s colon four slash forward slash in my normal kind of way we then go to github.com like that now then got an open media vault and a plugin and a developers like that we've then got the forward slash we then got an install script another forward slash raw forward class a master forward slash install and then a space we then want a vertical line which you might have to search for on your keyboard i've got it there another space a pseudo a space and then a bash and if we got all that right we can press enter there we are and things are now are happening and will take up to about 30 minutes to complete so what you might now want to do is to have a cup of tea or another preferred beverage or maybe you'll want to wander to the park and talk to some ducks you can always learn lots of exciting things talking to some dots but however you spend a few minutes when you get back again the pie should have finished installing open media vault it should have rebooted launched open media vault and be displaying the local ip address to access it over the network and here as you can see the local ip address is 192.168.1.5 so if we go to another computer on my network and go to a web browser and enter that address and cross our fingers yes we've arrived at the web interface for open media vault where we can log in using the default username which is admin and the default password which is open media fault like that and hopefully we will now be in and we'll be working yes we've accessed open media vault over the network and it's worth now pointing out that all of the setup we need to do on the pi itself is complete we can do everything else by the web interface so the monitor and keyboard can now be disconnected from the pi greetings here we are still in the open media vault web interface where a couple of things i should point out to you straight away are first ever under general settings there is an option here to change the web administrator password which you might want to do away from open media vault and the second thing to make you're aware of straight away is over here on the top right there is a menu which includes options for logging out and also for shutting down the pi so you might want to shut down the pi and maybe disconnect its monitoring keyboard set it up somewhere else reboot it that you can do once you shut it down safely using the shutdown option here it's also worth noting that the ip address for the pi the local ip address currently for us here 192.16815 that might be different on a reboot and so if it is you'll have to plug a monitoring again to find it out or you could look in your router control panel settings to find out what ip address has been allocated locally or you could use a free program such as angry ip scanner to find out its new local ip address and i say more about this in my previous raspberry pi open media vault video anyway for now let's ignore such matters and we'll press 11 to give us some more space to work on on the screen and here in open media vault there are loads and loads of settings as you can probably see it's a very sophisticated piece of software lots of things you can learn about networking and implement using all of the functionality here but what i'm going to do for the rest of this video is just to do a very simple example to show you how to set up a shared folder that can be used by anybody who's accessing the local area network and so to do that first of all we're going to go down to storage and under storage as you can see there's an option for disks and if we click on that we will see hopefully two disks on this system one is the micro sd card in which we're running open media vault and the other is a samsung kuvo ssd connected by usb to the raspberry pi and we go down here to file systems we can see what drives are mounted on the system what is available to us and here only two partitions are mounted both on the microsd card now this is because the other drive the ssd connected to the pi is a brand new drive it's never had a file system put on it it's never been formatted so here what i need to do is to click on create and we can select the device which is going to be the samsung drive there it is we'll give it a label i'll just call it a cuvo that'll be fine and for file system we'll use the default here which is x4 which is a linux file system and will be the fastest one to use in terms of performance so we'll click on ok do we want to format the device yes we do and there we are it's finished we can close that down and we can now see the kuvo ssd down here however it's not yet mounted we still have to go in and mount the drive as you can see it says a mounted no i'm just messing around then there we may put at the top leaping around the screen but anyway once i stop messing around with the system we need to mount that drive by going up to clearly click on the mount and we'll now get a request to confirm changes you'll see a lot of these in open media vault it's important to click apply to apply our changes do we want to do it yes and in a second we can now see all of these volumes are mounted on our system and just to be clear what's going on here if you connected a storage device to your pi which already had a file system on it which was already formatted you don't have to do the create file system process you could just as directly mounted the device as it's on here anyway with the device now mounted we can go down here to access rights management there we are and here there's various options available including creating users and groups and we could create all sorts of users give them different access rights to different folders things like that but all i'm going to do here is go directly to shared folders which i'll select over there and of course we have none at the moment so i'll click on add and we're going to give it a name we'll call it for example pi share i think we'll select a device which will be our kuvo drive and we're going to set permissions here to be right at the bottom here if i just click to make things a bit smaller because it doesn't appear on the screen we need to select everyone read write there we are and we'll save that back to uh there we were again we'll do a apply changes do we want to apply the configuration changes yes we do and then finally what we're going to do here is to go down to services and we're going to select a sharing service which is a smb cifs which stands for server message block protocol common internet file system which is a common means of sharing files over a network using a windows computer as the windows icon over here probably suggests and the first we need to do here is to click on enable to enable this service and then we need to click on save and then once again we need to apply our changes you're seeing a pattern going on here and then we now need to go to shares and add to add a share we're going to have a shared folder is going to be the one we've got already let's go down to that and select a pie share obviously that's one we just set up and then under public we're going to set it to only guests which allows everyone the network to access this without entering a username or a password and so there we are everything we did is now set up again lots of things we could set if we wish to but i'm just going to press save and again it's going to ask us to confirm our changes and of course we will do the same do we want to yes we do and in theory we've now set up a shared open media vault folder which we can access from any pc on the local area network and to test that we'll let f11 and minimize our browser and we'll connect to the share here in windows and the first thing i'm going to do is just go to the menu here and go into settings and we're going to go to network and internet you probably have guessed that we're going to scroll down a bit and go to network and sharing center we're going to go to change advanced sharing settings over there and we're going to check when network discovery is turned on which it is if it isn't turned on make sure you turn on network discovery and save that but here that's all okay about you so i'd show you what needs to be set up let's get rid of this as well and then we'll now go to this pc and then across to computer and map network drive and you'll see it's already picked up z to be the drive we're going to map to we can pick any drive we wanted but normally you start at the opposite end of the alphabet for network drives and we'll browse here and there we are we've found raspberry pi and pie share so we'll select that and okay and finish and yes as you can see we now have access to pi share mapped as drive z on this system which we can use like any other windows drive as we've seen in this video setting up a simple nas using a raspberry pi 4 and open media vault is a fairly straightforward process more than that it's also a great educational exercise if you want to become more familiar with network file showing but now that's it for another video if you've enjoyed what you've seen here please press that like button if you haven't subscribed please subscribe and i hope to talk to you again very soon you
Info
Channel: ExplainingComputers
Views: 200,424
Rating: undefined out of 5
Keywords: OpenMediaVault, Open Media Vault, install, Raspberry Pi, Raspberry Pi Open Media Vault, Raspberry Pi OMV setup, Raspberry Pi OMV install, Christopher Barnatt, Barnatt, Raspberry Pi NAS, Raspberry Pi server
Id: LOg4xfDQafc
Channel Id: undefined
Length: 18min 11sec (1091 seconds)
Published: Sun Dec 20 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.