User Tools

Site Tools


doc:appunti:hardware:software_radio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
doc:appunti:hardware:software_radio [2026/02/23 09:15] – created niccolodoc:appunti:hardware:software_radio [2026/02/23 11:22] (current) – [User's systemd] niccolo
Line 1: Line 1:
 ====== Software IP radio and podcast player ====== ====== Software IP radio and podcast player ======
 +
 +===== User's systemd =====
 +
 +When using the **systemd** command with the **%%--user%%** option to install units by the unprivileged user, the environment must have the variables **$DBUS_SESSION_BUS_ADDRESS** adn **$XDG_RUNTIME_DIR** defined. In a Debian 13 Trixie system these variables are initialized if you login on a virtual terminal or if you login remotely via ssh. They are not defined if you execute **su - username**.
 +
 +Ho to test if a script can run as a systemd user service:
 +
 +<code>
 +systemd-run --user --scope --unit=test-debug /home/radio/radio/radio-backend
 +</code>
 +
 +To read the service log (stdout redirected to journal by systemd):
 +
 +<code>
 +journalctl --user -u radio-backend.service
 +</code>
  
doc/appunti/hardware/software_radio.1771834520.txt.gz · Last modified: by niccolo