Skip to content
Snippets Groups Projects
Verified Commit 66091200 authored by Ole Binder's avatar Ole Binder
Browse files

Fix: rename AURA_USER_ID

Rename the AURA_USER_ID variable to PIPEWIRE_USER_ID to reflect the intention of this variable. This needs to be the uid of the user running the pipewire server. #64
parent 32c15827
Branches
No related tags found
1 merge request!8Feat jack support
Pipeline #7277 passed
...@@ -180,6 +180,21 @@ Voilá, you should hear some music! ...@@ -180,6 +180,21 @@ Voilá, you should hear some music!
When running engine-core with docker compose you need a different configuration file to start with. Have a look at `config/sample.engine-core.docker.ini` and copy it to `config/engine-core.ini` (FIXME: this uses the overwrite in /etc/aura/ and is not the best of options). Do not change the paths here, rather change them in `sample.env` and copy this file to `.env`. Make sure the directories in `.env` are read and writable for the user used in the container, mainly `aura(2872:2872)`. When running engine-core with docker compose you need a different configuration file to start with. Have a look at `config/sample.engine-core.docker.ini` and copy it to `config/engine-core.ini` (FIXME: this uses the overwrite in /etc/aura/ and is not the best of options). Do not change the paths here, rather change them in `sample.env` and copy this file to `.env`. Make sure the directories in `.env` are read and writable for the user used in the container, mainly `aura(2872:2872)`.
It is important to set the `PIPEWIRE_USER_ID` to the uid of the user running pipewire. To check which user is running the pipewire server run the following:
```bash
ps -fp $(pgrep -d, -x pipewire)
# UID PID PPID C STIME TTY TIME CMD
# loxbie 2034 2025 0 09:19 ? 00:00:00 /usr/bin/pipewire
```
```bash
id -u loxbie
# 1000
```
You can now build the container with You can now build the container with
```bash ```bash
......
...@@ -61,7 +61,7 @@ services: ...@@ -61,7 +61,7 @@ services:
AURA_ENGINE_STREAM_OUTPUT_GENRE: ${AURA_ENGINE_STREAM_OUTPUT_GENRE} AURA_ENGINE_STREAM_OUTPUT_GENRE: ${AURA_ENGINE_STREAM_OUTPUT_GENRE}
volumes: volumes:
# this needs to be the path of the user running pipewire, most likely the current user # this needs to be the path of the user running pipewire, most likely the current user
- /run/user/${AURA_USER_ID}/pipewire-0:/tmp/pipewire-0 - /run/user/${PIPEWIRE_USER_ID}/pipewire-0:/tmp/pipewire-0
- ${AURA_AUDIO_STORE_SOURCE}:/var/audio/source - ${AURA_AUDIO_STORE_SOURCE}:/var/audio/source
- ${AURA_AUDIO_STORE_PLAYLIST}:/var/audio/playlist - ${AURA_AUDIO_STORE_PLAYLIST}:/var/audio/playlist
- ${AURA_AUDIO_STORE_FALLBACK}:/var/audio/fallback - ${AURA_AUDIO_STORE_FALLBACK}:/var/audio/fallback
......
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
# Timezone # Timezone
TIMEZONE=Europe/Vienna TIMEZONE=Europe/Vienna
# Folder to store service log files # Folder to store service log files
AURA_LOGS=logs AURA_LOGS=./logs
AURA_USER_ID=2872
# The user id under which the pipewire server is running
PIPEWIRE_USER_ID=1000
### AUDIO STORE ### AUDIO STORE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment