Can anyone offer some pointers about how I could write a script to delete a file from the LE box, say for eg located at /storage/.kodi/temp/kodi.log and assign the script to be run by a button in the menu gui somewhere.
Posts by extremeaudio
-
-
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?
-
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'?
Code# 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.
-
The installation guide uses apt get wget etc. How to adapt that for LE?
-
Any idea is this can be installed in LMS on LE? - Announce: ShairTunes2 plugin - Airtunes on your LMS
-
If you want to run lots of extra services via containers you'll see delays in shutdown. If you want to avoid that, it's best to get a NAS and run them somewhere else. Make sense?Sure that makes sense. I just wanted to make sure that there's nothing abnormal going on.
-
I don't know at what point this happened, but since the installation of docker and few other stuff the box takes forever to shut down with a blank screen and a cursor in the middle.
Running 'top' from command line gives the below output during the black screen. Anything amiss? Or am I going to have to live with this looong shutdown time?
Code
Display More1417 1224 root S N 1244m 32.5 0 0.1 {Plex Script Hos} Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-1bef33a/Framewo 3693 1224 root S 931m 24.3 1 0.0 {Plex Script Hos} Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-1bef33a/Fr 3527 1224 root S 293m 7.6 0 0.0 /usr/lib/plexmediaserver/Plex DLNA Server 968 952 root S 237m 6.2 1 0.0 {squeezeboxserve} /usr/bin/perl /usr/sbin/squeezeboxserver --user root --prefsdir /srv/squeezebox/prefs --logdi 372 1 root S 478m 12.5 0 0.0 /storage/.kodi/addons/service.system.docker/bin/dockerd --host=fd:// --group=root --graph=/storage/.kodi/userda 1224 1145 root S 398m 10.4 0 0.0 ./Plex Media Server 575 372 root S 224m 5.8 1 0.0 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim 225 1 root S < 212m 5.5 1 0.0 /usr/bin/pulseaudio --system 941 372 root S 187m 4.9 0 0.0 /storage/.kodi/addons/service.system.docker/bin/docker-proxy -proto udp -host-ip 0.0.0.0 -host-port 3483 -conta 952 575 root S 134m 3.5 0 0.0 docker-containerd-shim 01581fe599bec34f6c5495c7d9e6671667a8f84a396f3447c80e01f0973adf1d /var/run/docker/libcont 1049 575 root S 133m 3.4 0 0.0 docker-containerd-shim b222a21b2ea6d11cba955a7757dc0b03e58e73635a758337505fa65bddd8e660 /var/run/docker/libcont 826 1 root S 128m 3.3 0 0.0 /storage/.kodi/addons/service.system.docker/bin/docker run -p 9000:9000 -p 3483:3483 -p 3483:3483/udp -v /var/m 1000 1 root S 98m 2.5 0 0.0 /storage/.xbmc/userdata/squeezelite/squeezelite -o front:CARD=S2,DEV=0 -m 00 00 00 00 00 01 -r 384000 -N USB1 1005 1 root S 98m 2.5 1 0.0 /storage/.xbmc/userdata/squeezelite/squeezelite -o front:CARD=Device,DEV=0 -m 00 00 00 00 00 02 -r 384000 -N US 830 827 root S 76168 1.9 1 0.0 /usr/bin/Xorg -nolisten tcp vt01 -s 0 -noreset -allowMouseOpenFail 776 372 root S 51656 1.3 0 0.0 /storage/.kodi/addons/service.system.docker/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 32400 -cont 923 372 root S 51656 1.3 1 0.0 /storage/.kodi/addons/service.system.docker/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9000 -conta 932 372 root S 51656 1.3 0 0.0 /storage/.kodi/addons/service.system.docker/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 3483 -conta 568 1 root S 29252 0.7 1 0.0 /usr/bin/smbd --configfile=/run/samba/smb.conf 381 1 root S 27248 0.7 0 0.0 /usr/bin/nmbd --configfile=/run/samba/smb.conf 849 1 root S 23824 0.6 1 0.0 /usr/bin/fluxbox 571 1 root S 19604 0.5 0 0.0 /usr/bin/wpa_supplicant -u 1 0 root S 19440 0.5 1 0.0 /usr/lib/systemd/systemd 313 1 avahi S 19244 0.4 1 0.0 avahi-daemon: running [iBox.local] 274 1 root S 18372 0.4 0 0.0 /usr/sbin/connmand -nr --config=/etc/connman/main.conf 1064 1049 root S 18064 0.4 0 0.0 {start.sh} /bin/bash /start.sh 19151 263 root S 17700 0.4 1 0.0 sshd: root@pts/0 228 1 dbus S 16992 0.4 1 0.0 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation 212 1 root S 16684 0.4 1 0.0 /usr/lib/systemd/systemd-udevd 338 1 root S 16316 0.4 0 0.0 /usr/bin/rpcbind 263 1 root S 15140 0.3 0 0.0 /usr/sbin/sshd -D 827 1 root S 13968 0.3 0 0.0 xorg-launch-helper -nolisten tcp vt01 -s 0 -noreset -allowMouseOpenFail 227 1 root S 13928 0.3 0 0.0 /usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/run/lirc/lircd --release=_UP 191 1 root S 9180 0.2 1 0.0 /usr/lib/systemd/systemd-journald 246 1 root S 8916 0.2 0 0.0 /usr/lib/systemd/systemd-logind 19160 19157 root R 7736 0.2 0 0.0 top 255 1 root S 7728 0.2 1 0.0 /sbin/crond -f -S 19157 19151 root S 7728 0.2 1 0.0 -sh 1145 1064 root S 4508 0.1 0 0.0 {start_pms} /bin/sh /usr/sbin/start_pms 49 2 root SW 0 0.0 1 0.0 [kworker/u4:1]
-
It's labeled. I call the stick 'MUSIC'. I remove and re insert, it shows up but the contents are blank.
-
Another query - I am able to get LMS to pick music from USB sticks, which is fabulous! Don't need to rely on the storage partition only, but if I remove the USB disk and re insert the usb can be seen but LMS cannot access the data. It doesnt work even if I re start just LMS, it only works if LE is restarted so what could be done to fix this? It would be great to have on the fly usb support
-
That worked superbly! Thanks!
Now the last step is to get airplay working. Can't seem to be able to figure out how to get shairtunes plugin installed in LMS. Anyone tried it?
-
Can anyone please point me to some information about creating a service and starting it?
-
I am on Jarvis. That is 7 I presume
-
Code
Display More-- Logs begin at Mon 2016-11-21 06:56:55 UTC, end at Mon 2016-11-21 07:00:49 UTC. -- Nov 21 06:56:56 mp systemd[1]: Starting inadyn... Nov 21 06:56:56 mp systemd[1]: Started inadyn. Nov 21 06:56:56 mp inadyn[560]: Inadyn version 1.99.15 -- Dynamic DNS update client. Nov 21 06:56:56 mp inadyn[560]: [[0;1;39mFailed resolving hostname mp1234.sytes.net: Temporary failure in name resolution[[0m Nov 21 06:56:56 mp inadyn[560]: [[0;1;39mFailed resolving hostname ipv4.wtfismyip.com: Temporary failure in name resolution[[0m Nov 21 06:56:56 mp inadyn[560]: [[0;1;39mWill retry again in 600 sec...[[0m Nov 21 07:00:27 mp systemd[1]: Stopping inadyn... Nov 21 07:00:27 mp systemd[1]: Stopped inadyn. Nov 21 07:00:27 mp systemd[1]: Starting inadyn... Nov 21 07:00:27 mp inadyn[2053]: Inadyn version 1.99.15 -- Dynamic DNS update client. Nov 21 07:00:27 mp systemd[1]: Started inadyn. Nov 21 07:00:27 mp inadyn[2053]: Resolving hostname mp1234.sytes.net => IP# 45.114.156.170 Nov 21 07:00:28 mp inadyn[2053]: Checking for IP# change, connecting to ipv4.wtfismyip.com(167.114.174.158:80) Nov 21 07:00:28 mp inadyn[2053]: [[0;1;39mUpdate forced for alias mp1234.sytes.net, new IP# 45.114.156.167[[0m Nov 21 07:00:29 mp inadyn[2053]: Sending IP# update to DDNS server, connecting to duckdns.org(54.191.117.119:443) Nov 21 07:00:49 mp inadyn[2053]: Waiting (20 sec) for three-way handshake to complete ...
-
Create a service, as one in the examples linked above... enable and start the service with systemctl...any feedback about your inadyn issue?
No, I didn't get time to pursue the inadyn thing. If you have any luck, do please ping!
I am sorry but I'm a noob with these things. Where do I create the service, where do I place it? And do I put the command "systemstl start transmission.service" in autostart.sh?
-
All was well until yesterday
today after issuing
I get the message -sh: docker: not found
Still don't know how to restart docker and LMS after restart
[hr]
Never mind the error message, strangely the LE box wasn't connecting to the internet.Help with the docker start at startup please? Anything that needs to go into autostart.sh?
-
I don't know how to compile add on from source. Can anyone help me get this working on LE 7 Jarvis? Not Krypton. Any pointers please?
-
After a few minutes of starting, the box crashes, displays a black screen with just a mouse pointer in the center and then after about 30 seconds comes back to home screen. Please help
crash log and old log both attached
-
Hello, any help on this?