{"id":73,"date":"2023-01-12T14:02:14","date_gmt":"2023-01-12T12:02:14","guid":{"rendered":"https:\/\/www.microfusion.org\/blog\/?p=73"},"modified":"2023-01-12T14:09:22","modified_gmt":"2023-01-12T12:09:22","slug":"setting-up-a-simple-nas-server-on-linux-ubuntu","status":"publish","type":"post","link":"https:\/\/www.microfusion.org\/blog\/setting-up-a-simple-nas-server-on-linux-ubuntu\/","title":{"rendered":"Setting up a simple NAS server on Linux Ubuntu"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"aioseo-what-is-a-nas-server-and-what-is-it-used-for\">What is a NAS server and what is it used for ?<\/h2>\n\n\n\n<p>Simply put, a NAS or (<strong><em>Network Attached Storage)<\/em><\/strong> Server is a computer that sits on the network that stores, manages and contains a collection of files and information, usually multimedia content such as pictures, movies and music, documents or any other file type that you want other users on the network to share and have access too at the same time. The most cost effective NAS to setup and deploy is using Linux such as Ubuntu or Mint but a <a href=\"https:\/\/www.microfusion.org\/blog\/setting-up-a-simple-nas-server-on-windows-10\/\" title=\"Setting up a simple NAS server on Windows 10\"><strong><em>Windows computer can also be used<\/em><\/strong><\/a> at additional licensing that can make it more expensive in comparison to Linux. <\/p>\n\n\n<div class=\"wp-block-aioseo-table-of-contents\"><ul><li><a class=\"aioseo-toc-item\" href=\"#aioseo-easily-setup-a-linux-nas-server-on-ubuntu\">Easily setup a Linux NAS server on Ubuntu<\/a><ul><li><a class=\"aioseo-toc-item\" href=\"#aioseo-firstly-you-will-need-a-few-things-to-setup-a-linux-ubuntu-nas-server\">Firstly you will need a few things to setup a Linux Ubuntu NAS server<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-1-getting-the-software-needed-for-setting-up-ubuntu-nas\">Step #1 &#8211; Getting the software needed for setting up Ubuntu NAS<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-2-preparing-linux-ubuntu-installation-medium-via-flash-drive\">Step #2 &#8211; Preparing Linux Ubuntu installation medium via flash drive<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-3-installing-the-linux-ubuntu-operating-system-from-the-flash-drive-on-our-nas-server\">Step #3 &#8211; Installing the Linux Ubuntu operating system from the flash drive on our NAS server<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-4-getting-the-linux-ubuntu-operating-system-ready-to-be-a-nas-server\">Step #4 &#8211; Getting the Linux Ubuntu operating system ready to be a NAS Server<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-5-setting-up-a-static-ip-address-on-ubuntu-22-04-lts-nas\">Step #5 &#8211; Setting up a static IP address on Ubuntu 22.04 LTS NAS<\/a><ul><li><a class=\"aioseo-toc-item\" href=\"#aioseo-if-you-are-using-ubuntu-22-04-lts-desktop-version\">If you are Using Ubuntu 22.04 LTS Desktop Version<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-if-you-are-using-ubuntu-22-04-lts-server-version\">If you are using Ubuntu 22.04 LTS Server version<\/a><\/li><\/ul><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-6-setting-up-a-hard-drives-for-nas-storage\">Step #6 &#8211; Setting up a hard drives for NAS storage<\/a><ul><li><a class=\"aioseo-toc-item\" href=\"#aioseo-if-you-are-using-ubuntu-22-04-lts-server-version\">If you are using Ubuntu 22.04 LTS Server version<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-if-you-are-using-ubuntu-22-04-lts-desktop-version\">If you are using Ubuntu 22.04 LTS Desktop version<\/a><\/li><\/ul><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-7-setting-up-a-file-sharing-via-samba-for-the-nas-server\">Step #7 &#8211; Setting up File Sharing via Samba for the NAS server<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-step-8-connecting-to-the-nas-server-from-windows\">Step #8 &#8211; Connecting to the NAS Server from Windows<\/a><\/li><\/ul><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-the-conclusion\">The Conclusion<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#aioseo-what-did-you-think-of-setting-up-a-linux-ubuntu-nas-server\">What did you think of setting up a Linux Ubuntu NAS server ?<\/a><\/li><\/ul><\/div>\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"aioseo-easily-setup-a-linux-nas-server-on-ubuntu\">Easily setup a Linux NAS server on Ubuntu<\/h3>\n\n\n\n<p>Setting up a NAS server for your home or business can seem like a daunting task &#8211; and let\u2019s face it, there are plenty of expensive NAS solutions out there. But what if you could do it yourself, on the cheap? That\u2019s where Ubuntu comes in. With just a few simple steps, you can have your own NAS server up and running in no time. So grab your laptop, fire up Ubuntu and follow along as we show you how to set up a simple NAS server for your home or business.<\/p>\n\n\n\n<p>Simply follow these easy steps and you should have a NAS server setup on Linux in now time. It will take around 30 minutes, so lets get started!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-firstly-you-will-need-a-few-things-to-setup-a-linux-ubuntu-nas-server\">Firstly you will need a few things to setup a Linux Ubuntu NAS<strong> <\/strong>server<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>An Old PC, or Raspberry Pi will do. I&#8217;d advise not using an old laptop here BUT if that&#8217;s all you have then go for it. <\/li>\n\n\n\n<li>Any small sized Hard drive, \n<ul class=\"wp-block-list\">\n<li>Usually an old PC will have at least one hard drive installed already. An SSD drive is perfect for this.<\/li>\n\n\n\n<li>It will only be used to install the Linux Ubuntu Operating system so anything around 40 gig or more is fine. 120Gig SSD&#8217;s are cheap and perfect for a NAS<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Some larger hard drives for the actual content you want to host on the server.\n<ul class=\"wp-block-list\">\n<li>Such as the Western Digital Red or Seagate IronWolf series will be perfect.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Network capable LAN port and either CAT5e or CAT6 LAN cable for connecting your NAS to the local network.<\/li>\n\n\n\n<li>A downloaded copy of Ubuntu LTS. It&#8217;s free and legal so go ahead and <a href=\"https:\/\/ubuntu.com\/download\/desktop\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Download the ISO file for Ubuntu here<\/a> \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<ul class=\"wp-block-list\">\n<li>Linux Ubuntu LTS Server &#8211; Is a lightweight version of Ubuntu that <strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">DOES NOT INCLUDE A GRAPHICAL USER INTERFACE<\/mark>. <\/em><\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Linux Ubuntu LTS Desktop &#8211; Is the complete OS with all software and does include a Graphical User interface. <strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#009900\" class=\"has-inline-color\">Use this one for this tutorial<\/mark><\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>A USB Flash Drive which we will use to install Ubuntu onto the PC with. 16 Gigabyte or more is fine.<\/li>\n\n\n\n<li><a href=\"https:\/\/rufus.ie\/en\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Rufus<\/a>, a small Windows program that will help us to create a bootable flash drive that we will use to then install Ubuntu onto the NAS Server PC<\/li>\n<\/ol>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-1-getting-the-software-needed-for-setting-up-ubuntu-nas\">Step #1 &#8211; Getting the software needed for setting up Ubuntu NAS<\/h4>\n\n\n\n<p><a href=\"https:\/\/ubuntu.com\/download\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Download Linux Ubuntu 22.04 LTS<\/a> <strong>Desktop<\/strong> iso from Canonical here<\/p>\n\n\n\n<p><a href=\"https:\/\/rufus.ie\/en\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Download Rufus<\/a> &#8211; used to create the installation flash drive<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-2-preparing-linux-ubuntu-installation-medium-via-flash-drive\">Step #2 &#8211; Preparing Linux Ubuntu installation medium via flash drive<\/h4>\n\n\n\n<p>First we need to prepare Ubuntu for installation using flash drive. Plug in the flash drive on a windows PC not on the NAS server PC then using Rufus select the USB flash drive and the Ubuntu ISO image you downloaded as shown below. Then press start to copy the ISO files to the flash drive and make it bootable. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img fetchpriority=\"high\" decoding=\"async\" width=\"474\" height=\"580\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Rufus1.jpg\" alt=\"Rufus Configuration for Linux Ubuntu 22.04 LTS\" class=\"wp-image-75\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Rufus1.jpg 474w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Rufus1-245x300.jpg 245w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><figcaption class=\"wp-element-caption\">Rufus Configuration for Linux Ubuntu 22.04 LTS<\/figcaption><\/figure>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-3-installing-the-linux-ubuntu-operating-system-from-the-flash-drive-on-our-nas-server\">Step #3 &#8211; Installing the Linux Ubuntu operating system from the flash drive on our NAS server<\/h4>\n\n\n\n<p>Once Rufus is done we can move over to the NAS server an install it&#8217;s operating system. Plug the flash drive into the USB port and power on the NAS server PC.<\/p>\n\n\n\n<p>We will need to boot from the flash drive and to do so I&#8217;d highly advise consulting your motherboard manufacturer documentation. Most PC&#8217;s will have a shortcut key such as F2, F9, F10 or F12 to bring up a boot menu. Else you will need to configure the <em>BIOS<\/em> or <em>UEFI<\/em> to boot from flash drive. If you are using a <em>UEFI<\/em> bios then disable secure boot first to be able to boot from a flash drive&#8230;<\/p>\n\n\n\n<p>You will know you have successfully booted when you reach the Ubuntu Installer screen<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img decoding=\"async\" width=\"730\" height=\"416\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/u1.jpg\" alt=\"Ubuntu Grub Bootscreen\" class=\"wp-image-78\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/u1.jpg 730w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/u1-300x171.jpg 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><figcaption class=\"wp-element-caption\">Ubuntu Grub Boot screen<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" width=\"802\" height=\"608\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/u2.jpg\" alt=\"Ubuntu Installer\" class=\"wp-image-79\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/u2.jpg 802w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/u2-300x227.jpg 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/u2-768x582.jpg 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><figcaption class=\"wp-element-caption\">Ubuntu Installer<\/figcaption><\/figure>\n\n\n\n<p>From there follow the Ubuntu installer to install the Ubuntu OS on the NAS server PC. Its pretty straight forward and will only take about 20~30 minutes depending on your internet connection and NAS server hardware. When you reach the end of the installation you will be greeted with this screen as shown below. Restart the system and remove the USB flash drive. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"604\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/U10.jpg\" alt=\"Ubuntu Installation completed\" class=\"wp-image-83\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/U10.jpg 803w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/U10-300x226.jpg 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/U10-768x578.jpg 768w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><figcaption class=\"wp-element-caption\">Ubuntu Installation completed<\/figcaption><\/figure>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-4-getting-the-linux-ubuntu-operating-system-ready-to-be-a-nas-server\">Step #4 &#8211; Getting the Linux Ubuntu operating system ready to be a NAS Server<\/h4>\n\n\n\n<p>The very first thing we want to do after installing Ubuntu is update the system. This will ensure that any software we install is the latest versions and will help with security and stability of the overall NAS server. To update Ubuntu and its software packages open Terminal and type in the following command or copy and paste it then hit enter. <\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Now that we have everything up to date its time to install some additional software that the NAS server will need to work as a NAS. In Linux these are called packages. <\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo apt install build-essential ssh samba samba-common samba-common-bin ntfs-3g fuse2fs<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-5-setting-up-a-static-ip-address-on-ubuntu-22-04-lts-nas\">Step #5 &#8211; Setting up a static IP address on Ubuntu 22.04 LTS NAS<\/h4>\n\n\n\n<p>Next we need to configure a static IP address for the server, By default the ip will be most likely come from your internet router and this will change which will cause issues down the line. By assigning a static IP address to the NAS server we tell the router not to hand out an IP address and instead that the NAS server will provide its own IP address that will not change automatically. Lets setup a static IP now. In the Terminal run the following commands<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>nmcli connection show<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-41-14-1024x435.png\" alt=\"nmcli output\" class=\"wp-image-100\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-41-14-1024x435.png 1024w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-41-14-300x128.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-41-14-768x326.png 768w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-41-14.png 1254w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">nmcli output<\/figcaption><\/figure>\n\n\n\n<p>Take note of the <strong><em>DEVICE<\/em><\/strong> name that gets listed. next we will need to edit the following file. This is applicable to <strong><em>Ubuntu 22.04 LTS<\/em><\/strong> as of this writing, older versions of Ubuntu and future version might implement different ways of assigning static IP addresses.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo nano \/etc\/netplan\/01-network-manager-all.yaml<\/code><\/pre>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Make the following changes to the file as shown below. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"aioseo-if-you-are-using-ubuntu-22-04-lts-desktop-version\">If you are Using Ubuntu 22.04 LTS Desktop Version<\/h5>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>network:\n  renderer: NetworkManager\n  ethernets:\n    enp0s3:\n      addresses:\n        - 192.168.10.201\/24\n      nameservers:\n        addresses: &#91;192.168.10.1, 8.8.8.8]\n      routes:\n        - to: default\n          via: 192.168.10.1\n  version: 2<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-33-1024x435.png\" alt=\"Static IP ubuntu\" class=\"wp-image-98\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-33-1024x435.png 1024w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-33-300x128.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-33-768x326.png 768w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-33.png 1254w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"aioseo-if-you-are-using-ubuntu-22-04-lts-server-version\">If you are using Ubuntu 22.04 LTS Server version<\/h5>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>network:\n  renderer: networkd\n  ethernets:\n    enp0s3:\n      addresses:\n        - 192.168.10.201\/24\n      nameservers:\n        addresses: &#91;192.168.10.1, 8.8.8.8]\n      routes:\n        - to: default\n          via: 192.168.10.1\n  version: 2\n<\/code><\/pre>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-41-1024x435.png\" alt=\"Static Ip Server Ubuntu\" class=\"wp-image-99\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-41-1024x435.png 1024w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-41-300x128.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-41-768x326.png 768w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-10-07-57-41.png 1254w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The only difference is the <strong>renderer<\/strong> option. for <em>Ubuntu Desktop<\/em> we set it to <strong>NetworkManager<\/strong> and on Ubuntu Server we set it to <strong>networkd<\/strong>. <\/p>\n\n\n\n<p>In the above file we have used following configurations<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>enp0s3 is the interface name (yours might differ so check with <strong>nmcli connection show<\/strong> command )<\/li>\n\n\n\n<li>addresses are used to set the static ipv4 and the <strong><em>\/24<\/em><\/strong> is the netmask.<\/li>\n\n\n\n<li>nameservers used to specify the DNS server ip address&#8217;s<\/li>\n\n\n\n<li>routes used to specify the default gateway (this is your router&#8217;s IP most of the time)<\/li>\n<\/ul>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#88ff00\" class=\"has-inline-color\">Note:<\/mark> Please change the IP addresses and interface name as per your environment For this Example I am using the following values that you need to change<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>192.168.10.201 as my Static IPv4<\/li>\n\n\n\n<li>\/24 as my netmask, this one most likely will be the same for you as well. <\/li>\n\n\n\n<li>Name Server addresses DNS 192.168.10.1 (My routers DNS) and 8.8.8.8 (Google DNS) as a fallback<\/li>\n\n\n\n<li>Route needs to be set as your routers IP. in my case its 192.168.10.1<\/li>\n<\/ul>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Save the file by pressing <strong><em>CTRL+X<\/em><\/strong> then <strong><em>y<\/em><\/strong> and finally press <strong>enter<\/strong><\/p>\n\n\n\n<p>Apply the changes by running the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo netplan apply<\/code><\/pre>\n\n\n\n<a href=\"http:\/\/cointiply.com\/r\/kXOgg6\"><img decoding=\"async\" title=\"Join Cointiply to Earn Free Bitcoin!\" alt=\"Earn Free Bitcoin\" src=\"https:\/\/cointiply.com\/img\/promo\/banners\/1_728x90.jpg\"><\/a>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Verify that you have internet and that everything is working. you can ping google using the following command in terminal.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>ping -c 4 www.google.com<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>PING www.google.com (172.217.170.36) 56(84) bytes of data.\n64 bytes from jnb02s03-in-f4.1e100.net (172.217.170.36): icmp_seq=1 ttl=119 time=7.19 ms\n64 bytes from jnb02s03-in-f4.1e100.net (172.217.170.36): icmp_seq=2 ttl=119 time=5.88 ms\n64 bytes from jnb02s03-in-f4.1e100.net (172.217.170.36): icmp_seq=3 ttl=119 time=16.6 ms\n64 bytes from jnb02s03-in-f4.1e100.net (172.217.170.36): icmp_seq=4 ttl=119 time=5.34 ms\n\n--- www.google.com ping statistics ---\n4 packets transmitted, <strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#31ff00\" class=\"has-inline-color\">4 received, 0% packet loss<\/mark><\/strong>, time 3030ms\nrtt min\/avg\/max\/mdev = 5.337\/8.741\/16.558\/4.562 ms\n<\/code><\/pre>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Look for the number of packets that was received which should be and <strong>0% loss<\/strong> which is good. At this point networking should be done.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-6-setting-up-a-hard-drives-for-nas-storage\">Step #6 &#8211; Setting up a hard drives for NAS storage<\/h4>\n\n\n\n<p>Its time it setup the additional hard drives for the NAS server, make sure that your hard drives are installed in the NAS server before we continue.  <\/p>\n\n\n\n<p>You can<a href=\"https:\/\/www.microfusion.org\/blog\/how-to-install-a-new-hard-drive\/\" target=\"_blank\" rel=\"noopener\" title=\"\"> <strong>follow our guide here on how to install hard drives<\/strong><\/a> into a PC.<\/p>\n\n\n\n<p>Now if you are using Linux Ubuntu 22.04 LTS Desktop open up the applications menu and type in <strong>disks<\/strong> then open up the app disks.<\/p>\n\n\n\n<p>On the left hand side panel you will find a list of all the hard drives that is detected by the Ubuntu Operating system. Find your large NAS hard drive in that list and select it in the left hand side as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"652\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/1.png\" alt=\"Disks interface\" class=\"wp-image-92\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/1.png 952w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/1-300x205.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/1-768x526.png 768w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><figcaption class=\"wp-element-caption\">Disks Application on Ubuntu 22.04 LTS<\/figcaption><\/figure>\n\n\n\n<p>What we are looking for is hard drive(s) that are unknown and completely empty. No partitions on it. As shown above. Mine is a single 21 Gigabyte Virtual hard drive.<\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#009900\" class=\"has-inline-color\">NOTE:<\/mark> If you have more then one Hard Drive you will need to repeat the following steps for each hard drive you want to use on this server.  <\/strong><\/p>\n\n\n\n<p>With the new empty hard drive selected on the left side click on the little<strong> gear<\/strong> icon and select the <strong>Format Partition<\/strong> option. By default Linux Ubuntu uses the <strong>EXT4<\/strong> file system, which is great for a NAS however if you plan to ever use this hard drive in a windows computer or you would like to access the files on a windows PC directly by plugging it directly into a windows computer, Windows wont be able to read the EXT4 file system so now you have a choice.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"652\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/2.png\" alt=\"Formatting partitions with disks\" class=\"wp-image-93\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/2.png 952w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/2-300x205.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/2-768x526.png 768w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p>If you only intend to use this hard drive in the NAS server then leave it as <em><strong>EXT4<\/strong><\/em> else I recommend selecting the <strong><em>NTFS<\/em><\/strong> option before formatting, as shown below. Both of these will work fine while in the NAS server the only upside is what NTFS is the default Windows filesystem schema and EXT4 is native to Linux. Linux can read both NTFS and EXT4 where as Windows can only read NTFS drives. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"485\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/3.png\" alt=\"Assigning filesystem ext4\" class=\"wp-image-94\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/3.png 648w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/3-300x225.png 300w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/figure>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"485\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/5.png\" alt=\"Assigning filesystem NTFS\" class=\"wp-image-95\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/5.png 648w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/5-300x225.png 300w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/figure>\n\n\n\n<p>After formatting the drive or drives we need to make sure that when the NAS starts up the hard drives are automatically mounted. In Windows when the system boots all hard drives are automatically available and mounted by default however in Linux you need to do this manually. So in the application Disks which should still be open click on the little gear icon again and this time select the Edit Mount Options <\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"aioseo-if-you-are-using-ubuntu-22-04-lts-server-version\">If you are using Ubuntu 22.04 LTS Server version<\/h5>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">Note:<\/mark> For Ubuntu Server you will need to edit and add each hard drive in the \/etc\/fstab file. You can get the Hard drive UUID using the command<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-8-background-color has-background\"><code>sudo blkid<\/code><\/pre>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>From here locate the hard drive or hard drives you wish to auto mount and record each ones UUID. Next edit \/etc\/fstab and add the following lines at the bottom.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo nano \/etc\/fstab<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code># syntax\n# UUID=\"YOUR-UID-HERE\" \/mnt\/ntfs\/ ntfs nls-utf8,umask-0222,uid-1000,gid-1000,ro 0 0\nUUID=\"438A7D041A7D234C\" \/mnt\/nas-hdd-1\/ ntfs nls-utf8,umask-0222,uid-1000,gid-1000,ro 0 0<\/code><\/pre>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Add the following lines of code to the bottom if the fstab file making sure to change the <strong>UUID<\/strong> to match your hard drive and make changes to the file system type. <\/p>\n\n\n\n<p>If you formatted the hard drive in EXT4 then change <strong>ntfs <\/strong>to ext4 else if you formatted the drive in <strong>NTFS<\/strong> make sure its set as <strong>ntfs<\/strong>. The mount point needs to set too.<\/p>\n\n\n\n<p>Once done close and safe the fstab file by pressing. <strong>CTRL+X<\/strong> then <strong>y<\/strong> then <strong>enter<\/strong>. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"aioseo-if-you-are-using-ubuntu-22-04-lts-desktop-version\">If you are using Ubuntu 22.04 LTS Desktop version<\/h5>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"652\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/8.png\" alt=\"Edit mounting Options\" class=\"wp-image-96\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/8.png 952w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/8-300x205.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/8-768x526.png 768w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p>Disable <strong>User session Defaults<\/strong> option, then check both options <strong><em>Mount at system startup<\/em><\/strong> and <strong><em>Show in user interface<\/em><\/strong>. <\/p>\n\n\n\n<p>Next, rename the Mount Point Name, by default it will use the UUID which is a bunch of numbers and letters, we will give it a friendly name here. but leave the &#8220;<em>Identify As<\/em>&#8221; field alone. See below. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"599\" height=\"546\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/7.png\" alt=\"Set auto mounting\" class=\"wp-image-97\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/7.png 599w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/7-300x273.png 300w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0);color:#26ff00\" class=\"has-inline-color\"><strong>Note:<\/strong><\/mark> If you have multiple Hard drives you will need to do this for each one making sure the <strong><em>Mount Point Name<\/em><\/strong> is unique for each hard drive. When done click OK to close out and return to the Disks main menu. If you are done with each hard drive you can exit the Disks application. If in future you want to add additional hard drives you will need to come back to the Disk application and follow the above steps again.<\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Now lets setup some NAS folders that we want to share file with. For this example i will add folders that a typical home multimedia NAS server will use. <\/p>\n\n\n\n<p>Open up the file explorer app in Ubuntu then select the NAS hard drive we mounted earlier. <\/p>\n\n\n\n<p>Next, right click on the white space and select <strong>Create New Folder<\/strong> and create some folders, these will be used to store your files you wish to share on the NAS server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"602\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-08-57-03.png\" alt=\"Creating NAS folders Ubuntu\" class=\"wp-image-105\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-08-57-03.png 942w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-08-57-03-300x192.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-08-57-03-768x491.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-7-setting-up-a-file-sharing-via-samba-for-the-nas-server\">Step #7 &#8211; Setting up File Sharing via Samba for the NAS server<\/h4>\n\n\n\n<p>Linux by default doesn&#8217;t allow windows computers to connect over the network, we need to setup Samba. A Windows compatible network translation layer application.<\/p>\n\n\n\n<p>First lets see if Samba is installed and running by executing the following command in Terminal. <\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo systemctl status smbd<\/code><\/pre>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>What we are looking for is the following output. make sure its <strong>active<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"516\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-09-09-13-1024x516.png\" alt=\"samba ststus output\" class=\"wp-image-104\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-09-09-13-1024x516.png 1024w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-09-09-13-300x151.png 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-09-09-13-768x387.png 768w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-12-09-09-13.png 1164w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Lets configure the samba shares for the NAS server, open terminal and run the following commands. <\/p>\n\n\n\n<p>The first one will make a backup copy of the original configuration file and then second command will open up the samba config file that we need to alter.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo cp \/etc\/samba\/smb.conf \/etc\/samba\/smb.conf.backup\n\nsudo nano \/etc\/samba\/smb.conf<\/code><\/pre>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Scroll ot the very bottom of the file and add the following configuration, alter as needed to match your environment and file names<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1bb260\" class=\"has-inline-color\"><strong>&#91;nas-hd-1]<\/strong><\/mark>\n   comment = Nas Share\n   # Below is the path to the share. In this case its the whole NAS Hard drive\n   <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f00000\" class=\"has-inline-color\"><strong>path = \/mnt\/nas-hdd-1<\/strong><\/mark> \n   guest ok = no\n   browseable = yes\n   create mask = 0777\n   directory mask = 0777\n   writable = yes\n   read only = no<\/code><\/pre>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If you have more hard drives you need to repeat this step for each one. <\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fd0000\" class=\"has-inline-color\">Take Note:<\/mark><\/strong> The above shared the entire hard drive. Including all folders on it. If you don&#8217;t want to do that you need to setup shares for each folder instead for example<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1bb260\" class=\"has-inline-color\"><strong>&#91;Movies]<\/strong><\/mark>\n   comment = Movies Only Share\n   # alter the path below to point to the folder you want to share\n   <strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">path = \/mnt\/nas-hdd-1\/Movies<\/mark><\/strong>  \n   guest ok = no\n   browseable = yes\n   create mask = 0777\n   directory mask = 0777\n   writable = yes\n   read only = no\n\n<mark style=\"background-color:rgba(0, 0, 0, 0);color:#1bb260\" class=\"has-inline-color\"><strong>&#91;TV Series]<\/strong><\/mark>\n   comment = Movies Only Share\n   # use (\") double quotes if there are any spaces in the path, As indicated Below\n   <strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">path = \"\/mnt\/nas-hdd-1\/TV Series\"<\/mark><\/strong>  \n   guest ok = no\n   browseable = yes\n   create mask = 0777\n   directory mask = 0777\n   writable = yes\n   read only = no<\/code><\/pre>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>When you are done, save and exit the file by pressing <strong>CTRL+X<\/strong> then <strong>y<\/strong> then <strong>Enter<\/strong>. <\/p>\n\n\n\n<p>The last steps are to add your current user to the samba group, set a samba password and allow it through the firewall. Lets do that now. Run the following in Terminal.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-6-color has-ast-global-color-8-background-color has-text-color has-background\"><code>sudo usermod -aG sambashare $USER\n\nsudo smbpasswd -a $USER\n\nsudo ufw allow samba\n\nsudo systemctl restart smbd<\/code><\/pre>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>#1 command adds you (the current user) to the sambashare group.<\/p>\n\n\n\n<p>#2 command assigns a password for the user to samba. Its recommended to just use the same password here that you use for your user however they can be different. <\/p>\n\n\n\n<p>#3 command writes allow rules for the firewall to allow connection to samba.<\/p>\n\n\n\n<p>#4 command restarts samba service to apply all the changes. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-step-8-connecting-to-the-nas-server-from-windows\">Step #8 &#8211; Connecting to the NAS Server from Windows<\/h4>\n\n\n\n<p>Its time to connect to the our NAS server. On a Windows PC open up the file explorer app. From the left panel locate the network category and right click on it, then select Map Network Drive as shown below<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"537\" height=\"608\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-29.png\" alt=\"Windows Explorer Map network drive\" class=\"wp-image-111\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-29.png 537w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-29-265x300.png 265w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/figure>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Next select a drive letter and set the network path to your NAS share folder. What I like to do is assign a drive letter that is near the end at the alphabet and that closely match the content of the share, like for movies i selected M as the drive letter but this is completely optional. See below. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"614\" height=\"454\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w1.jpg\" alt=\"Mapping a network drive\" class=\"wp-image-112\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w1.jpg 614w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w1-300x222.jpg 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/figure>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Once you have the IP entered for the NAS server click on Browse&#8230; to select which folders you want to map.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"382\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w2.jpg\" alt=\"Selecting a network drive\" class=\"wp-image-113\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w2.jpg 320w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w2-251x300.jpg 251w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Click OK then Finish, Windows will ask you for the username and password next. Enter your NAS server username and then the samba password you have set. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"349\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w3.jpg\" alt=\"Windows password prompt\" class=\"wp-image-114\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w3.jpg 456w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w3-300x230.jpg 300w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If all went to plan you should have access to the NAS servers mapped drive in Windows. It will now show up as a hard drive in Windows Explorer where you can now store, add, use and access files as long as the NAS server is online. As you can see below I have mapped out Movies as drive letter M: and its its now listed. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"313\" src=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w4-1024x313.jpg\" alt=\"Windows Explored with mapped drive\" class=\"wp-image-115\" srcset=\"https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w4-1024x313.jpg 1024w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w4-300x92.jpg 300w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w4-768x234.jpg 768w, https:\/\/www.microfusion.org\/blog\/wp-content\/uploads\/2023\/01\/w4.jpg 1166w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"aioseo-the-conclusion\">The Conclusion<\/h3>\n\n\n\n<p>NAS servers are very useful, in a more advanced manner one would setup multiple user accounts with each user only allowed access to some folders and resources on the NAS and RAID would also come into play as redundancy for the server. This tutorial serves as a very basic setup mostly for home use.  <\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7505880210632883\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7505880210632883\" data-ad-slot=\"6291301981\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Have a look at Kodi next to set that up to work with you multimedia NAS server as a home entertainment system. Alternatively you there are other Linux distributions out there that;s sole purpose is to be a NAS. Some paid for and others free. Consider them maybe as well. Such as <a href=\"https:\/\/www.openmediavault.org\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">OpenMediaVault<\/a> and <a href=\"https:\/\/www.truenas.com\/\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">TrueNAS<\/a><\/p>\n\n\n\n<p>Furthermore those that wish to use Windows instead can have a look here: <a href=\"https:\/\/www.microfusion.org\/blog\/setting-up-a-simple-nas-server-on-windows-10\/\" title=\"Setting up a simple NAS server on Windows 10\"><strong>Setting up a simple NAS server on Windows 10<\/strong><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"aioseo-what-did-you-think-of-setting-up-a-linux-ubuntu-nas-server\">What did you think of setting up a Linux Ubuntu NAS server ?<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>A guide on how to setup a simple Linux NAS server on Ubuntu<\/p>\n","protected":false},"author":1,"featured_media":127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3,24],"tags":[16,15,17,10,12],"class_list":["post-73","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-linux","tag-computers","tag-diy-tech","tag-howto","tag-linux","tag-servers"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":43,"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":128,"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions\/128"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/media\/127"}],"wp:attachment":[{"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microfusion.org\/blog\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}