đź’ Tyblog | systemd has been a complete, utter, unmitigated success
I found this post on systemd this morning, and although I've been a Linux user for around 6 years now, there's some leve
No themes match.
I found this post on systemd this morning, and although I've been a Linux user for around 6 years now, there's some leve
Came across a blog and article on using a mobile OS to self-host a cluster on old phones... I happen to keep several old
I'm getting sucked into the Linux is a kernel not an operating system crowd because tonight I realized I couldn't descri
sudo apt-get install -y samba \ then set sharesmb=on \ chown the user \ smbpasswd
I use LSIO Jelyfin container for the easy addon they provide for AMD GPUs but I couldn’t get trickplay to work with HWE…
There was almost NOTHING on the internet about the error, and all the threads were about BSD systems…
Thankfully someone posted on the formum here but the only answer was to literally upgrade stuff in the container…
Someday maybe I’ll build off of LSIO to add this, but until then I shell’d in and homelab’d the hell out of it
THIS IS INSIDE THE CONTAINER - I use Portianer to make it easy
apt update && apt install -y curl gpg
mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor -o /etc/apt/keyrings/rocm.gpg
cat <<EOF | tee /etc/apt/sources.list.d/rocm.sources
Types: deb
URIs: https://repo.radeon.com/rocm/apt/latest
Suites: ubuntu
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/rocm.gpg
EOF
apt update && apt install -y rocm-opencl-runtime
I am moving a hefty amount of data to a new ZFS pool due to some corruption and I want to avoid using zfs send/recv for this just to make sure I don’t propagate any corrupted data to my new pool.
I’ve used rsync for simple things before but I needed this to be a little smarter and I wanted to see simple progress without flooding my terminal with a billion filenames.
TLDR:
rsync -aHAX --chmod=Da+s --info=progress2 --inplace --exclude='encrypted/docker/frigate-media' /tank/ /harbor/
-aHAX: Preserves attributes (archive mode, hard links, ACLs, extended attributes). –chmod=Da+s: Ensures the setgid bit is applied to directories. –info=progress2: Provides detailed progress information, including overall data transfer stats. –inplace: Writes directly to the destination file, avoiding temporary files (useful for large files). –exclude=‘encrypted/docker/frigate-media’: Excludes the specified path (relative to the /tank root). /tank/ /harbor/: Ensures the contents of /tank are copied directly into /harbor.
I recently have been having significant home server issues, and that’s not the point of this - today I learned what D state is when looking at htop.
Apparently this means “uninterruptable sleep” and it’s a dev’s nightmare…
The issue I was having was that some zfs rollback commands were hung - for hours… I wasn’t sure what was going on, rollbacks should be instant but I figured it was just an artifact of these issues.
Turns out I still don’t know what locked the disks up but I learned why <C>-c did nothing…
the more you know
hostnamectl is apparently a linux utility for easily changing your hostname in a variety of ways
❯ hostnamectl --help
hostnamectl [OPTIONS...] COMMAND ...
Query or change system hostname.
Commands:
status Show current hostname settings
hostname [NAME] Get/set system hostname
icon-name [NAME] Get/set icon name for host
chassis [NAME] Get/set chassis type for host
deployment [NAME] Get/set deployment environment for host
location [NAME] Get/set location for host
Options:
-h --help Show this help
--version Show package version
--no-ask-password Do not prompt for password
-H --host=[USER@]HOST Operate on remote host
-M --machine=CONTAINER Operate on local container
--transient Only set transient hostname
--static Only set static hostname
--pretty Only set pretty hostname
--json=pretty|short|off
Generate JSON output
See the hostnamectl(1) man page for details.
I learned there’s transient and static hostnames, so that’s cool…
The thing I needed was hostnamectl --static hostname babyblue-aurora
pretty sweet tool
I rebooted by server and DNS broke randomly. I have no idea if it was from a kernel update or what but that’s the issue with Ubuntu I guess…
After much toil and none of the other options working for me (sorry to not have those documented here) this is what got me the vic from this SO Post
sudo mkdir /etc/systemd/resolved.conf.d/ sudo $EDITOR /etc/systemd/resolved.conf.d/dns_servers.conf
Most folks probably are good with google (8.8.8.8) and cloudflare (1.1.1.1)
[Resolve]
DNS=8.8.8.8 1.1.1.1
But I decided to use tailscale
[Resolve]
DNS=100.100.100.100
Then restart systemd-resolved
sudo systemctl restart systemd-resolved