Skip to content

Latest commit

 

History

History
207 lines (112 loc) · 7.75 KB

InstallUbuntu.md

File metadata and controls

207 lines (112 loc) · 7.75 KB

Ubuntu Installation Guide

NOTE: This guide expects you to have followed Before Install! If you haven't, go do it!

You will need the Ubuntu Server installation ISO to follow this guide. This guide follows the Ubuntu Server 20.04.2 LTS install process, however differences should be minimal.

Part 1 - Ubuntu Installer

Connect your USB install drive and open Rufus. Configure Rufus like below:

Rufus

Select your Ubuntu Server ISO by clicking the CD Drive icon on the right under Format Options.

Ensure (triple check!) you have the correct device selected, because selecting the wrong device could wipe out another device with your data on it!

Click start. You will be asked what mode you wish to use:

Rufus Mode

Choose ISO mode and click OK.

Rufus Warning

READ!! and accept the warning.

Now we need to make a modification to the boot menu of the installer. Open file explorer and navigate to the USB:

USB Root

Navigate to /boot/grub:

USB /boot/grub

Open grub.cfg in your editor:

GRUB Config

On line 14, you can see the default boot entry:

menuentry "Install Ubuntu Server" {
	set gfxpayload=keep
	linux	/casper/vmlinuz   quiet  ---
	initrd	/casper/initrd
}

Add a new entry above it, and configure it like so:

menuentry "Serial Console Install Ubuntu Server" {
	set gfxpayload=keep
	linux	/casper/vmlinuz vga=off --- console=ttyS1,115200n8
	initrd	/casper/initrd
}

At the top of the config on line 7, set terminal_output to gfxterm console

Your config will now look like so:

GRUB Config Modified

Part 2 - Set up hardware

Ensure no hard disks are in the 4 bays of the DX4000.

Into USB port 1 plug your empty USB onto which we will install Ubuntu.

Into USB port 2, plug in your USB hub. Plug your USB keyboard and your Ubuntu install USB into the hub.

Plug in power on power port 1 and network on network port 1.

Part 3 - BIOS configuration

With PuTTY open, press the power button. Spam the DEL key on the USB keyboard (NOT on your PuTTY window using your normal keyboard) You will be presented with the BIOS:

Bios

Go to Save & Exit and select Restore Defaults

Bios Defaults

Select Save Changes and Exit:

Bios Exit

Spam DEL again to enter the BIOS.

Go to Advanced and ensure the settings at the top are configured like so:

Bios Advanced

Under Advanced select IDE Configuration and modify the settings to match below:

Bios Advanced IDE Configuration

Hit ESC once to go back to the Advanced menu, select Serial Port Console Redirection and modify the settings to match below:

Bios Advanced Serial Port Console Redirection

Now select Console Redirection Settings and modify the settings to match below:

Bios Advanced Serial Port Console Redirection - Console Redirection Settings

Hit ESC twice to go back to the Advanced menu.

Scroll to Boot and modify the settings to match below:

Bios Boot

Please note that Boot Option #1 must be configured to the UEFI mode of your Ubuntu installer USB! All other boot options must be disabled.

Go to Save & Exit and select Save Changes and Exit:

Bios Exit

Part 4 - Ubuntu Installation

When your NAS reboots, you will be presented with the Ubuntu Installer GRUB menu:

Ubuntu Installer GRUB

Place your USB keyboard aside (don't unplug). We are now going to use your normal keyboard with PuTTY.

Press enter on the Serial Console Install Ubuntu Server option. The screen will clear for about a minute, but things are happening in the background, give it up to 5 minutes.

You may thing the machine has locked up when you see one of these screens. It has not, let it sit:

Ubuntu not locked up Ubuntu not locked up again

You'll be presented with a question screen for how you should proceed to install. For the purposes of this guide, I will be using Rich mode over the serial console:

Ubuntu installer mode

You will now be presented with the normal Ubuntu Server installer, select your language and keyboard layout:

Ubuntu select language Ubuntu select keyboard layout

For networking, I advise you get as close to your final network config as possible, to avoid having to mess with the Netplan configuration later. For me, I am setting up a static IP on port 1 and disabling port 2. You should disable any ports you are not using, do not leave them on DHCP, otherwise Netplan will expect to get a DHCP address on the interface every boot and hang your entire system for 3 minutes before giving up, not fun:

Ubuntu Network

You can leave proxy address blank, unless you know you need it:

Ubuntu proxy address

You can leave the mirror address blank, unless you know how and why to change it:

Ubuntu mirror address

You can now set up your disk partitions. Ensure you select the correct place to do your install, don't accidentally select your installer USB. Defaults were correct for me:

Ubuntu partitioning

Double check and confirm the new partition layout:

Ubuntu confirm partition layout Ubuntu confirm partition layout again

Configure your personal account:

Ubuntu configure personal account

You will most likely want SSH enabled, so press space on the checkbox to enable it like so:

Ubuntu enable SSH

If you want any additional services to be installed for you, select them here:

Ubuntu additional services

You will now be able to watch the install and update:

Ubuntu install and update

It appears curtin hook keeps spinning even after install completion, so you can select reboot anyway:

Ubuntu ignore curtin hook and reboot

You will be asked to unplug your install USB and reboot with a press of enter:

Ubuntu remove installation medium

Now switch back to the USB keyboard and spam DEL once the system restarts to enter the BIOS once again.

You'll notice the BIOS looks much nicer due to the configuration changes we made earlier:

BIOS After Install

Go to Boot and configure the boot order to match below:

BIOS After Install Boot Order

Go to Save & Exit and select Save Changes and Exit:

BIOS After Install Exit

You will now boot into Ubuntu! Remember, it may take a moment before you start to see console output, but you will be presented with a console which you need to control with PuTTY and your normal keyboard. You can now SSH to your system too, it's all yours!

Complete!

For the sake of it, you can use the command shutdown -h now to shut your DX4000 down, then turn it back on yourself and see it spring to life with no intervention! One Ubuntu server for you to run whatever you want!

Please return to README for links to other guides, such as setting up 4 hard drives with the 4 bays in the NAS!