Forum
XBian tvheadend package - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Additional Packages (/forum-22.html)
+--- Thread: XBian tvheadend package (/thread-1766.html)

Pages: 1 2 3 4


XBian tvheadend package - mk01 - 14th Nov, 2013 05:57 AM

@starous

by include you mean pre-configured deb as others, available in xbian apt repo? or directly with this deb preinstalled on image?

personally I will always highly prefer nothing preinstalled. to keep things simple. first run wizard is informing user on dedicated slide about many packages being available for one click install.

i have tvheadend binaries available as I'm using it myself. if this is ok conf setup, I can create the deb in few days.

Code:
Checking support/features
  checking for cc execinfo.h ...                    ok
  checking for cc -mmmx ...                         fail
  checking for cc -msse2 ...                        fail
  checking for cc getloadavg ...                    ok
  checking for cc atomic64 ...                      fail
  checking for py module gzip ...                   ok
  checking for bzip2 ...                            ok
  checking for pkg openssl  ...                     ok
  checking for pkg zlib  ...                        ok
  checking for pkg avahi-client  ...                ok
  checking for pkg libavcodec <=55.0.0 ...          ok
  checking for pkg libavcodec >=52.96.0 ...         ok
  checking for pkg libavutil >=50.43.0 ...          ok
  checking for pkg libavformat <=55.0.0 ...         ok
  checking for pkg libavformat >=53.10.0 ...        ok
  checking for pkg libswscale >=0.13.0 ...          ok
  checking for cc sys/inotify.h ...                 ok
  checking for cc dvbcsa/dvbcsa.h ...               ok
  checking for cc -ldvbcsa ...                      ok
  checking for pkg libcurl  ...                     ok
  fetching dvb-scan files ...                       ok

Compiler:
  Using C compiler:                        cc
  Build for arch:                          armv6l

Binaries:
  Using PYTHON:                            python

Options:
  cwc                                      yes
  v4l                                      yes
  linuxdvb                                 yes
  dvbscan                                  yes
  timeshift                                yes
  trace                                    yes
  imagecache                               yes
  avahi                                    yes
  zlib                                     yes
  libav                                    yes
  inotify                                  yes
  bundle                                   no
  dvbcsa                                   yes
  epoll                                    yes
  kqueue                                   no
  execinfo                                 yes
  getloadavg                               yes
  py_gzip                                  yes
  bin_bzip2                                yes
  ssl                                      yes
  inotify_h                                yes

Packages:
  openssl                                  1.0.1e
  zlib                                     1.2.7
  avahi-client                             0.6.31
  libavcodec                               53.35.0
  libavutil                                51.22.1
  libavformat                              53.21.1
  libswscale                               2.1.0
  libcurl                                  7.26.0

Installation paths:
  Prefix:                                  /usr/local
  Binaries:                                ${prefix}/bin
  Libraries:                               ${prefix}/lib
  Data files:                              ${prefix}/share
  Man pages:                               ${datadir}/man

Final Binary:
  /mnt/src/git-mk01/tvheadend/build.linux/tvheadend

Tvheadend Data Directory:
  /usr/local/share/tvheadend



Xbian 1 - starous - 14th Nov, 2013 06:11 AM

A pre-configured deb would be great ;-)


RE: Xbian 1 - mk01 - 14th Nov, 2013 07:02 AM

@starous

for testing

xbian-package-tvheadend 1.0.0 at Beta2 repo.


RE: Xbian 1 - starous - 14th Nov, 2013 05:56 PM

(14th Nov, 2013 07:02 AM)mk01 Wrote:  @starous

for testing

xbian-package-tvheadend 1.0.0 at Beta2 repo.

Awesome, I will try it tonight, but first I will have to find and install the latest beta2.

Thanks.


RE: Xbian 1 - Killerbee - 15th Nov, 2013 03:33 AM

(14th Nov, 2013 07:02 AM)mk01 Wrote:  @starous

for testing

xbian-package-tvheadend 1.0.0 at Beta2 repo.

Terminal
Setting up xbian-package-tvheadend (1.0.0) ...
dpkg: error processing xbian-package-tvheadend (--configure):
subprocess installed post-installation script returned error exit status 1

Terminal
dpkg --configure -a
doesn't help

How do I check what's the problem?

edit1:
I "solved" it by removing the content of /var/lib/dpkg/info/xbian-package-tvheadend.postinst

Now I am asked for a user and password when I am opening the url http:\\serverip:9981

edit2:
Solved by adding "-C" to the ARGS var in /etc/init/tvheadend.conf
KB


RE: Xbian 1 - mk01 - 15th Nov, 2013 04:03 AM

will correct. … thanks

@Killerbee

now I realized as I'm pfixing the package.

I was fine with testing because I already had tvheadend config directory. But your new install failed because there is no user database existing. -C will create empty user (no user / pass).

Don't keep -C in the script as it will reset users on each start.

the package will check upon install whether config files exists, specially at least one user account. if doesn't exists, installer will create xbian:raspberry.

mk


RE: Xbian 1 - Killerbee - 15th Nov, 2013 05:04 AM

(15th Nov, 2013 04:03 AM)mk01 Wrote:  will correct. … thanks

the package will check upon install whether config files exists, specially at least one user account. if doesn't exists, installer will create xbian:raspberry.

mk

thxs

Are you an tvheadend expert Tongue

