Project

General

Profile

On Raspbian, shouldn't I be using TVHeadend 4.0.9?

Added by Anonymous over 8 years ago

Aloha,

I am actualy trying to hunt down another Problem with TVHeadend, maybe you will hear from me again ;-)

But first of all, maybe the correct update will kill my other problem:
I installed Rasbian on my Rpi3 and onto this TVHeadend via:

deb https://dl.bintray.com/tvheadend/deb jessie release

Like I have been told here: [[http://tvheadend.org/projects/tvheadend/wiki/AptRepository]]

But I can read here: http://tvheadend.org/projects/tvheadend/roadmap

That there is a version 4.0.9, but on my system is "only" a 4.0.8? Did I something wrong? Or even did I something good? Do I need Version 4.0.9 and if, how to get it?

Regards,
Stefan


Replies (7)

RE: On Raspbian, shouldn't I be using TVHeadend 4.0.9? - Added by Mark Clarkstone over 8 years ago

Stefan Lingenhöfer wrote:

Aloha,

I am actualy trying to hunt down another Problem with TVHeadend, maybe you will hear from me again ;-)

But first of all, maybe the correct update will kill my other problem:
I installed Rasbian on my Rpi3 and onto this TVHeadend via:

deb https://dl.bintray.com/tvheadend/deb jessie release

Like I have been told here: [[http://tvheadend.org/projects/tvheadend/wiki/AptRepository]]

But I can read here: http://tvheadend.org/projects/tvheadend/roadmap

That there is a version 4.0.9, but on my system is "only" a 4.0.8? Did I something wrong? Or even did I something good? Do I need Version 4.0.9 and if, how to get it?

Regards,
Stefan

No, nothing is wrong, the builds for armhf (Raspbian) are manually triggered and unfortunately this hasn't been done (yet!)

I'll ask for it to be triggered - not sure when it will happen though..

And yes, you can build tvheadend master (from github) manually on a Pi.

Heres a guide I wrote a few months back..

-------
Quick & Easy guide to building Tvheadend on a RPi2 (This also works on any other deb system!).

sudo apt-get install git build-essential debhelper pkg-config fakeroot
git clone https://github.com/tvheadend/tvheadend.git build/tvheadend/master
cd build/tvheadend/master
AUTOBUILD_CONFIGURE_EXTRA=--enable-hdhomerun_client\ --disable-ffmpeg_static\ --disable-bintray_cache\ --disable-pie ./Autobuild.sh
What each lines does.
  • 1 Installs a few dependencies (you'll need to install some more later on).
  • 2 Clones the Tvheadend master branch from github & places it in build/tvheadend/master.
  • 3 Changes directory to the above path.
  • 4 Runs the Autobuild script that will build a debian package so that you can install it in a nice and neat way.

You can pass more options to AUTOBUILD_CONFIGURE_EXTRA just make sure to place an escaped space between each option, e.g.

AUTOBUILD_CONFIGURE_EXTRA=--enable-hdhomerun_client\ --disable-ffmpeg_static ./Autobuild.sh

Other info.
The Autobuild.sh script will complain about other missing dependencies you need to install those, e.g.

sudo apt-get install libcurl14-gnutls-dev liburiparser-dev

Run the script again.

Once the build has completed you'll find the built debian package (E.g tvheadend_4.1-368~geeda7d7_armhf.deb) in build/tvheadend.

You can then install it (and the debug package) using.

cd build/tvheadend
sudo dpkg -i tvheadend*.deb

Hope this helps :)

RE: On Raspbian, shouldn't I be using TVHeadend 4.0.9? - Added by Anonymous over 8 years ago

It helped. It helped with my first problem and it updated. But it updated to what? Is HTS Tvheadend 4.1-2038~gdaf2f88 a nightly? Because I don't wanted a nightly. And what is the 4.1 anyways? Can't find anything about it on the Roadmap

Can I go back with the help of your tutorial to a stable, but more recent version then my 4.0.8 which I had?

RE: On Raspbian, shouldn't I be using TVHeadend 4.0.9? - Added by Mark Clarkstone over 8 years ago

Stefan Lingenhöfer wrote:

It helped. It helped with my first problem and it updated. But it updated to what? Is HTS Tvheadend 4.1-2038~gdaf2f88 a nightly? Because I don't wanted a nightly. And what is the 4.1 anyways? Can't find anything about it on the Roadmap

Sorry I should have told you to checkout release/4.0 branch!
e.g. git checkout release/4.0

4.1 is what will become 4.2 - releases are an even number, dev is an odd number.

Can I go back with the help of your tutorial to a stable, but more recent version then my 4.0.8 which I had?

Of course but make sure you use an older backup from 4.0.8 - by default after a new installation Tvheadend would have automatically backed up your old config and placed it in the backup directory, usually /home/hts/.hts/tvheadend/backup.

Quick guide to restoring a backup.

Stop Tvheadend

sudo service tvheadend stop

Drop down to the hts user & go to the .hts config directory.

sudo -u hts /bin/bash.
cd ~/.hts/

Make a temp copy of your current config in case anything goes wrong.

cp -ar tvheadend/ tvheadend_backup

Find a backup to restore.

ls -lah ~/.hts/tvheadend/backup
----------------------------------
total 2.4G
drwx------  2 hts video  4.0K May 13 09:03 .
drwxr-xr-x 17 hts hts    4.0K May 13 11:07 ..
-rw-rw-rw-  1 hts video  7.9M Mar 26 17:13 4.1-1576~g52ed773.tar.bz2
-rw-rw-rw-  1 hts video  6.9M Mar 28 13:11 4.1-1736~g9329b58.tar.bz2
-rw-rw-rw-  1 hts video  6.8M Mar 28 15:33 4.1-1760~g97a3db5.tar.bz2
-rw-rw-rw-  1 hts video   12M Mar 28 15:40 4.1-1761~ge271083.tar.bz2
-rw-rw-rw-  1 hts video   15M Mar 30 12:24 4.1-1762~ga004ac3.tar.bz2
-rw-rw-rw-  1 hts video   15M Apr  9 20:02 4.1-1772~g3a827e7.tar.bz2
-rw-rw-rw-  1 hts video   15M Apr 14 07:41 4.1-1851~g71e8b00.tar.bz2
-rw-rw-rw-  1 hts video   16M Apr 16 00:23 4.1-1882~gf4f261d.tar.bz2
-rw-rw-rw-  1 hts video   16M Apr 21 14:46 4.1-1898~gf23c2d8.tar.bz2
-rw-rw-rw-  1 hts video   15M Apr 21 14:09 4.1-1927~gac2d90e.tar.bz2
-rw-rw-rw-  1 hts video   16M Apr 21 14:55 4.1-1929~g2a70a90-dirty.tar.bz2
-rw-rw-rw-  1 hts video   15M Apr 21 14:07 4.1-1929~g2a70a90.tar.bz2
-rw-rw-rw-  1 hts video   86M Apr 26 19:14 4.1-1931~gc3eefc6.tar.bz2
-rw-rw-rw-  1 hts video   84M Apr 29 14:33 4.1-1942~g4244439.tar.bz2
-rw-rw-rw-  1 hts video   87M May  5 22:46 4.1-1945~g5374573.tar.bz2
-rw-rw-rw-  1 hts video 1017M May 12 15:19 4.1-1977~gec222e5.tar.bz2
-rw-rw-rw-  1 hts video 1015M May 13 09:14 4.1-2029~gf4cce41.tar.bz2

Copy your chosen backup to your home dir, for this example I'm going to be using 4.1-2029~gf4cce41.tar.bz2.

cp ~/.hts/tvheadend/backup/4.1-2029~gf4cce41.tar.bz2 ~/

Now time to clear out your old config.

rm -r /home/hts/.hts/tvheadend/*

We should still be in the .hts folder at this point with an empty tvheadend directory, if not.

cd ~/.hts/

Now we restore our saved backup tar that we previously placed in the home directory - we must be in the tvheadend directory first!

cd tvheadend
tar xvfp ~/4.1-2029~gf4cce41.tar.bz2

You should see a lot of output while the backup is restoring.

If everything goes to plan we should see our old config in the tvheadend directory.

ls -lah
-----------------
total 7.0M
drwxr-xr-x 17 hts hts   4.0K May 13 11:07 .
drwxr-xr-x  4 hts hts   4.0K May 15 00:17 ..
drwx------  2 hts hts   4.0K Apr 22 19:05 accesscontrol
drwx------  2 hts video 4.0K May 13 09:03 backup
drwx------  2 hts hts    32K May 14 17:26 bouquet
drwx------  2 hts hts   4.0K May  7 14:25 caclient
drwx------  4 hts video 4.0K Apr 20 09:45 channel
-rw-------  1 hts video  894 May 13 09:14 config
drwx------  5 hts hts   4.0K May  9 03:00 dvr
-rw-------  1 hts video 6.9M May 13 11:06 epgdb.v2
drwx------  5 hts hts   4.0K Apr 26 22:04 epggrab
drwx------  2 hts video 4.0K May  5 22:46 esfilter
drwx------  4 hts hts   4.0K Mar 28 15:37 imagecache
drwx------  5 hts hts   4.0K Apr 26 19:24 input
-rw-r--r--  1 hts video   22 May 13 11:07 .lock
drwx------  2 hts video 4.0K May  4 20:37 muxsched
drwx------  2 hts video 4.0K Apr  9 23:15 passwd
drwx------  2 hts hts   4.0K Mar 24 12:13 profile
drwx------  2 hts hts   4.0K Apr 20 10:04 service_mapper
-rw-------  1 hts hts     47 May 13 11:07 superuser
drwx------  2 hts hts   4.0K Mar 24 14:08 timeshift

Clean up the old backups.

rm -r ~/.hts/tvheadend_backup

You may want to keep hold of your saved tar, but if not.

rm ~/4.1-2029~gf4cce41.tar.bz2

Now exit from the hts user and drop back down to your own user.

exit

Now lets install an older package version.

Firstly find the desired version - the output below will differ on your system..

apt-cache showpkg tvheadend
---------------------------
Package: tvheadend
Versions: 
4.1-2035~g5cbc518 (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/dpkg/status
                  MD5: 0f65df826ed6783c2ea3100fb296fdae

Reverse Depends: 
  tvheadend-dbg,tvheadend 4.1-2035~g5cbc518
Dependencies: 
4.1-2035~g5cbc518 - libavahi-client3 (2 0.6.16) libavahi-common3 (2 0.6.16) libc6 (2 2.15) libdbus-1-3 (2 1.0.2) libssl1.0.0 (2 1.0.0) libstdc++6 (2 4.1.1) liburiparser1 (2 0.6.0) zlib1g (2 1:1.1.4) xmltv-util (0 (null)) hts-tvheadend (0 (null)) showtime (0 (null)) 
Provides: 
4.1-2035~g5cbc518 - 
Reverse Provides: 

Now install the version we want.

apt-get install tvheadend=4.1-2035~g5cbc518

And if everything goes to plan you should be back up and running :)

Hope this helps.

RE: On Raspbian, shouldn't I be using TVHeadend 4.0.9? - Added by Anonymous over 8 years ago

Due the fact that apt-cache showpkg tvheadend offers me the 4.0.8 and the already running 4.1 nightly, we get back to my formost question:

Do I need Version 4.0.9 and if, how to get it?

;)

Wouldn't everything be much easier if the most recent, stable 4.0.9 would be in the Repos?

I could stick with a nigtly, yes, but as far as I understand the procedure I must "create" a new version everytime by hand without getting informed about it? Not knoing if the the new nightly maybe bring new problems? There are a lot questionsmarks for me in it, I am not that firmly seated yet in the whole rapsberry/Linux world. (which not means that I think the people behind tvheadend are incompetent morons! ;) )

And how "far" is the 4.1 away from the 4.2? Like, is it a late beta, an early alpha or more like "we just started from the scratch with a programming language from a very small village in southern india which name we even can't pronounce" :D

Thanks for all the help, btw.

RE: On Raspbian, shouldn't I be using TVHeadend 4.0.9? - Added by Mark Clarkstone over 8 years ago

Stefan Lingenhöfer wrote:

Due the fact that apt-cache showpkg tvheadend offers me the 4.0.8 and the already running 4.1 nightly, we get back to my formost question:

Do I need Version 4.0.9 and if, how to get it?

;)

Wouldn't everything be much easier if the most recent, stable 4.0.9 would be in the Repos?

If you really want 4.0.9 you'll have to compile it for now.. (use the git checkout command above). the person who manually triggers the build is very busy and hasn't had chance yet unfortunately.

I could stick with a nigtly, yes, but as far as I understand the procedure I must "create" a new version everytime by hand without getting informed about it?

Yes unfortunately, there is a bot (doozerbot) in the IRC channel that announces new commits though.

Not knoing if the the new nightly maybe bring new problems? There are a lot questionsmarks for me in it, I am not that firmly seated yet in the whole rapsberry/Linux world. (which not means that I think the people behind tvheadend are incompetent morons! ;) )

And how "far" is the 4.1 away from the 4.2? Like, is it a late beta, an early alpha or more like "we just started from the scratch with a programming language from a very small village in southern india which name we even can't pronounce" :D

I've been using it for a while without issue, however, there is bugs for some so YMMV.

Thanks for all the help, btw.

RE: On Raspbian, shouldn't I be using TVHeadend 4.0.9? - Added by Anonymous over 8 years ago

This time you didn't sign your Message with "Hope that helps" and it didn't help! ;-)

If you really want 4.0.9 you'll have to compile it for now.. (use the git checkout command above).

Sorry I should have told you to checkout release/4.0 branch!
e.g. git checkout release/4.0

I don't know how to handle that? Sorry.

RE: On Raspbian, shouldn't I be using TVHeadend 4.0.9? - Added by Mark Clarkstone over 8 years ago

Stefan Lingenhöfer wrote:

This time you didn't sign your Message with "Hope that helps" and it didn't help! ;-)

I'm cursed :p

If you really want 4.0.9 you'll have to compile it for now.. (use the git checkout command above).

Sorry I should have told you to checkout release/4.0 branch!
e.g. git checkout release/4.0

I don't know how to handle that? Sorry.

In the quick and easy build guide, do

git checkout release/4.0

AFTER

cd build/tvheadend/master

- Hope this helps (lol).

    (1-7/7)