Openmediavault 1
Total Page:16
File Type:pdf, Size:1020Kb
Storage – NAS OpenMediaVault 1 Openmediavault – Setup your own NAS OpenMediaVault is a Network-Attached Storage (NAS) solution based on Debian Linux. It contains services like SSH, (S)FTP, SMB/CIFS, DAAP media server, rsync, BitTorrent and many more. OpenMediaVault is primarily designed to be used in home environments or small home offices, but is not limited to those scenarios. We can use this distribution in large scale environments if we have sufficient hardware. It is simple and easy to manage via Web console and everyone can install and administrate a Network-Attached Storage without deeper knowledge. Installation of Openmediavault: Scenario: In this case my testbox contains two hard drives; one for Operating system and another one used for Storage to the users data’s. I already have a DHCP server in my network; so that this server will fetch the IP address automatically from the DHCP server. Download the latest version of Openmediavault here. Burn it in a CD or DVD and boot the system. At the boot prompt press enter. Select your default Language and press enter. Storage – NAS OpenMediaVault 2 Select your Location and press enter. Select your keyboard layout and press enter. Storage – NAS OpenMediaVault 3 Select your default network interface if you have more than one. Storage – NAS OpenMediaVault 4 Enter the DNS server details or leave it blank. Setup the Root password. Storage – NAS OpenMediaVault 5 Re-enter the Root password. Select the Hard disk to install the base system. Storage – NAS OpenMediaVault 6 Now the installer will begin to copy the files to disk. Storage – NAS OpenMediaVault 7 Select your nearest mirror to let the package manager to update your system periodically. Storage – NAS OpenMediaVault 8 In this case i don’t want to setup the mirror right now. I will do it later by manually. So i just simply press the Go back button to skip this process. It will ask the confirmation message to skip the network mirror selection. Select yes and press enter to continue. Storage – NAS OpenMediaVault 9 Now the installation will begin to setup the base system. At the end of installation press Continue to restart the system. Storage – NAS OpenMediaVault 10 Now the base system is installed successfully. Configuration: It is time to configure the server to act as NAS. It is pretty straight forward and very easy to configure via web console from any client in the network. Open the browser from any one of the client and enter https://your-server-ip-address/ and enter user name as admin(default username) and password as openmediavault(Default password). The main window should looks like below. Storage – NAS OpenMediaVault 11 As mentioned before i have used two hard disks; one for Operating system and another one for Storage purpose to store users data’s. To do that click the Filesystems tab in the Storage section on the left pane of the configuration window and click Create to add new filesystem. Now let us create a new filesystem using the second hard drive . Storage – NAS OpenMediaVault 12 Now the new filesystem is created. Click Mount to mount the newly created filesystem. Now let us create users and groups in the server. To do that navigate to Access Right Management section in the left pane, click User tab and click Add to create a new user. Storage – NAS OpenMediaVault 13 Create all the users as stated above. Then create the Groups to the users. To do that navigate to Access Right Management section on the left pane and Select Groups. Click Add to create a new group and select the respective client to be added to that group in the Members section. Storage – NAS OpenMediaVault 14 Do the same procedure to create another group. Shared Folders: Create some shared folders to be used to store the users data’s. To do that navigate to Access Right Management section, select Shared Folders and click Add to create new shared folder. Enter the name of the share, select the volume where the share to be created(i.e the second hard drive in this case), path of the share and permission assigned to the share for users and groups etc., and click Ok to create the new share. Storage – NAS OpenMediaVault 15 Add other shares as stated above and you’re done. Configure Services: Now we enter the main part of the configuration section. Let us see how to configure the services one by one. NFS: Navigate to Services section in the left pane and select NFS. Click the checkbox Enable in the settings page to enable the nfs service. Storage – NAS OpenMediaVault 16 Then in the Shares page click Add to create new share(don’t confuse with shared folders which will we create in the Access Right Management Section). Select the Shared folder, clients to access the shared folder and privileges whether the share should be in Read-only or Read/Write mode and click Ok. Storage – NAS OpenMediaVault 17 Create shares as many as you want as explained above. FTP: Navigate to Services section in the left pane, select FTP and Click the Enable check box. Storage – NAS OpenMediaVault 18 Select the shared folder in the drop-down box in Shares page. Storage – NAS OpenMediaVault 19 SMB/CIFS: Enable the SMB/CIFS service and add the smb share to windows clients. Now it is time to check whether our NAS server is properly configured or not. Let us check the FTP service. Open the browser from the client or you could check via any FTP client softwares such as Filezilla. Enter ftp://your-server-ip-address/ and press enter. Enter the user name and password which we created earlier in the Access Right Management section. Storage – NAS OpenMediaVault 20 Thats it. Our NAS box is ready to use now. Check the other services such as NFS, SSH, rsync and SMB/CIFS too. It will surely work if you configured this server properly. Start using your NAS box. .