• 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15
  • 32
Headless Kodi
(2015-06-12, 16:30)manu666 Wrote:
(2015-06-12, 12:23)iznobe Wrote: hello i have a synology NAS too and i would know if with this docker ( thanks to sparkyballz ) when installed , i can see movies and photos on my hdmi TV ( plug to hdmi port on NAS ) .

I would like to insall a dockerfile in my NAS that permitt to run a kodi stand alone instance at start .

I think this is possible , and i ' m wondering if anyone already does it , if yes could you paste link please .

so my NAS become a NAS + XBMC server

Hello,

I don't think so. This headless server purpose is "only" to update your library from your nas, run the xbmc web server to display your library (not to watch movie), or broardcast movies with dlna through your network (if your TV has a DLNA client built-in, it could be useful for you)

Not sure it is possible to do what you want to do. I even did't knew that synology's nas have a hdmi port.

why put XBMC for DLNA theris absolutely nosense in it ( except the SQLite ) Huh
it exists plex , and the dlna server with the synology ...
Reply
(2015-06-12, 17:02)iznobe Wrote:
(2015-06-12, 16:30)manu666 Wrote:
(2015-06-12, 12:23)iznobe Wrote: hello i have a synology NAS too and i would know if with this docker ( thanks to sparkyballz ) when installed , i can see movies and photos on my hdmi TV ( plug to hdmi port on NAS ) .

I would like to insall a dockerfile in my NAS that permitt to run a kodi stand alone instance at start .

I think this is possible , and i ' m wondering if anyone already does it , if yes could you paste link please .

so my NAS become a NAS + XBMC server

Hello,

I don't think so. This headless server purpose is "only" to update your library from your nas, run the xbmc web server to display your library (not to watch movie), or broardcast movies with dlna through your network (if your TV has a DLNA client built-in, it could be useful for you)

Not sure it is possible to do what you want to do. I even did't knew that synology's nas have a hdmi port.

why put XBMC for DLNA theris absolutely nosense in it ( except the SQLite ) Huh
it exists plex , and the dlna server with the synology ...

I don't know I personally don't use it for that purpose, but kodi headless server is not dedicated to synology, many nas don't have dedicated dnla server.

To be honest for me tere is absolutely nonsense to connect a synology server directly to a TV, I'd rather use a client on a rapsberry pi for exemple. According to me a nas is a backend :-)
Reply
@ manu 666, yes exact , but now you can have sufficient power in your NAS to do a HTPC without bying another box , for example a raspbery pi or other , and a very good quality , even better than HTPC of 2 years ago .

so why paid more to have less quality ?

and why by a box to do one thing ? you dont by a NAS for samba , another for ssh , another to serve webpage , another for VPN , etc .... so that it is able to do more and more , everything depends on its abilities .

according to me a NAS have to serve files , what is the difference with XBMC ? it serves files too and displays them if asked .

Besides a multimedia server comes automatically with synology, and there's another minimum (plex) in deposits
Reply
(2015-06-12, 20:27)iznobe Wrote: @ manu 666, yes exact , but now you can have sufficient power in your NAS to do a HTPC without bying another box , for example a raspbery pi or other , and a very good quality , even better than HTPC of 2 years ago .

I understand your point of view but that's not mine. And you are probably right about the power of nowadays NAS. Bur a NAS next to my TV, in my living room is everything but WAF :-)
And I have several TV at home, so I need several clients (or front end) to display movies on TV screen, and RasPi is very cheap.

(2015-06-12, 20:27)iznobe Wrote: so why paid more to have less quality ?

and why by a box to do one thing ? you dont by a NAS for samba , another for ssh , another to serve webpage , another for VPN , etc .... so that it is able to do more and more , everything depends on its abilities .

according to me a NAS have to serve files , what is the difference with XBMC ? it serves files too and displays them if asked .

Giving access to files and decoding video files are two different things. All the more XBMC is not only decoding video files, it also comes with a GUI who needs some ressources (depending of course of the skin your using). The primary task of a NAS is to manage several hard drives with redundancy and quality control of data. For that you need a good raid controller. So I prefer a machine with a good raid controller, than a machine with a average raid one and a graphic card (or at least decoder chip). More over if you want one day to invest in 4k screen, you probably have to change your NAS used as HTPC instead of changing only your frontend.

(2015-06-12, 20:27)iznobe Wrote: Besides a multimedia server comes automatically with synology, and there's another minimum (plex) in deposits

