New Ubuntu 22.04 homelab server notes
I set up my new home server with Ubuntu 22.0. Here’s notes on what I did in August 2022. See also January 2019 and July 2019. Still doing all this stuff by hand like a craftsman; no Docker for me! The Ubuntu docs are worse than ever and Google has gotten much worse for looking for info. Adding “arch” to Linux search terms often helps find useful docs.
Generic system things:
- Install Ubuntu 22.04 server image, UEFI boot, btrfs for the root partition
- Use tmpfs for /tmp
- Enable universe packages, updated apt
- Set up a static IP address
- Install chrony
- Install mainline kernel via the cappelikan PPA. 5.19 includes i5-12600K tweaks not in 5.15.
- Set up watchdog daemon with iTCO_wdt hardware watchdog and watching ethernet. (Does not seem to actually be rebooting the system when needed.)
- Install libnss-mdns so .local DNS queries work
- Install mailutils and set up Postfix for Local only
- Turn off sudo email spam
- Install a bunch of command line software via apt
joe stress-ng stress s-tui smartmontools zip unzip rsync openssl webp plocate ripgrep pigz
python3 python-is-python3 python3-venv python3-dev pkg-config build-essential sqlite3 - Install Samba, configure SMB1 (aka LANMAN) support. Gave up trying to make this work for Sonos.
- Set up port forwarding on my router. Had to reboot the Ubiquiti Dream Machine; config changes weren’t taking.
- Set up rsnapshot. I’ll eventually move to a btrfs-specific backup program if I can find one.
- Verify BIOS allows virtualization
apt install cpu-checker; kvm-ok
Special apps and personal configuration:
- Set up my /home/nelson environment
- Install jellyfin ffmpeg from a PPA for hardware accelerated transcoding
- Install nodejs 18 from a PPA
- Install plexmediaserver from the secret apt repository. Also install intel-opencl-icd. Reconfigure.
- Set up a group nzb for various Usenet things to all belong to. Make sure to set up each system to use this group as its primary group and make things group writeable.
- Install sabnzbdplus from the Ubuntu repository. Set up user nzb to run it. Copy config from old system. Manually install par2-tbb because there’s no jammy build in the PPA.
- Install sonarr from Sonarr focal repository. Reconfigure and re-add all my data because they moved config files around too much.
- Install radarr into
/home/radarrby copying from my old install. They don’t have any sort of packaging for Linux. - Install syncthing from their apt repository. Copy config from old machine (which is risky); be sure the files are in place on the new system before starting to sync!
- Install Caddy as a web server. Just couldn’t stomach another round of Apache config files. Caddy doesn’t support cgi-bin (easily) so it’s not a perfect fit for my “light dev server” need. But it’s definitely a lot simpler than Apache 2.4.
Things I didn’t have to do this time:
- Configure fsck at boot. The default is now “preen” which means “fix safe things automatically”.
I’m a little cranky how hard some of this stuff was to get working. Particularly anything outside standard Ubuntu packages. Lots of things haven’t been updated for jammy / 22.04.
APT changed things so apt-key add is now deprecated but the new method is not clearly documented. Apparently I’m supposed to manage my own keys using gpg? See my blog post for info on what to do, or example here or instructions here. What a UX regression.
Comments
Love these! And, no unattended-upgrades?
unattended-upgrades is installed by default now! At least in 22.04 server.