Easiest way to edit files on TrueNAS using emacs (via tramp mode)

I’ve been using emacs for 48 years since it was first invented by Richard Stallman at MIT in 1976 as a successor to TECO.

So I wasn’t too thrilled to not have it available to edit files on TrueNAS.

I just found a workaround: tramp mode.

So you from any linux you can install emacs on, you can do things like:

emacs /ssh:truenas:path/to/foo.txt
emacs /ssh:username@truenas:/path/to/foo.txt