I am not able to get it working.
Copied the firware found on the net to /lib/firware.
I added my USB cinergy hybrid stick.
Stick is found firmware is loaded.
Configured tvheadend (add DVB Network adapter)
Did initial scan
Mapped found services to channels.
Added the TVheadend PVR addon (default config)
Activate PVR
All looks OK
I am able to "see" the channels in XBMC but I am not able to watch them.


RE: XBian tvheadend package - mk01 - 15th Nov, 2013 05:26 AM

(15th Nov, 2013 05:04 AM)Killerbee Wrote:  I am able to "see" the channels in XBMC but I am not able to watch them.

missing mpeg2 license.


Testing xbian-package-tvheadend - Killerbee - 15th Nov, 2013 07:08 AM

mk01 prepared a tvheadend xbian package (available in the beta2 repo).

install it using the CLI
Terminal
apt-get install xbian-package-tvheadend

Report your results here.

@mk01
Please check the user creation "hts"
some settings are not saved due to permissions issues.

EDIT:
Please close/delete this one and continue here

KB


RE: XBian tvheadend package - Killerbee - 15th Nov, 2013 07:17 AM

(15th Nov, 2013 05:26 AM)mk01 Wrote:  
(15th Nov, 2013 05:04 AM)Killerbee Wrote:  I am able to "see" the channels in XBMC but I am not able to watch them.

missing mpeg2 license.
I will double check. I have two pi's.
Xbian config doesn allow me to specify two comma seperated mpeg2 licences codes.
So maybe I configured the wrong one.

@mk01
Could you please check the user creation "hts". tvheadend daemon is not able to save some setting files.

KB


RE: XBian tvheadend package - rikardo1979 - 15th Nov, 2013 07:29 AM

(15th Nov, 2013 07:08 AM)Killerbee Wrote:  mk01 prepared a tvheadend xbian package (available in the beta2 repo).

install it using the CLI
Terminal
apt-get install xbian-package-tvheadend

Report your results here.

@mk01
Please check the user creation "hts"
some settings are not saved due to permissions issues.

EDIT:
Please close/delete this one and continue here

KB

merged into this thread


RE: XBian tvheadend package - mk01 - 15th Nov, 2013 08:20 AM

(15th Nov, 2013 07:17 AM)Killerbee Wrote:  @mk01
Could you please check the user creation "hts". tvheadend daemon is not able to save some setting files.

I started with APT repo rebuild and didn't finish what I wanted to tell you. So the first issue the login for new installs - of course running user is part of that. then I realized the hts user.

I wanted be polite so I took the full examples from tvheadend (as they prefer creation of custom packages this way). I should have used my install as template Undecided

Nevetherless. The intention is:

1) running user xbian - you already have the 1.0.0 which config file won't get overwritten. change user in /etc/default/tvheadend from hts to xbian
2) install is checking number of files in /home/xbian/.hts/tvheadend/accesscontrol. if = 0, it creates default user xbian:raspberry. you used -C, should be no needed anymore.

because you installed the 1.0.0, hts user non existent, no default configs under ~/.hts -- under which user tvheadend is running finally ? you created hts user ?

In any case I would do:
Code:
sudo -i
stop tvheadend
mv /root/.hts /home/xbian/.hts    (/root/.hts should reflect your current setup - home dir of tvheadend effective process owner home)
chmod -Rc xbian:xbian /home/xbian/.hts
sed -i 's/TVH_USER=.*/TVH_USER="xbian"/g' /etc/default/tvheadend
start tvheadend



RE: XBian tvheadend package - Killerbee - 15th Nov, 2013 08:32 AM

(15th Nov, 2013 08:20 AM)mk01 Wrote:  
Code:
stop tvheadend
mv /root/.hts /home/xbian/.hts
chmod -Rc xbian:xbian /home/xbian/.hts
sed -i 's/TVH_USER=.*/TVH_USER="xbian"/g' /etc/default/tvheadend
start tvheadend
thanks for explaining.

I noticed some issues in the postinst script

PHP Code:
#!/bin/bash

if [[ $== "configure" ]]; then

    
if [ ! -/home/xbian/.hts/accesscontrol ] || [ -"$(ls /home/xbian/.hts/tvheadend/accesscontrol | grep -c .)" ]; then
cat 
<<\EOF > /home/xbian/.hts/tvheadend/accesscontrol/1
{
        
"enabled"1,
        
"username""xbian",
        
"password""n",
        
"comment""Default access entry",
        
"prefix""192.168.1.0/24",
        
"streaming"1,
        
"dvr"1,
        
"dvrallcfg"1,
        
"webui"1,
        
"admin"1,
        
"id""1"


User is xbian password is n (instead of raspberry)

Also the postinst script was not able to create the /home/xbian/.hts/tvheadend/accesscontrol/1 files.

Also I had to remove this part of the 1 file:

"prefix": "192.168.1.0/24",

I am using 192.168.2.0/24 (removing the prefix just works)

KB


RE: XBian tvheadend package - mk01 - 16th Nov, 2013 02:34 PM

intention was of course 0.0.0.0/0 and raspberry. will fix.


RE: XBian tvheadend package - Killerbee - 18th Nov, 2013 02:52 AM

(16th Nov, 2013 02:34 PM)mk01 Wrote:  intention was of course 0.0.0.0/0 and raspberry. will fix.

@mk01

FYI
Version 3.5 requires this prefix
Code:
"prefix": "0.0.0.0/0,::/0"

KB