Project

General

Profile

Help cook book on installing Tvheadend on Ubuntu 12.10

Added by alan dorgan over 11 years ago

Hi everyone,

Can you please input and give help to my plight?

I'd like to create a cookbook for the installation of tvheadend and hopefully get the guys to put it on the homepage or help pages.

I am fairly ok with linux but I would know more than one would be scared away by the install. Also I'm sure I'm not the only one who has or will be here!!!

I have a fresh install of 12.10 and I have run the update command:

I'm trying this out with two cards both I understand are supported by the Linux kernel,

  • A Hauppauge WinTV Nova-HD-S2 DVBS2
  • A Hauppauge WinTV Nova TD-500 DVB-T

First thing on the list is to make sure we are up to date:

sudo apt-get update
sudo apt-get install update

Then I need to register the git repository within my Ubuntu to trust the software source:

sudo add-apt-repository ppa.launchpad.net/adamsutton/tvheadend-unstable/ubuntu quantal main

or is it

deb http://ppa.launchpad.net/adamsutton/tvheadend-unstable/ubuntu quantal main

I then install the update:

sudo apt-get update
sudo apt-get install tvheadend

Then I should be able to open tv headend within my browser

http://localhost:9981/extjs.html

After the last build it failed as I tried the below taken from my hode-podged attempt from the following site:

http://linux.mjnet.eu/post/1167/xbmc-pvr-tvheadend-ubuntu-12-10-quantal-install/

I could not log into the webserver of tvheadend

and it mentions the following for removing the password

"to use tvheadend without password edit /etc/default/tvheadend and add argument to line"

sudo vi /etc/default/tvheadend

change line and add -C

  1. TVH_ARGS
  2. add any other arguments
    TVH_ARGS="-C"

and restart

sudo service tvheadend restart.

How does this stack up?

Many thanks

Alan


Replies (2)

RE: Help cook book on installing Tvheadend on Ubuntu 12.10 - Added by Prof Yaffle over 11 years ago

I thought there already was a howto on tvheadend installation, but I couldn't find it when I just went looking, so you're clearly embarking on a worthwhile task...!

I've always used the sudo apt-add repository route - I don't recognise the deb variant, although that doesn't mean it's not valid.

I personally wouldn't recommend the -C route, as that's a bit of a sledgehammer in that it removes security. If you had problems connecting initially (you should have supplied a username and password as part of the installation), then the fallback is sudo dpkg-reconfigure tvheadend to set it up again. A normal installation shouldn't have to worry about editing the config files.

It should really be:

1. Add PPA
2. Install tvheadend
3. Configure it
4. Log in and set up access rules
5. Check adapter settings
6. Configure for location/satellite
7. Add muxes and search for services
8. Map to channels
9. Repeat (5) to (8) for any additional tuners
10. Tidy up any other configuration details, e.g. pre/post recording time, grabbers, recording path

... and that's about it, off the top of my head. It's been a year or two since I've really done it entirely from scratch, but those should be the major steps.

RE: Help cook book on installing Tvheadend on Ubuntu 12.04 - due to sw errors on 12.10 - Added by alan dorgan over 11 years ago

HI all,

Thanks for Prif Yaffles help some days ago:

here is my update...

Tried with 12.10 on my hp desktop liberated from the recycle skip.... all was good initially, but after updating it with the latest sudo apt-get upgrade, it failed on what I believe is a 'Camfill error' this is the latest and greatest from Ubuntu, so I've decided to roll back to 12.04.

After installing and upgrading 12.04 I did the following Below:

sudo apt-get update

sudo apt-get upgrade

sudo add-apt-repository ppa:adamsutton/tvheadend-unstable

tvheadend@tvheadend:~$ sudo add-apt-repository ppa:adamsutton/tvheadend-unstableYou are about to add the following PPA to your system:
Packages for Tvheadend git master.
More info: https://launchpad.net/~adamsutton/+archive/tvheadend-unstable
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpDZiuzj/secring.gpg' created
gpg: keyring `/tmp/tmpDZiuzj/pubring.gpg' created
gpg: requesting key C02A82DC from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpDZiuzj/trustdb.gpg: trustdb created
gpg: key C02A82DC: public key "Launchpad PPA for Adam Sutton" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
tvheadend@tvheadend:~$

sudo apt-get update

tvheadend@tvheadend:~$ sudo add-apt-repository ppa:adamsutton/tvheadend-unstableYou are about to add the following PPA to your system:
Packages for Tvheadend git master.
More info: https://launchpad.net/~adamsutton/+archive/tvheadend-unstable
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpDZiuzj/secring.gpg' created
gpg: keyring `/tmp/tmpDZiuzj/pubring.gpg' created
gpg: requesting key C02A82DC from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpDZiuzj/trustdb.gpg: trustdb created
gpg: key C02A82DC: public key "Launchpad PPA for Adam Sutton" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
tvheadend@tvheadend:~$

