Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

XBian tvheadend package
Thank you for your donation

Pages (4): 1 2 3 4 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
XBian tvheadend package
14th Nov, 2013, 05:57 AM
Post: #1
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
XBian tvheadend package
@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

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
14th Nov, 2013, 06:11 AM
Post: #2
starous Offline
Registered
Posts: 52
Joined: Jan 2013
Reputation: 1
Xbian 1
A pre-configured deb would be great ;-)
Find all posts by this user
Quote this message in a reply
14th Nov, 2013, 07:02 AM
Post: #3
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Xbian 1
@starous

for testing

xbian-package-tvheadend 1.0.0 at Beta2 repo.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
14th Nov, 2013, 05:56 PM
Post: #4
starous Offline
Registered
Posts: 52
Joined: Jan 2013
Reputation: 1
RE: Xbian 1
(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.
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 03:33 AM
Post: #5
Killerbee Offline
Registered
Posts: 143
Joined: Feb 2013
Reputation: 6
RE: Xbian 1
(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
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 04:03 AM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Xbian 1
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

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 05:04 AM
Post: #7
Killerbee Offline
Registered
Posts: 143
Joined: Feb 2013
Reputation: 6
RE: Xbian 1
(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.
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 05:26 AM
Post: #8
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: XBian tvheadend package
(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.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 07:08 AM
Post: #9
Killerbee Offline
Registered
Posts: 143
Joined: Feb 2013
Reputation: 6
Testing xbian-package-tvheadend
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
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 07:17 AM
Post: #10
Killerbee Offline
Registered
Posts: 143
Joined: Feb 2013
Reputation: 6
RE: XBian tvheadend package
(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
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 07:29 AM
Post: #11
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: XBian tvheadend package
(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

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 08:20 AM
Post: #12
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: XBian tvheadend package
(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

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Nov, 2013, 08:32 AM
Post: #13
Killerbee Offline
Registered
Posts: 143
Joined: Feb 2013
Reputation: 6
RE: XBian tvheadend package
(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 [[ $1 == "configure" ]]; then

    
if [ ! -e /home/xbian/.hts/accesscontrol ] || [ -z "$(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
Find all posts by this user
Quote this message in a reply
16th Nov, 2013, 02:34 PM
Post: #14
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: XBian tvheadend package
intention was of course 0.0.0.0/0 and raspberry. will fix.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
18th Nov, 2013, 02:52 AM
Post: #15
Killerbee Offline
Registered
Posts: 143
Joined: Feb 2013
Reputation: 6
RE: XBian tvheadend package
(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
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (4): 1 2 3 4 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 19th May, 2025, 06:51 AM Powered By MyBB, © 2002-2025 MyBB Group.