The installation guide uses apt get wget etc. How to adapt that for LE?
SSH
The installation guide uses apt get wget etc. How to adapt that for LE?
SSH
The installation guide uses apt get wget etc. How to adapt that for LE?
It has not to be adapted to LE. You don't want to install it into LE, but into the docker container. A quick view has shown me that the docker container is based on ubuntu. So open a bash inside the container and you can follow the installation guide.
should do the job.
Gerald
It has not to be adapted to LE. You don't want to install it into LE, but into the docker container. A quick view has shown me that the docker container is based on ubuntu. So open a bash inside the container and you can follow the installation guide.
should do the job.
Gerald
Which of the following is the 'name of container'?
# docker ps --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
142081729b2f larsks/logitech-media-server "/entrypoint.sh" 9 minutes ago Up 9 minutes 0.0.0.0:3483->3483/tcp, 0.0.0.0:9000->9000/tcp, 0.0.0.0:3483->3483/udp, 9090/tcp backstabbing_noether
6a74ec2a55a3 larsks/logitech-media-server "/entrypoint.sh" 14 minutes ago Exited (0) 9 minutes ago cranky_euler
f7b9b22a6c30 larsks/logitech-media-server "/entrypoint.sh" 15 minutes ago Exited (0) 14 minutes ago romantic_brattain
1506301b17e0 larsks/logitech-media-server "/entrypoint.sh" 22 minutes ago Exited (0) 16 minutes ago jolly_bardeen
e00a214f16d1 larsks/logitech-media-server "/entrypoint.sh" 23 minutes ago Exited (0) 23 minutes ago amazing_volhard
5fc2b98541e3 larsks/logitech-media-server "/entrypoint.sh" 26 minutes ago Exited (0) 24 minutes ago boring_allen
3cdfe6320bab larsks/logitech-media-server "/entrypoint.sh" 35 minutes ago Exited (0) 31 minutes ago dreamy_easley
518e941e37f2 larsks/logitech-media-server "/entrypoint.sh" 40 minutes ago Exited (0) 37 minutes ago adoring_ptolemy
I tried 'larsks/logitech-media-server' , 'logitech-media-server' etc
Another thing - when LMS starts, it sort of hijacks the IP address that Kodi shows in the settings widget and instead displays '172.17.0.1' Any way to fix this?
Lastly, the LMS server name as seen from the clients is like a mac address "142081729b2f" Any way to change this to some logical name like 'Server'?
EDIT: I used the container ID in place of the container name and it worked. Would appreciate help with the latter two issues.
Which of the following is the 'name of container'?
the names of the containers are in the NAMES column in your output, but the ids will work too, as you have noticed.
All other questions should go to the maintainer of this specific container.
The main advantage of docker in LE is that the LE team has not to maintain anymore LE specific addons.
Gerald
[hr]
I forgot to mention that your changes with apt-get inside the container will not survive a restart of the container. To have this changes persistent you have to build a new docker image by changing this dockerfile.
Support for docker you will find here.
Gerald
It has not to be adapted to LE. You don't want to install it into LE, but into the docker container. A quick view has shown me that the docker container is based on ubuntu. So open a bash inside the container and you can follow the installation guide.
should do the job.
Gerald
Thanks it did part of the job but the plugin failed. Upon inquiring with the developer, this is what he had to say
"you seems to have a version of Perl 5.18) for a Linux system for which some libraries are missing. I cannot built for all permutations and combinations. 5.20 works for Linux arm and x86/x64, so you should try to upgrade your Perl there"
Any idea how to resolve that in LE?
Everytime I restart the LE box my storage partition fills up by 5MB. Below is my lms.service Anything amiss here?
EDIT: Actually that was an incorrect observation, the storage size at shutdown is lets say 1000 MB, after restart it increases to 1030 MB or so and then reduces back to 1000 MB or so. Hope thats normal.
[Unit]
Description=lms 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 \
-p 9000:9000 \
-p 3483:3483 \
-p 3483:3483/udp \
-v /storage/.kodi/userdata/Apps/LMS:/srv/squeezebox \
-v /var/media:/srv/music \
larsks/logitech-media-server
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop lms
[Install]
WantedBy=multi-user.target
Display More
There's no 2 ways about it, the container size keeps increasing.
Where is the default docker image location? userdata? Is there any way to move this to another partition? /var/media/USB Disk/docker for instance?
It seems like every startup attempt is fetching a new container image
docker ps - a gives a huge output. Please see below. And this is only part of the output, I could not copy all the way back to where I issued the command.
Issuing docker rm `docker ps -aq -f status=exited` clears up a lot of space. What changes do I need to make to prevent this unnecessary space usage?
pensive_willi ams
809b21d88108 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago drunk_archime des
d6d8fdf78e8d timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago boring_gates
3dc6e56c8455 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago admiring_past eur
4797266a7655 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago evil_goldwass er
9658e75f2b8d timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago determined_ha wking
89fec8c49bd4 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago pedantic_eucl id
5f9b9c43aeb0 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago prickly_shirl ey
3f7539e4fbfa timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago cranky_feynma n
560cd9376cc3 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago cranky_kowale vski
4703617d9324 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago romantic_leak ey
3281bcca0771 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago stupefied_mur dock
6c75c96d4146 larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Exited (0) 3 weeks ago boring_yonath
65b2abec54b8 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago drunk_mclean
b921d325e603 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago adoring_archi medes
15bbda1de0e4 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago angry_bohr
222b1fdbd7f5 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago boring_lovela ce
64c68d5285f3 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago jolly_shirley
67259256cb82 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago zen_mayer
d8d0d59e5b0b timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago jolly_saha
36acfa91f58a larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Exited (0) 3 weeks ago evil_easley
79f90e8c7681 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago dreamy_pare
998e8e33748a timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago adoring_brahm agupta
38f13abb4089 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago loving_kirch
5c8cce6a387e timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago awesome_ride
f00abefb6311 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago angry_ardingh elli
166c22212c34 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago happy_hypatia
54b93ba5b4ac timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago grave_babbage
08a6fe991dca timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago loving_gates
d5814e62a121 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago reverent_jeps en
0bdb27b81788 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago peaceful_agne si
3050684815a8 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago drunk_morse
de393075be38 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago dreamy_knuth
0f1745f543c3 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago clever_goodal l
98228e21d319 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago ecstatic_sino ussi
ded2e63732f0 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago modest_woznia k
2d55feb9381d timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago small_stonebr aker
a6e9add10023 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago clever_austin
ad1172eaf7eb timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago elated_saha
afba670e1ed4 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago gigantic_khor ana
64011c08f271 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago naughty_wesco ff
2d0b35df884d timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago peaceful_brat tain
0767e16d0f6d timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago gloomy_snyder
bb6c843bdfdc larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Exited (0) 3 weeks ago serene_bratta in
e1e51d8ed0e2 timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago happy_swartz
8b55d30fbdc8 larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Exited (0) 3 weeks ago elated_kilby
5ed8f11d9efe timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago 1900/udp, 3005/tcp, 5353/udp, 32410/udp , 8324/tcp, 32412-32414/udp, 32469/tcp, 0.0.0.0:32400->32400/tcp goofy_engelba rt
2d76adf107d7 larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Exited (0) 3 weeks ago evil_heisenbe rg
f3e1e68a251c timhaak/plex "/start.sh" 3 weeks a go Created sad_thompson
f99ad52fafcc timhaak/plex "/start.sh" 3 weeks a go Created fervent_golds tine
97b0e3418d7d timhaak/plex "/start.sh" 3 weeks a go Created elated_hamilt on
dcc073228eee timhaak/plex "/start.sh" 3 weeks a go Created trusting_lich terman
fb8b57e11834 timhaak/plex "/start.sh" 3 weeks a go Created modest_snyder
f19e499d46c1 timhaak/plex "/start.sh" 3 weeks a go Created sad_perlman
d8324bce914b timhaak/plex "/start.sh" 3 weeks a go Created reverent_dubi nsky
f0ee171efb05 timhaak/plex "/start.sh" 3 weeks a go Created silly_dijkstr a
dbdc8054971c timhaak/plex "/start.sh" 3 weeks a go Exited (0) 3 weeks ago suspicious_cu rran
2458f6d52c35 larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Exited (0) 3 weeks ago pedantic_leak ey
c924dcdbdaff larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Created reverent_alba ttani
350cc75e3faa larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Created compassionate _keller
0b93158299f1 larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Created gloomy_curie
2e9b4a6748f7 larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Created grave_brown
1adf675903b7 larsks/logitech-media-server "/entrypoint.sh" 3 weeks a go Exited (0) 3 weeks ago server
Display More
More than likely you have solved this, or found another way, but I am running it via this service and the image size seems to remain constant at about 362Mb (which is no drama at all on my NUC). Below is my service config. Main difference is use of --rm and --name and setting an appropriate timezone so LMS shows the correct time.
LMS seems to run very well, although I am doing only simple things with it really (local library playback and using XSqueezeDisplay to get the squeezebox to show Kodi time remaining).
[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=Australia/Adelaide \
-v /storage/.kodi/userdata/Apps/LMS:/srv/squeezebox \
-v /var/media:/srv/music \
larsks/logitech-media-server
ExecStop=/storage/.kodi/addons/service.system.docker/bin/docker stop logitech-media-server
[Install]
WantedBy=multi-user.target
Display More
I Just cant get this working. I copied your service file, enabled and started it. then journalctl -u gives me:
-- Logs begin at Sat 2017-12-16 01:37:55 CET, end at Sat 2018-01-13 18:31:41 CET. --
Jan 13 18:28:40 LibreELEC systemd[1]: Starting logitech-media-server container...
-- Logs begin at Sat 2017-12-16 01:37:55 CET, end at Sat 2018-01-13 18:31:41 CET. --
Jan 13 18:28:40 LibreELEC systemd[1]: Starting logitech-media-server container...
Jan 13 18:28:40 LibreELEC systemd[1]: Started logitech-media-server container.
Jan 13 18:28:42 LibreELEC docker[661]: standard_init_linux.go:178: exec user process caused "exec format error"
Jan 13 18:28:43 LibreELEC systemd[1]: logitech-media-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 18:28:43 LibreELEC docker[860]: Error response from daemon: No such container: logitech-media-server
Jan 13 18:28:43 LibreELEC systemd[1]: logitech-media-server.service: Control process exited, code=exited status=1
Jan 13 18:28:43 LibreELEC systemd[1]: logitech-media-server.service: Unit entered failed state.
Jan 13 18:28:43 LibreELEC systemd[1]: logitech-media-server.service: Failed with result 'exit-code'.
Jan 13 18:28:53 LibreELEC systemd[1]: logitech-media-server.service: Service hold-off time over, scheduling restart.
Jan 13 18:28:53 LibreELEC systemd[1]: Stopped logitech-media-server container.
Jan 13 18:28:53 LibreELEC systemd[1]: Starting logitech-media-server container...
Jan 13 18:28:53 LibreELEC systemd[1]: Started logitech-media-server container.
Jan 13 18:28:54 LibreELEC docker[947]: standard_init_linux.go:178: exec user process caused "exec format error"
Jan 13 18:28:55 LibreELEC systemd[1]: logitech-media-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 18:28:55 LibreELEC docker[1087]: Error response from daemon: No such container: logitech-media-server
Jan 13 18:28:55 LibreELEC systemd[1]: logitech-media-server.service: Control process exited, code=exited status=1
Jan 13 18:28:55 LibreELEC systemd[1]: logitech-media-server.service: Unit entered failed state.
Jan 13 18:28:55 LibreELEC systemd[1]: logitech-media-server.service: Failed with result 'exit-code'.
Jan 13 18:29:05 LibreELEC systemd[1]: logitech-media-server.service: Service hold-off time over, scheduling restart.
Jan 13 18:29:05 LibreELEC systemd[1]: Stopped logitech-media-server container.
Jan 13 18:29:05 LibreELEC systemd[1]: Starting logitech-media-server container...
Jan 13 18:29:05 LibreELEC systemd[1]: Started logitech-media-server container.
Jan 13 18:29:06 LibreELEC docker[1100]: standard_init_linux.go:178: exec user process caused "exec format error"
Jan 13 18:29:06 LibreELEC systemd[1]: logitech-media-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 18:29:07 LibreELEC docker[1243]: Error response from daemon: No such container: logitech-media-server
Jan 13 18:29:07 LibreELEC systemd[1]: logitech-media-server.service: Control process exited, code=exited status=1
Jan 13 18:29:07 LibreELEC systemd[1]: logitech-media-server.service: Unit entered failed state.
Jan 13 18:29:07 LibreELEC systemd[1]: logitech-media-server.service: Failed with result 'exit-code'.
OK to make clear what i did:
0. ssh to my rapi3 with libreelec 8.2.2 installed
1. docker pull larsks/logitech-media-server
2. /storage/.kodi/addons/service.system.docker/bin/docker run \
-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 \
larsks/logitech-media-server
and i get standard_init_linux.go:178: exec user process caused "exec format error"
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...
I tried your manual step by step, but stopping in step 7 with following:
...
Setting up libgnutls30:armhf (3.5.8-5+deb9u4) ...
Setting up libsox-fmt-alsa:armhf (14.4.1-5+deb9u1) ...
Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
Setting up libio-socket-ssl-perl (2.044-1) ...
Setting up libsndfile1:armhf (1.0.27-3) ...
Setting up lame (3.99.5+repack1-9+b2) ...
Setting up libldap-2.4-2:armhf (2.4.44+dfsg-5+deb9u2) ...
Setting up wget (1.18-5+deb9u3) ...
Setting up libkrb5-3:armhf (1.15-1+deb9u1) ...
Setting up libsox-fmt-base:armhf (14.4.1-5+deb9u1) ...
Setting up libgssapi-krb5-2:armhf (1.15-1+deb9u1) ...
Setting up sox (14.4.1-5+deb9u1) ...
Setting up libcurl3:armhf (7.52.1-5+deb9u9) ...
Setting up curl (7.52.1-5+deb9u9) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for ca-certificates (20161130+nmu1+deb9u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 1e4c648541ec
---> 7fc9b57a0253
Step 7/14 : 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
---> Running in 4806bbfdde0f
The command '/bin/sh -c url=$PACKAGE_VERSION_URL && curl -Lsf -o /tmp/logitechmediaserver.deb $url && dpkg -i /tmp/logitechmediaserver.deb && rm -f /tmp/logitechmediaserver.deb && apt-get clean' returned a non-zero code: 22
t
Display More
Any ideas? Uname: Linux 4.19.36