APC Australia

PC Builder

Nick Peers reveals how to build and set up your own custom NAS-beating server.

-

Set up your own NAS server

Why would you want to build your own NAS server? You can easily pick up a decent off-the-shelf model in the form of a QNAP or Synology NAS, complete with its own operating system, range of apps and all the rest. Why? Because you’re an APC reader, do you need any other reason?

Of course not, but we’ll give you some anyway. QNAP and Synology are very good at what they do, but you’re tied into their ecosystems, which limits you to their choice of hardware, software, and even proprietar­y filesystem­s. None of this sits well with us, particular­ly when our TS-251+ proved so poor at hardware transcodin­g.

The beauty of the self-build system is that you’re in complete control, from choosing the components that make up your turbopower­ed NAS, to selecting which operating system powers it. We’ve hand-picked the best components for a low-powered NAS build, but you’re free to use whatever you want– an old PC or laptop will do nicely, or even set one up inside a virtual machine. Our NAS will run Ubuntu Server for maximum flexibilit­y and performanc­e, designed to run headless while remaining accessible and easy to manage via any PC on your local network with a web browser. Ready to get started?

First, what hardware will your NAS server be based on? Any PC capable of running Linux is the simple answer. You might have an old PC or laptop gathering dust somewhere looking for a new purpose in life, or perhaps you’re looking for an excuse for your next build. The box on the opposite page reveals what we based our server on, which we found very easy to build.

Your NAS server needs a suitable operating system to run, and because it’s designed to be run headless, we’re going to install Ubuntu Server 20.04 LTS. The Server version doesn’t come with unnecessar­y overheads, including a desktop – everything is done from the command line. Don’t worry, though: after it’s been set up, we’ll install a special add-on (Cockpit) that enables you to easily administer your server remotely from any web browser on your local network. We chose the LTS version to reduce the number of major OS upgrades we’ll need to apply during the server’s lifetime.

So, once your server’s set up and running, you won’t need to leave it permanentl­y connected to a monitor or keyboard. That said, it’s useful to have access to both resources in case your server loses its network connection. For example, we’ve got our server tucked away beneath our feet, connected to our main PC’s monitor and with the front USB ports easily accessible, should we need to plug in a keyboard. Start the install process

Head to www.ubuntu.com/download

“The beauty of the self-build system is that you’re in complete control, from choosing the components that make up your turbo-powered NAS, to selecting which operating system powers it.”

and click the “Ubuntu Server” link, followed by “Option 2 – Manual server installati­on.” You should find the latest LTS version (Ubuntu Server 20.04.2 at the time of writing) as the main option. Click this to download the installati­on media in ISO format – this will download the amd64 build, which works with regular Intel and AMD processors, including the Pentium Silver J5040.

It’s a much smaller download than the full-blown desktop version – a mere 1.1GB. Once downloaded, you can burn it to a blank DVD or use a tool like Rufus (follow the guide at http://bit.ly/ MPCubuntui­nstall) to copy it to an unused USB flash drive (2GB or larger).

Once you’ve created your install media, plug it (or insert the disc) into your server PC before powering it on. If you’ve not already done so, have a quick comb through the BIOS to see if there are any settings you should apply – for example, J5040-ITX users should navigate to “Advanced” and enable “SATA Aggressive Link Power Management” to save energy.

If the BIOS isn’t configured to automatica­lly boot from USB drives, tap the F11 key on startup to bring up the boot menu, then select your USB drive to start the install process. If you’re familiar with the Ubuntu Desktop install process, prepare to forget everything – the Server uses a text-based install method.

When the GRUB menu appears, leave “Install Ubuntu Server” selected, and press Enter. You’ll see some familiar command-line messages scroll by as your drive is tested for errors and key steps are performed. Eventually you’ll be shown the text-based setup menu – not as attractive as Ubuntu Desktop, certainly, but still relatively simple to navigate.

Set up your system

Select your preferred language and hit Enter, then choose your keyboard language and layout. The next step is potentiall­y the trickiest, as it involves configurin­g your network. Servers should be given static IP addresses so they can easily be found on the network, so start by pressing the up arrow key twice to select the current interface (ETH or WLAN) and press Enter. Use the down arrow key to select “Edit IPv4,” hit Enter, then hit Enter again to change the setting from “Automatic (DHCP)” to “Manual.”

You’ll now be asked to set this up, using the down arrow key to move between fields. Ordinarily, you’d expect to enter 255.255.255.0 under “Subnet,” but instead type “192.168.x.0/24”, substituti­ng “x” with the figure shown under DHCPv4. Enter your desired IP address into the “Address” field – making sure it doesn’t clash with other network devices – and your router’s IP address into the “Gateway” field.

“Name servers” is where you enter your chosen DNS servers – typically 8.8.8.8,8.8.4.4 for Google, or 1.1.1.1,1.0.0.1 for Cloudflare. The “Search domains” field is only required if you want to append a local domain to hostnames across your network – for example, “mypc.mydomain.com”. If in doubt, leave blank. Once done, select “Save” and hit Enter. Once the changes have been applied, select “Done” and hit Enter. Skip the “Proxy address” field, and leave the default Ubuntu mirror address selected too.

“If you’re told you don’t have the right to shut down or restart the server, it’s because you didn’t leave “Reuse my password…” ticked when logging in. ”

 ??  ??
 ??  ?? Ubuntu Server’s text-based install wizard is simple enough.
Ubuntu Server’s text-based install wizard is simple enough.
 ??  ?? Scour the BIOS for power-efficiency tweaks like this.
Scour the BIOS for power-efficiency tweaks like this.
 ??  ?? The main Cockpit view provides a handy system overview.
The main Cockpit view provides a handy system overview.

Newspapers in English

Newspapers from Australia