Hallo Zusammen, folgendes gibt mir Rätsel auf:
Das hier funktioniert soweit:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | user@darts-thinclient:~/.local/bin$ ./autodarts-caller -U user@gmail.com -P secret -B scecret-M /home/user/autodarts/caller_sound_packs -V 1.0 -R 1 -L 1 -RL 0 -RG 0 -CCP 1 -CCP 1 -E 1 -ESF 0 -PCC 1 -PCCSF 0 -PCCYO 0 -A 1.0 -AAC 0 -DL 0 -DLLA 0 -DLL 0 -WEB 2 -WEBSB 0 -WEBP 5000 pygame 2.3.0 (SDL 2.24.2, Python 3.8.18) Hello from the pygame community. https://www.pygame.org/contribute.html ########################################## WELCOME TO AUTODARTS-CALLER ########################################## VERSION: 2.7.1 RUNNING OS: Linux | posix | 6.1.0-17-amd64 SUPPORTED GAME-VARIANTS: X01 Cricket Random Checkout ATC DONATION: bitcoin:bc1q8dcva098rrrq2uqhv38rj5hayzrqywhudvrmxa 16 voice-pack(s) found. alicia-f-english-us-canada russ-m-english-uk en-us-wavenet-g-female-v3 en-us-wavenet-e-female-v3 charles-m-english-us-canada kushal-m-english-india kylie-f-english-australia mitch-m-english-australia ava-f-english-us-canada aiden-m-english-uk en-us-wavenet-a-male-v3 ethan-m-english-us-canada clint-m-english-us-canada theo-m-english-uk emily-f-english-scottish ruby-f-english-uk Your current caller: russ-m-english-uk knows 182 Sound-file-key(s) * Serving Flask app 'autodarts-caller' (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on all addresses (0.0.0.0) * Running on http://127.0.0.1:5000 * Running on http://192.168.102.99:5000 Press CTRL+C to quit Websocket connected |
Das hier nicht:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | root@darts-thinclient:/home/user/.local/bin# ./autodarts-caller -U user@gmail.com -P secret-B secret -M /home/user/autodarts/caller_sound_packs -V 1.0 -R 1 -L 1 -RL 0 -RG 0 -CCP 1 -CCP 1 -E 1 -ESF 0 -PCC 1 -PCCSF 0 -PCCYO 0 -A 1.0 -AAC 0 -DL 0 -DLLA 0 -DLL 0 -WEB 2 -WEBSB 0 -WEBP 5000 pygame 2.3.0 (SDL 2.24.2, Python 3.8.18) Hello from the pygame community. https://www.pygame.org/contribute.html ########################################## WELCOME TO AUTODARTS-CALLER ########################################## VERSION: 2.7.1 RUNNING OS: Linux | posix | 6.1.0-17-amd64 SUPPORTED GAME-VARIANTS: X01 Cricket Random Checkout ATC DONATION: bitcoin:bc1q8dcva098rrrq2uqhv38rj5hayzrqywhudvrmxa ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave Failed to initialize audio device! Make sure the target device is connected and configured as os default. A device connected by HDMI can cause problems; use standard audio-jack instead. |
Und richtig verwirrend: das hier auch nicht:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | root@darts-thinclient:/home/user/.local/bin# sudo -u user ./autodarts-caller -U user@gmail.com -P secret -B secret -M /home/user/autodarts/caller_sound_packs -V 1.0 -R 1 -L 1 -RL 0 -RG 0 -CCP 1 -CCP 1 -E 1 -ESF 0 -PCC 1 -PCCSF 0 -PCCYO 0 -A 1.0 -AAC 0 -DL 0 -DLLA 0 -DLL 0 -WEB 2 -WEBSB 0 -WEBP 5000 pygame 2.3.0 (SDL 2.24.2, Python 3.8.18) Hello from the pygame community. https://www.pygame.org/contribute.html ########################################## WELCOME TO AUTODARTS-CALLER ########################################## VERSION: 2.7.1 RUNNING OS: Linux | posix | 6.1.0-17-amd64 SUPPORTED GAME-VARIANTS: X01 Cricket Random Checkout ATC DONATION: bitcoin:bc1q8dcva098rrrq2uqhv38rj5hayzrqywhudvrmxa ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave Failed to initialize audio device! Make sure the target device is connected and configured as os default. A device connected by HDMI can cause problems; use standard audio-jack instead. |
Die dringenste Frage, die ich mir dazu Stelle ist, worin genau liegt der Unterschied zwischen dem Ausführen direkt als user und dem ausführen als root mit sudo -u user?
Es handelt sich um folgende software: https://github.com/lbormann/autodarts-caller?tab=readme-ov-file#headless-os, die allerdings nicht von mir sondern von einem Kollegen, wie inder Sektion "headless-os" beschrieben, installiert wurde.
Bearbeitet von umbhaki:
In besser geeignetes Forum verschoben.