I found this: [Request] Logitech Media Server docker
But I don't fully understand how to set it up. Maybe someone can write a little step by step howto?
I found this: [Request] Logitech Media Server docker
But I don't fully understand how to set it up. Maybe someone can write a little step by step howto?
Alright. I figured it out.
1. ssh to rapi/libreelec
2. mkdir -p /storage/.kodi/docker/arm32v7/lms
3. cd /storage/.kodi/docker/arm32v7/lms
4. wget master.zip && unzip master.zip
5. move all files from master.zip directly into the folder we just created /storage/.kodi/docker/arm32v7/lms
6. Replace the existing Dockerfile with the following:
FROM arm32v7/debian:stretch-slim
ENV SQUEEZE_VOL /srv/squeezebox
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV PACKAGE_VERSION_URL=http://downloads.slimdevices.com/nightly/7.9/sc…5659378_arm.deb
RUN apt-get update && \
apt-get -y install curl wget faad flac lame sox libio-socket-ssl-perl && \
apt-get clean
RUN url=$PACKAGE_VERSION_URL && \
curl -Lsf -o /tmp/logitechmediaserver.deb $url && \
dpkg -i /tmp/logitechmediaserver.deb && \
rm -f /tmp/logitechmediaserver.deb && \
apt-get clean
# This will be created by the entrypoint script.
RUN userdel squeezeboxserver
VOLUME $SQUEEZE_VOL
EXPOSE 3483 3483/udp 9000 9090
COPY entrypoint.sh /entrypoint.sh
COPY start-squeezebox.sh /start-squeezebox.sh
RUN chmod 755 /entrypoint.sh /start-squeezebox.sh
ENTRYPOINT ["/entrypoint.sh"]
7. still inside the folder /storage/.kodi/docker/arm32v7/lms do: docker build -t arm32v7/lms /storage/.kodi/docker/arm32v7/lms
8. After creation is done > cd /storage/.kodi/addons/service.system.docker/examples
9. nano logitech-media-server.service
10. paste:
[Unit]
Description=logitech-media-server container
Requires=service.system.docker.service
After=service.system.docker.service
[Service]
Restart=always
RestartSec=10s
TimeoutStartSec=0
ExecStartPre=-/bin/sh -c "mkdir -p /storage/.kodi/userdata/Apps/LMS"
ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run \
--rm \
--name=logitech-media-server \
--hostname=libreelec-logitech-media-server \
-p 9000:9000 \
-p 3483:3483 \
-p 3483:3483/udp \
-e TZ=Europe/Berlin \
-v /storage/.kodi/userdata/Apps/LMS:/srv/squeezebox \
-v /var/media:/srv/music \
arm32v7-lms
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop logitech-media-server
[Install]
WantedBy=multi-user.target
11. systemctl enable /storage/.kodi/addons/service.system.docker/examples/logitech-media-server.service
12. systemctl start logitech-media-server.service
13. journalctl -u logitech-media-server should show the service has started
14. open your browser and open your server...
Thanks for the howTo!
I want to install Logitech Media Server as an Docker Container on my Raspberry Pi 3 B+ running Libreelec.
I followed your instructions but at stepp 11. I get the errormessage:
Failed to enable unit: File /storage/.kodi/addons/service.system.docker/examples/logitech-media-server.service: Invalid argument
can you please help me?
could you please show the content of that file? Maybe there´s some typo?
Thanks for your reply!
this is the content of the file:
/storage/.kodi/addons/service.system.docker/examples/logitech-media-server.service
[Unit]
Description=logitech-media-server container
Requires=service.system.docker.service
After=service.system.docker.service
[Service]
Restart=always
RestartSec=10s
TimeoutStartSec=0
ExecStartPre=-/bin/sh -c "mkdir -p /storage/.kodi/userdata/Apps/LMS"
ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run \
--rm \
--name=logitech-media-server \
--hostname=libreelec-logitech-media-server \
-p 9000:9000 \
-p 3483:3483 \
-p 3483:3483/udp \
-e TZ=Europe/Berlin \
-v /storage/.kodi/userdata/Apps/LMS:/srv/squeezebox \
-v /var/media:/srv/music \
arm32v7-lms
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop
logitech-media-server
[Install]
WantedBy=multi-user.target
Display More
could you find any errors?
I just updated this, should be working fine.