Home Server Worklog
Introduction
Setting up a home server on an MeLE Fanless Mini PC.
Prerequisites
Download the Debian operating system from debian.org. As of writing, the current installation image is debian-12.5.0-amd64-netinst.iso
. Verify the authenticity of this file.
|
Run diskutil list
and find the appropriate /dev/disk#
for the bootable USB. For example:
|
In the above example, my USB is on /dev/disk4
. Replace this with the appropriate number for your situation.
Unmount the disk using sudo diskutil unmountDisk /dev/disk4
.
Copy the iso to /dev/disk4
using sudo dd if=debian-12.5.0-amd64-netinst.iso of=/dev/disk4 && sync
.
Lastly, run sync
and sudo diskutil eject /dev/disk4
before removing the USB.
Installing Debian on MeLE PC
Attach the USB drive and press and hold the delete
key after seeing the intel logo appear on the screen.
This should open up the BIOS menu. Navigate to the Boot override and select the USB drive with the debian operating system. Select Install. Proceed through the installation steps as prompted.
Hostname: mele
Domain Name: home.udia.ca
(no DNS record currently exists)
Do not set a root password. Proceed with setting up a user account.
I picked Guided - use entire disk for partitioning.
This device is intended to be a server, so do not install a Debian desktop environment. I choose to install an SSH server and the standard system utilities. Once this is complete, proceed with the reboot.
Server Quality of Life
Refer to the Server Quality of Life document for additional server setup. Specifically, refer to the SSH Daemon configuration.
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@ip
(from local machine to server)
sudo apt install vim
sudo vim /etc/ssh/sshd_config.d/99-harden.conf
|
sudo systemctl restart sshd
sudo vim /etc/sudoers.d/99-alexander
|