Skip to content

Latest commit

 

History

History
255 lines (135 loc) · 8.82 KB

InstallDebian.md

File metadata and controls

255 lines (135 loc) · 8.82 KB

Debian Installation Guide

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

You will need the Debian installation ISO to follow this guide. This guide follows the Debian 10.06.0 install process, however differences should be minimal.

Part 1 - Debian Installer

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

Rufus

Select your Debian 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 27, you can see the default boot entry:

menuentry --hotkey=g 'Graphical install' {
    set background_color=black
    linux    /install.amd/vmlinuz vga=788 --- quiet 
    initrd   /install.amd/gtk/initrd.gz
}

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

menuentry --hotkey=g 'Serial Console install' {
    set background_color=black
    linux    /install.amd/vmlinuz vga=off --- console=ttyS1,115200n8
    initrd   /install.amd/gtk/initrd.gz
}

At the top of the config on line 10, 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 Debian.

Into USB port 2, plug in your USB hub. Plug your USB keyboard and your Debian 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 Debian installer USB! All other boot options must be disabled.

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

Bios Exit

Part 4 - Debian Installation

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

Debian 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 option.

Select your language, in my case English, and press enter:

Debian Installer Language

Select your location:

Debian Installer Location

Select your keyboard layout:

Debian Installer Keyboard Layout

Choose the first option for network:

Debian Installer Network

Configure a hostname:

Debian Installer Hostname

You can leave domain name blank:

Debian Installer Domain Name

Configure a root password:

Debian Installer Root Password

Confirm the root password:

Debian Installer Root Password Confirmation

Configure a personal account full name:

Debian Installer Personal Full Name

Configure a personal account username:

Debian Installer Personal Username

Configure a personal account password:

Debian Installer Personal Password

Confirm the personal account password:

Debian Installer Personal Password Confirmation

You may be asked if you want to force UEFI installation. Choose YES:

Debian Installer UEFI Force

When asked how you wish to use the disk, select Guided - use entire disk:

Debian Installer Disk Layout

From the disk selection menu, select the disk you wish to install onto. This is the one placed into USB port 1:

Debian Installer Disk Selection

For partitioning, select All files in one partition:

Debian Installer Disk Partitioning

Confirm writing the partition table:

Debian Installer Disk Partitioning Confirmation

Say Yes to writing changes to the disk:

Debian Installer Disk Partitioning Write Confirmation

The installer will now proceed to spend a while installing everything. Once this has been completed you will be presented with the package management configuration. Choose a suitable server location for where you live:

Debian Installer Package Manager Location

Choose a suitable server in your location:

Debian Installer Package Manager Server

Leave the HTTP proxy empty (unless you know what you need to input) and press enter:

Debian Installer Package Manager HTTP Proxy

Choose whether you wish to participate in package popularity data collection:

Debian Installer Package Data Collection

Configure which packages you want to install by default. Use the up and down arrows to navigate and the space bar to enable and disable items. I disabled Debian desktop environment as we have no video out, print server because I hate printers, I enabled SSH server as I don't want to be forced to use the serial console and kept standard system utilities enabled as they're handy:

Debian Installer Packages Debian Installer Packages

Now you'll need to wait a while whilst the installer finishes installing packages and configures the GRUB bootloader.

Once the installation has finished, you will be presented with the completion screen:

Debian Installer Completed

Unplug the installation USB and press enter, then 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 Debian! You will be presented with a console which you need to control with PuTTY and your normal keyboard.

You can log in and get your DX4000's IP for SSH with the ip a command like so:

IP Address

As you can see my DX4000's IP is 10.0.10.10 on my local network! Lets SSH to that (root SSH is disabled, see SSHd config to enable that):

SSH

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 Debian 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!