sudo apt-get install tvheadend

sudo apt-get install tvheadend
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-json-1.0 gir1.2-timezonemap-1.0 linux-headers-3.2.0-24
linux-headers-3.2.0-24-generic gir1.2-xkl-1.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libarchive-zip-perl libclass-inspector-perl libclass-load-perl
libclass-methodmaker-perl libclass-singleton-perl libcommon-sense-perl
libconvert-binhex-perl libcrypt-ssleay-perl libdata-dump-perl
libdata-optlist-perl libdate-manip-perl libdatetime-format-strptime-perl
libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl
libdigest-hmac-perl libemail-address-perl libemail-find-perl
libemail-valid-perl libexporter-lite-perl libfcgi-perl libfile-slurp-perl
libhtml-fromtext-perl libhtml-tableextract-perl
libhttp-cache-transparent-perl libhttp-server-simple-perl libio-stringy-perl
libjson-perl libjson-xs-perl liblingua-preferred-perl liblist-moreutils-perl
liblog-tracemessages-perl libmath-round-perl libmime-tools-perl
libmodule-runtime-perl libnet-dns-perl libnet-domain-tld-perl libnet-ip-perl
libossp-uuid-perl libossp-uuid16 libpackage-deprecationmanager-perl
libpackage-stash-perl libpackage-stash-xs-perl libparams-classify-perl
libparams-util-perl libparams-validate-perl libparse-recdescent-perl
libregexp-common-perl libsoap-lite-perl libsub-install-perl
libtask-weaken-perl libterm-progressbar-perl libterm-readkey-perl
libtext-bidi-perl libtry-tiny-perl libunicode-string-perl
libwww-mechanize-perl libxml-dom-perl libxml-libxml-perl libxml-libxslt-perl
libxml-namespacesupport-perl libxml-perl libxml-regexp-perl
libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl
libxml-writer-perl libxmltv-perl libyaml-syck-perl xmltv-util
Suggested packages:
libhtml-element-extended-perl uuid libscalar-number-perl
libapache2-mod-perl2 libmime-lite-perl libnet-jabber-perl xmltv-gui
libtext-kakasi-perl liblinux-dvb-perl
The following NEW packages will be installed
libarchive-zip-perl libclass-inspector-perl libclass-load-perl
libclass-methodmaker-perl libclass-singleton-perl libcommon-sense-perl
libconvert-binhex-perl libcrypt-ssleay-perl libdata-dump-perl
libdata-optlist-perl libdate-manip-perl libdatetime-format-strptime-perl
libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl
libdigest-hmac-perl libemail-address-perl libemail-find-perl
libemail-valid-perl libexporter-lite-perl libfcgi-perl libfile-slurp-perl
libhtml-fromtext-perl libhtml-tableextract-perl
libhttp-cache-transparent-perl libhttp-server-simple-perl libio-stringy-perl
libjson-perl libjson-xs-perl liblingua-preferred-perl liblist-moreutils-perl
liblog-tracemessages-perl libmath-round-perl libmime-tools-perl
libmodule-runtime-perl libnet-dns-perl libnet-domain-tld-perl libnet-ip-perl
libossp-uuid-perl libossp-uuid16 libpackage-deprecationmanager-perl
libpackage-stash-perl libpackage-stash-xs-perl libparams-classify-perl
libparams-util-perl libparams-validate-perl libparse-recdescent-perl
libregexp-common-perl libsoap-lite-perl libsub-install-perl
libtask-weaken-perl libterm-progressbar-perl libterm-readkey-perl
libtext-bidi-perl libtry-tiny-perl libunicode-string-perl
libwww-mechanize-perl libxml-dom-perl libxml-libxml-perl libxml-libxslt-perl
libxml-namespacesupport-perl libxml-perl libxml-regexp-perl
libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl
libxml-writer-perl libxmltv-perl libyaml-syck-perl tvheadend xmltv-util
0 upgraded, 71 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.1 MB of archives.
After this operation, 65.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? ^Ctvheadend@tvheadend:~$

you will be asked to install a user name

you will be asked to install a password

shutdown -r -t 0

After the above I got into firefox via localhost:9981 and after logging in tvheadend found the physical adapters (I have 2 physical and the dvb-t is a dual one - both huappauge)and configuring the adapters it tried to find the channels. I could not get any channels.

When I did a tvheadend -d it displayed that the pci adapter is busy.....

I'm going to wipe the box again and retry this evening with 12.04 direct from Conical...

Any help please!

    (1-2/2)