Gerbera

Installation de Gerbera

(Référence: http://docs.gerbera.io/en/latest/daemon.html)

sudo add-apt-repository ppa:stephenczetty/gerbera-updates
curl -fsSL https://gerbera.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -
sudo apt install libebml5 libmatroska7 libpugixml1v5 libwavpack1
sudo apt install gerbera_1.12.1-jammy1_amd64.deb
id -u gerbera
sudo systemctl status gerbera
sudo chown -Rv gerbera:gerbera /var/lib/gerbera
sudo nano /etc/gerbera/config.xml

Vérifier les ajustements pour l’interface ainsi que l’utilisation de l’UTF-8 pour l’affichage correct des caractères accentués:

...
<ui enabled="yes" show-tooltips="yes"> <accounts enabled="no" session-timeout="30"> <account user="gerbera" password="gerbera"/> </accounts> </ui> 
... 

... 
<import hidden-files="no"> <filesystem-charset>"UTF-8"</filesystem-charset> <metadata-charset>"UTF-8"</metadata-charset> <playlist-charset>"UTF-8"</playlist-charset>
...
...
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="no" session-timeout="30">
<account user="gerbera" password="gerbera"/>
</accounts>
</ui>
<interface>eno1</interface>
<port>49152</port>
<!--<ip>192.168.0.2</ip>-->
<name>gerbera</name>
<udn>uuid:95c6497b-5ae2-4474-9b93-6e011ebec639</udn>
<home>/var/lib/gerbera</home>
<webroot>/usr/share/gerbera/web</webroot>
<!--
How frequently (in seconds) to send ssdp:alive advertisements.
Minimum alive value accepted is: 62

The advertisement will be sent every (A/2)-30 seconds,
and will have a cache-control max-age of A where A is
the value configured here. Ex: A value of 62 will result
in an SSDP advertisement being sent every second.
-->
<alive>1800</alive>
<storage>
<sqlite3 enabled="yes">
<database-file>gerbera.db</database-file>
<on-error>restore</on-error>
</sqlite3>
<mysql enabled="no">
<host>localhost</host>
<username>gerbera</username>
<database>gerbera</database>
</mysql>
</storage>
...
sudo chown -Rv gerbera:gerbera /etc/gerbera
cd /etc/systemd/system/
sudo nano gerbera.service
[Unit]
Description=Gerbera upnp server Daemon
After=network-online.target

[Service]
Type=simple
User=gerbera
Group=gerbera
#Group=sambashare
#UMask=007
ExecStart=/usr/bin/gerbera -c /etc/gerbera/config.xml
TimeoutStartSec=0
RemainAfterExit=yes
Restart=on-failure

# Configures the time to wait before service is stopped forcefully.
TimeoutStopSec=300

[Install]
WantedBy=multi-user.target
sudo chmod 664 /etc/systemd/system/gerbera.service
sudo systemctl daemon-reload
sudo systemctl enable gerbera
sudo service gerbera restart

L’URL de la page web de Gerbera est: http://192.168.0.2:49152/