Repository navigation
Installing on Proxmox
One command on the Proxmox host makes a container and installs the app into it. No Docker, no image to pull — a Debian container, node, ffmpeg, the app at its newest released version, and a service that starts at boot.
On the host's shell, not inside a container:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Starf0x/my-audiobook-collection/main/ct/my-audiobook-collection.sh)"
It is a Proxmox VE Helper Script, and it behaves like every other one because it is one: the banner, Default settings or Advanced settings, the storage list, the spinners and the line at the end with the address all come from the community-scripts engine. If you have run one of those before, you already know this screen.
Take Default settings and it makes:
| Debian | 13 |
| CPU | 2 cores |
| RAM | 1024 MB |
| Disk | 8 GB |
| Privileged | yes — see below |
| Tags | media;audiobooks |
Advanced settings asks you each of those in turn, plus the container ID, the hostname, the storage pool and the network. Nothing it asks for has a wrong answer; the defaults are simply what this app wants.
Why privileged. This app writes to your audiobooks over a bind mount, and an
unprivileged container shifts every user id by 100000: PUID=99 inside the
container is 100099 on the host, which owns nothing. The app is then refused
permission to write in a collection whose permissions look perfectly right from
the host — a whole evening to work out from the other end. Privileged is the
usual answer for a container that writes to a media share, so that is what this
defaults to.
If you would rather keep it unprivileged, choose that under Advanced and map
the owning group through instead — on the host, with the container stopped, in
/etc/pve/lxc/<id>.conf:
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 100
lxc.idmap: g 100 100 1
lxc.idmap: g 101 100101 65435
That example maps gid 100 straight through; use the gid that owns your
audiobooks, which stat -c '%g' /host/path/to/Audiobooks tells you. The
installer looks at /proc/self/uid_map, and if it finds a shift it says so
during the install and carries on — the app will start either way, it is only
writing to the collection that is at stake.
The container is the app. Your collection stays on the host, and mounting it is the host's job — which is why the script finishes by printing these two lines with your container's number already filled in:
pct set <id> -mp0 /host/path/Audiobooks,mp=/audiobooks
pct set <id> -mp1 /host/path/Import,mp=/import
pct reboot <id>
Run them on the host, with your own paths. mp0 is your collection; mp1 is
where newly downloaded books land, and you can leave it out if you never import.
The reboot is not optional — a running container does not see a mount point added
under it.
Then open http://<container-ip>:8523 and carry on with
Setting up your library. Inside the app the folders are /audiobooks and
/import, not the paths they have on the host.
The app has no administrator yet, and until it has one nothing in it opens — not the shelves, not the player, not the settings. The first page asks for a name and a password of at least eight characters, and makes that the administrator. It is kept in the app's own database, hashed.
After that, Sharing with others is how everybody else gets in.
/etc/my-audiobook-collection.env |
every setting, the same names the Docker image takes. 0600, because it holds the admin password and the tokens |
/var/lib/my-audiobook-collection |
the database, the covers and backups/. On the container's own disk, not on the share: it is the one thing your audio files cannot rebuild |
/opt/my-audiobook-collection |
the app itself, a git checkout at the released tag |
journalctl -u my-audiobook-collection -f |
what it is doing |
Edit the settings file, then systemctl restart my-audiobook-collection. The
installer writes that file once and never overwrites it, so running the
install again later leaves your password and your tokens alone.
PUID and PGID are who the app writes as — 99 and 100 by default,
which is nobody:users. Set them to the user that owns your audiobooks if that is
somebody else; stat -c '%u %g' /audiobooks inside the container says who that
is. The service starts as root on purpose and drops to PUID:PGID before it
creates anything, so the folders it makes on your share are yours and not root's.
It refuses to carry on as root unless you set ALLOW_ROOT=1.
See Settings reference for what each setting does.
The app tells you. When a newer version is out there is a red dot on the icon in the top-left corner, and Install the update appears in the Settings ▾ menu. Settings ▾ → Library and maintenance → Version says the same thing in words, with a button beside it.
Pressing it stops the app for a moment and brings it back on the new version. The page waits, says Updated to v… when the new version is answering, and reloads itself. Your database, your settings and your audiobooks are not touched.
The same thing from a shell in the container, if you would rather:
my-audiobook-collection-update
Both do the same steps in the same order: fetch the tags, check out the newest
released one, npm ci --omit=dev, restart. Neither takes main, which is where
work in progress lands — a tag is a version that passed its checks and was
published.
The app does not update itself, and that is deliberate. It runs as PUID,
not as root, so it can neither write in /opt nor restart a service. Pressing
the button writes a small file in its data folder; a root-owned systemd path unit
notices that file and does the work. The root side only ever does that one fixed
thing, so a web page that anybody on your network can reach is not a web page
that can run arbitrary commands as root.
If an update goes wrong the app says so the next time you open Version —
the updater leaves a note behind, because it restarted the page that asked and
had no way to answer it. journalctl -u my-audiobook-collection-update has the
detail.
Inside the container, if you want the app gone but the container kept:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Starf0x/my-audiobook-collection/main/install/uninstall.sh)"
It removes the service, the app and the updater, and keeps your database and
your settings file — those are the two things that cannot be got back. Add
--purge and it takes those too, listing them and asking first.
If you want the whole thing gone, destroying the container is shorter:
pct stop <id> && pct destroy <id>
Neither touches your audiobooks. They are on the host, mounted in; nothing the app removes is inside them.
There is no second installer. There was one once — a one-liner that installed onto whatever machine it was run on — and the trouble with it was exactly that: pasted at a host prompt, which is the obvious place to paste a one-liner, it put node, ffmpeg and a service on the hypervisor itself. Proxmox has a standard for this and the app follows it, so there is one command and it is the one at the top of this page.
For a container you made yourself, or Unraid's own LXC support, use Installing on Unraid — the Docker image runs anywhere Docker does.
![]()