Yes but in the case you want, as I am, a xbmc on your nas, to scrap your new files (so your XBMC "client" don't have to do it when it starts) and have access to your library on-line, as it also comes with DNLA fonctions you don't have to run the synology multimedia server and then save some ressources on your Nas.

So to come back on your primary question, I have really no clue. Check with docker image with a full kodi (not a headless one, as it doesn't come with a GUI and video decoding functionalities).
What is your Synology model ? On Synology web site I don't find any NAS with HDMI output.
Reply
the NAS isn ' t in my living room , it is on a store car wash entreprise , with a video surveillance system ( 32 cameras ) with 2 screen .... + others PC and the NAS model is https://www.synology.com/fr-fr/products/DS3615xs

we are recording 32 cameras 24 h / 24 h , this is an atypic installation for little entreprise not for my house ...

we have a big screen , and i want to put movies on it 24 / 24 with a http://www.maison-du-cable.com/Prix/Cord...16634.html and a pciE 8 express video card , but give full details of my installation doesnt do any progress on what i ' m searching ...
Reply
@iznobe : You should contact Synology because I am not sure you can connect an express video card on the pciE express slot. To be more precise, you can connect it but the Synology OS doesn't come with the suitable driver to run the video card. However synology OS is a linux system so it is probably possible to do so. It will be a lot of pain I guess.
For only 45 euro, you buy a raspberry pi 2, with a sd car and a wifi dongle, you install openelec on it, and you will be able to stream 24/24 movies on your big screen.

Visiblement notre conversation n'interesse pas beaucoup de monde et j'espère que tu vas avoir d'autres avis que le mien ;-)
Reply
lol tu parles français ... le raspbery est une possiblité mais du coup la carte acquistion video + sortie hdmi ne sert qu ' a moitié , c ' est un peu dommage , mais si il n ' ya pas d' autre possibilité .

je voulais juste savoir si docker pouvait gerer la sortie HDMI , j' ai cru comprendre qu il ne gerait que la partie logiciel ... pourtant certain arrive a partager leur environnement graphique du coup ce n' est pastres clair pour moi , ce que peut ou ne peut pas faire docker . mais au final ce n' est pas vraiment ce qui m' interresse .

En tout cas avec tout le temps que je passe a chercher sur le net , les forums etc , j ' apprends un tas de truc , mais la j' avoue je fatigue .

merci pour les infos le soutien et l' aide .

PS : Je ne despere pas trouver le moyen de faire fonctionner un jour la sortie HDMI XD .



you speak French ... the raspbery is a possibility but suddenly the acquistion video card + HDMI output only serves a half, it's a shame, but if there are no other possibility.

I just wanted to know if docker could manage the HDMI output, I have understood that it was managing the software part ... yet some come to share their graphical environment suddenly it n 'Pastres is clear to me, what can or can not do docker. but in the end it is not really what m 'interresse.

Anyway with all the time I spend on the net to search the forums etc, I 'learned a bunch of stuff, but I confess I fatigue.

thank you for information support and assistance.

PS: I do not Despere find a way to make work ther XD HDMI output one day .
Reply
English only on these forums please.
Reply
Hi all,

I am wanting to install a headless version on a ubuntu install, I need to use Isenguard Beta 2 as my it is the version that is available through Google Play Store from my Nexus Player. My question is am I able to do this without using the docker installer, no experience with it. I can only see a alpha 1 version on topfs2's github.

Thanks,
Beau
Reply
(2015-06-12, 16:31)manu666 Wrote: By the way, does anyone know how to install plug-in and web template on a headless kodi through ssh ?

Thanks in advance,
Manu

I use a normal kodi to prepare a profile , and then use it with headless kodi Smile
Reply
Hi there,

I compiled kodi like

Quote:git clone https://github.com/topfs2/xbmc.git kodi-helix-headless
cd kodi-helix-headless/
git checkout helix_headless
git clean -xfd
git reset --hard
git pull --rebase
./bootstrap
./configure
make
sudo checkinstall

Then I start it with
Quote:kodi --headless
The .kodi was created under /home/matthias/ . Then I connect via vpn/tun to server:8080 and I see "Music" and so on. No button to change something. When I click on "Profiles" and then Master user, Kodi crash with:

Quote:matthias@server:~$ kodi --headless
kodi.bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:653: typename boost::detail:Confusedp_member_access<T>::type boost:Confusedhared_ptr<T>::operator->() const [with T = ADDON::CSkinInfo; typename boost::detail:Confusedp_member_access<T>::type = ADDON::CSkinInfo*]: Assertion `px != 0' failed.
Aborted (core dumped)
Crash report available at /home/matthias/kodi_crashlog-20150625_123457.log


Pastebin


Next problem, I want to run it as user kodi from start. So I put a script in /etc/init.d/ named kodi

Code:
#! /bin/sh

### BEGIN INIT INFO
# Provides:          kodi
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts instance of Kodi
# Description:       starts instance of Kodi using start-stop-daemon and xinit
### END INIT INFO

############### EDIT ME ##################

# path to xinit exec
DAEMON=/usr/bin/xinit

# startup args
#DAEMON_OPTS=" /usr/local/bin/kodi-standalone -- :0"
DAEMON_OPTS=" /usr/local/bin/kodi --headless"

# script name
NAME=kodi

# app name
DESC=Kodi

# user
RUN_AS=kodi

# Path of the PID file
PID_FILE=/var/run/kodi.pid

############### END EDIT ME ##################

test -x $DAEMON || exit 0

set -e

case "$1" in
  start)
        echo "Starting $DESC"
        start-stop-daemon --start -c $RUN_AS --background --pidfile $PID_FILE  --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
        ;;
  stop)
        echo "Stopping $DESC"
        start-stop-daemon --stop --pidfile $PID_FILE
        ;;

  restart|force-reload)
        echo "Restarting $DESC"
        start-stop-daemon --stop --pidfile $PID_FILE
        sleep 5
        start-stop-daemon --start -c $RUN_AS --background --pidfile $PID_FILE  --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0

User kodi is ther as system user
Quote:kodi:x:118:65534::/home/.kodi:/bin/false

When I do

Quote:sudo /etc/init.d/kodi start
Starting Kodi
sudo /etc/init.d/kodi stop
Stopping Kodi

all looks fine, but if I do

Quote:sudo /etc/init.d/kodi start

connect to server:8080 (no connection establish)

Quote:sudo /etc/init.d/kodi stop
Stopping Kodi
start-stop-daemon: warning: failed to kill 4967: No such process
1 pids were not killed
No process in pidfile '/var/run/kodi.pid' found running; none killed.

So kodi crashed.
Can someone explain and bring me to the right path? My expirience is not much more then copying scripts from the internet and do something I don't realy understand to bring them to work.

What I want is running kodi headless on my server and have some Raspis or other machines with normal kodi. mysql on the nas.

My System is

Quote:sudo uname -a
Linux server 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

running as kvm guest under proxmox 3.4-6 on an HP Gen8 Microserver. An other Guest is the NAS under Jessie with NFS, Samba, ftp, tftp, mysql (for central kodi db).

Thanks for the work, wish I could do 1% from that :-)

Matthias
Reply
has anyone rebased this for master or know when the fixes will be available? I have all my other machines on master so am unable to share a MySQL database anymore.

Thanks.
Reply
(2015-05-14, 09:58)MuzzleAU Wrote:
(2015-05-13, 03:26)Richie Wrote: So I've been monitoring the headless Kodi client development for sometime, as it's exactly what I want. I've got a Synology NAS which, just yesterday, has now had it's firmware updated to DSM 5.2. Nothing huge, other than the fact it now supports docker.

Loaded up Kodi headless Helix (sparklyballz version) and it seemed to load in, create the image and container, but can't for the love of me how to access the web gui.

Does anyone have any advice they can give me to get this working?

I've got it working on my Synology DS1511 using that version (BTW nice job Sparklyballz).

There's a few things you need to set up on the Synology Docker UI. Click the 'Edit' button on the 'Container' tab and...
1. On the 'Basic Options' tab, click '+' to add a port mapping. The default web port is 8080, so I made a mapping from local port 8008 to container port 8080 to avoid any conflicts with my NAS.
2. On the 'Environment Variables' tab, add the login settings for your MySQL database; these variables are named 'MYSQLip', 'MYSQLport', 'MYSQLuser', 'MYSQLpass'.
3. On the 'Volume' tab, you might want to add a mount for the Thumbnails if you're using a shared folder across all your PCs.

Incidentally, the default login / pass to the web interface is 'xbmc'/'xbmc'.

This is likely enough if you're using the default database names (eg. MyVideo##). Unfortunately in my case, I have non-standard names as a result of following this guide, and had to SSH into the container and make manual adjustments.


What kind of manual adjustments did you make? I just finished adding docker to synology. I followed your steps, and I believe when I set my config up, I used that same exact guide.

I have local port set to 8116, and the container port to 8080 (since that what you said the default was) and configured the mySQL enviornment variables. I then ran it, and it seems to be running just fine.

When I go to http://192.168.1.100:8116/ in a browser I see connection refused. But I can SSH in just fine. I don't know why the web interface isn't working? seems like there should be one.

I went through and found the full directory using find, and copied the sources.xml and passwords.xml in through SSH in to the /opt/kodi-server/share/kodi/portable_data/userdata (there was already advancedsettings.xml) I chowned them and gave it the same permissions as the file there.

When I go to sickbeard > notifications > kodi and try to test the server using xbmc/xbmc or kodi/kodi as passwords and 192.168.1.100:8116 I get "Test KODI notice failed to 192.168.1.150:8116"

Really looking for help, I'm very interested in getting this up and running.

Thanks, all. So far this is the work of dreams


Edit: Further it occurred me that I had installed lighthttpd a long time ago to set up ruTorrent at port 777 (http://forum.synology.com/wiki/index.php...rent_HowTo).
When I go to control panel > web services, that is checked because of phpMyAdmin. I assume that's running on port 8080, but when I go to that, I get a refused error, of course. Sickbeard runs just fine though, not sure on which server?
Am I just doing something wrong? I tried changing 8080 to 777, 80, 8000 and nothing changed, still the same 127 error.

This is what's in my log when I start it on docker.

2015-06-29 23:26:40,190 CRIT Supervisor running as root (no user in config file)
stdout
23:26:40
2015-06-29 23:26:40,190 WARN Included extra file &quot;/etc/supervisor/conf.d/supervisord.conf&quot; during parsing
stdout
23:26:40
2015-06-29 23:26:40,332 INFO RPC interface 'supervisor' initialized
stdout
23:26:40
2015-06-29 23:26:40,333 WARN cElementTree not installed, using slower XML parser for XML-RPC
stdout
23:26:40
2015-06-29 23:26:40,333 CRIT Server 'unix_http_server' running without any HTTP authentication checking
stdout
23:26:40
2015-06-29 23:26:40,334 INFO supervisord started with pid 1
stdout
23:26:41
2015-06-29 23:26:41,348 INFO spawned: 'kodi-server' with pid 9
stdout
23:26:41
2015-06-29 23:26:41,395 INFO exited: kodi-server (exit status 127; not expected)
stdout
23:26:42
2015-06-29 23:26:42,400 INFO spawned: 'kodi-server' with pid 10
stdout
23:26:42
2015-06-29 23:26:42,417 INFO exited: kodi-server (exit status 127; not expected)]


Digging deep into this 127 error... I went to the supervisord file to get the run script it was using, which got me stuck here when I try and run it manually?

root@kodi:/# /opt/kodi-server/lib/kodi/kodi.bin --nolirc --headless -p -u root /opt/kodi-server/lib/kodi/kodi.bin: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory

Help, anyone? Smile

I configured so much of this stuff a long time ago, something tells me it might be easier just to try and do a system restore and start over, or something?

Downloaded some stuff with apt-get...

and got further along to ...


root@kodi:/# /opt/kodi-server/lib/kodi/kodi.bin --nolirc --headless -p -u root /opt/kodi-server/lib/kodi/kodi.bin
Can't open display
Segmentation fault
root@kodi:/#

Okay. seems to be running fine from the web interface now.


Except the Update/Clean... nothing seems to work. When I click TV/Movies/Music nothing shows up.. just loads?

However, Sickbeard apparently can send it notifications.

When I click on Master User :: Connection to Server lost... looks like a crash?

Nevermind. Apparently, I had to use the advancedsettings.xml it created, then apt-get install nano to edit it, and then after i put my stuff in it worked fine? weird but happy now Smile
Reply
I too am looking for a way to build this with master, I succeded once, but forgot how to now Sad
Reply
Can I install a plugin and my favorites and run the docker with the favorite. And then let the have it run on dlna? How would that be done?
Reply
  • 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15
  • 32

Logout Mark Read Team Forum Stats Members Help
Headless Kodi5