Home ServerInstallation

Distro Installation

You must first download the .iso file from: https://ubuntu.com/download/server.

Insert a USB flash drive and list all connected disks with

diskutil list

Unmount the disk

diskutil unmountDisk /dev/disk2

Create a bootable USB flash drive

sudo dd if=/home/gordonpn/Downloads/ubuntu-24.04.1-live-server-amd64.iso of=/dev/rdisk2 bs=4M status=progress

For better performance, use the raw device interface (/dev/rdiskN) instead of the block device (/dev/diskN). The r prefix allows faster data transfer.

Eject the disk after completion

diskutil eject /dev/disk2

Now, you can insert the USB flash drive into the device and boot into it, follow the instructions on screen.

Once booted into the newly installed distro, if you need to write zeroes across an entire disk

lsblk
df -h
sudo dd if=/dev/zero of=/dev/sdX bs=4M status=progress