Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[audiobookshelf] add guide #1752

Open
knhash opened this issue Apr 20, 2024 · 0 comments
Open

[audiobookshelf] add guide #1752

knhash opened this issue Apr 20, 2024 · 0 comments

Comments

@knhash
Copy link
Contributor

knhash commented Apr 20, 2024

I have been able to get audiobookshelf up and running in my instance. It is a "Self-hosted audiobook and podcast server"

The following are the commands for anyone else to quickly follow along.

I will be writing a guide for this in the coming week.

Note: the sqlite3 rebuild is a necessary step due to an issue, also referenced here: thelounge/thelounge#4855

Instructions:


mkdir audiobookshelf

cd audiobookshelf

wget -O ~/audiobookshelf/docker-image-extract https://raw.githubusercontent.com/jjlin/docker-image-extract/main/docker-image-extract

chmod +x docker-image-extract

./docker-image-extract advplyr/audiobookshelf

mv output audiobookshelf

cd audiobookshelf

mkdir metadata

mkdir config

export NODE_ENV='production'

export CONFIG_PATH='/home/knhash/audiobookshelf/audiobookshelf/config'

export METADATA_PATH='/home/knhash/audiobookshelf/audiobookshelf/metadata'

export PORT=13378

npm install

cd node_modules/sqlite3

npm rebuild sqlite3 --build-from-source

cd ../..

npm start

uberspace web domain add `your.domain`

uberspace web backend set `your.domain` --http --port 13378

vi ~/etc/services.d/audiobookshelf.ini

---

[program:audiobookshelf]
environment=
  NODE_ENV="production",
  CONFIG_PATH="%(ENV_HOME)s/audiobookshelf/audiobookshelf/config",
  METADATA_PATH="%(ENV_HOME)s/audiobookshelf/audiobookshelf/metadata",
  PORT=13378
directory=%(ENV_HOME)s/audiobookshelf/audiobookshelf
command=npm run start
autostart=yes
autorestart=yes
startsecs=30

---

supervisorctl reread

supervisorctl update

supervisorctl status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant