Forums » Tutorial and setups »
How to install Tvheadend?
Added by Daniel L almost 11 years ago
Hi,
First I will tell that I'm really a beginner in Linux!!
Quite good in Windows, but I have newer used Linux before...
What Linuxplatform should Tvheadend be installed at?
Ubuntu desktop or sever?
What version do you prefere for this?
What system requirements do I need for full-HD?
I would like to use it for DVB-T (In sweden) and have looked at ”Hauppauge PCTV NanoStick T2 HD 290e”. Is it a good choice or do you have something better to recommend? Want to see the HD channels and prepared for T2. In the long run it would be fun to share my pay channels to my other televisions in the home.
I have tried this guide below with Ubuntu (run from an USB-stick), but I just recieve errors.
ubuntu-12.04.3-desktop-i386.iso
ubuntu-13.10-desktop-i386.iso
Guide:
https://tvheadend.org/projects/tvheadend/wiki/AptRepository
[Me] I press Ctrl+Alt+F3 to open the CLI-window.
[Guide] Before you can use the repositories you probably want to import the GPG signing key:
curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -
[Me] I recieve that the program ”curl” is currently not installed. You can install it by type:
sudo apt-get install curl
I do that and this seems ok.
After that I type:
curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -
This time this seems ok.
[Guide] You will then need to add which ever repository you feel is most appropriate, for example if you want to be cautious and have a reliable system:
sudo apt-add-repository http://apt.tvheadend.org/stable
sudo apt-get update
[Me] It starts to download and install but after row ”Get:16” I revieve this:
W: Faild to fetch http://apt.tvheadend.org/stabile/dists/precise/main/source/source 404 Not found
W: Faild to fetch http://apt.tvheadend.org/stabile/dists/precise/main/binary-i386/packages 404 Not found
E: Some index files faild to download. They have been ignored, or old ones used instead.
[Me] I press Ctrl+Alt+F7 to close the CLI-window.
Then I find out what IP-address my ubuntu computer use (192.168.1.92)
http://www.howtogeek.com/howto/17012/how-to-find-your-ip-address-in-ubuntu/
After that I use another computer with Windows, open chrome webbrowser and type:
http://192.168.1.92:9981
But I recieve unable to connect...
I have also tried from the ubunto computer in Firefox and typed:
http://localhost:9981
But I recieve unable to connect...
What do I do wrong...??
Best Regards
Daniel
Replies (5)
RE: How to install Tvheadend? - Added by Prof Yaffle almost 11 years ago
In a slightly random way...!
1. Welcome!
2. Linux platform - Ubuntu is good. 12.04 is a good choice because it has long-term support, but any other (recent) version will work. Server or desktop is your choice - probably desktop, as you'll likely need a graphical interface to look after it properly. I'd personally go for Xubuntu because I prefer the interface to regular Ubuntu ... Mint is your other choice, but that can be tricky with repositories sometimes. Xubuntu, then, either 12.04 or current.
3. The 290e is a good stick and works well.
4. Sharing pay channels needs a card reader and/or card server - have a look in other sections of this forum.
5. It starts to download and install but after row ”Get:16” I revieve this - check your spelling, "stabile" is wrong. Linux is also case-sensitive, so 'packages' in your second URL is different from 'Packages', which is what I suspect you need.
These are the commands you need:
curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -
sudo apt-add-repository http://apt.tvheadend.org/stable
sudo apt-get update
sudo apt-get install tvheadend
If you've made a mistake in typing,
sudo apt-add-repository -r http://apt.tvheadend.org/stabile
... should remove it (note the assumed "i" in "stab(i)le").
6. You're getting the errors because, I suspect, tvheadend isn't installed and isn't running - hence "unable to connect (because it's not there)"
RE: How to install Tvheadend? - Added by Daniel L almost 11 years ago
Thanks a lot for your answer!!
Now it seems much better. One step forward...
After installation I recieved a promt and I had to type my username and password.
Then I recieved a message to access this server from the same computer by type http://localhost:9981/
I tried this from the same computer in Firefox:
http://localhost:9981/
But I recieve unable to connect...
Do I need to start tvheadend in some way before?
After that I tried this command:
sudo service tvheadend restart
But I recieved this answer:
stop: unknow job: tvheadend
start: unknow job: tvheadend
Do you have any suggestion... ;-)
RE: How to install Tvheadend? - Added by Prof Yaffle almost 11 years ago
Doesn't sound like it's installed - or not installed properly, anyway.
Can you run the following command and paste the output, please:
sudo apt-cache policy tvheadend
And also:
ls -la /etc/init.d/tvheadend
RE: How to install Tvheadend? - Added by Daniel L almost 11 years ago
Thanks again for your answer!!
You are right, Tvheadend has not been installed.
I supposed that the reason was that I run Ubuntu from USB-stick, therefor I installed Ubuntu at the system instead (Dual boot Ubuntu/Win7).
After that I did everything again and then Tvheadend started up as it should...
Now I have to play around to look what settings I need.
Right now I just have a "noname" USB-receiver (DVB-T) to play with.
In Win7 it found drivers for this reciever that was working, but here it seems not...??
If I look at "Configuration/DVB Inputs/TV Adapters" it is empty.
Should it just work if Tvheadend has driver for this receiver?
Maybe I need to buy ”Hauppauge PCTV NanoStick T2 HD 290e” before I can continue?
RE: How to install Tvheadend? - Added by Prof Yaffle almost 11 years ago
If it's a no-name DVB-T receiver, I'd expect the drivers to be in the kernel. However, they may not be...
We can dive into dmesg/syslog to see what's happening, or we can assume... try this:
First, simply restart tvheadend. Sometimes, tvheadend starts before the card has initialised properly, so restarting tvheadend gets the timing right:
sudo service tvheadend restart
If that doesn't work, I'll assume your card isn't starting up properly. Try this:
sudo apt-get linux-firmware-nonfree
and reboot. This installs the binary firmware for a whole load of sticks and cards.
Win7 goes and gets drivers from the Internet; Ubuntu can't quite do the same, partly because it only ships with open source software, so sometimes it needs some help.