CentOS 7 RPM Specfile for liquidsoap
curl -o /etc/yum.repos.d/liquidsoap.repo \ http://download.opensuse.org/repositories/home:/radiorabe:/liquidsoap/CentOS_8/home:radiorabe:liquidsoap.repo dnf config-manager --enable PowerTools dnf install https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm dnf install liquidsoap
You might have to install some dependencies explicitly to get all the parts you need to work. This is due to the fact that liquidsoap does some runtime detection and to allow for unbloated installs where advanced features are not needed.
You can run
liquidsoap directly on the command line to verify it is working but will want to run scripts automatically as user
liquidsoap at some stage.
The RaBe liquidsoap distribution comes bundles with an instantiable systemd service file that takes over the job of upstreams upstart config. While this
does not automatically loop over
/etc/liquidsoap and start all the contained scripts, configuring it is rather easy.
# enable and start the bundled example script cp /etc/liquidsoap/radio.liq.example /etc/liquidsoap/radio.liq systemctl enable liquidsoap@radio systemctl start liquidsoap@radio # add an addtional script and start it echo "out(sine())" > /etc/liquidsoap/sine-example.liq systemctl enable liquidsoap@sine-example systemctl start liquidsoap@sine-example
Allow ALSA access for liquidsoap
If your liquidsoap script needs to access ALSA you need to make sure the
liquidsoap user is allowed to access the subsytem.
usermod -G audio -a liquidsoap
You could also create the
liquidsoap user beforehand and ensure that it has access before installing liquidsoap.
If you want to enable
%fdkaac output you will need to provide a library that can be loaded dynamically. These
instructions need updating for CentOS 8 with Liquidsoap 1.4.x
yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm yum install ocaml-fdkaac
After installing the dynamic lib you can check the output of
liquidsoap -v 'out(sine())' for the following line.
2018/09/14 16:46:50 [dynamic.loader:3] Loaded dynamic fdkaac encoder from /usr/lib64/ocaml/fdkaac