Project

General

Profile

Only three options

Added by David Åman almost 10 years ago

!!
The strangest thing just happen to me. When I go to the ip address to my TvHeadend I only see three options at the top.
Electronic Program Guide, Digital Video Recorder and About.

I just bought a second USB-TV card that I would like to configure. What to do?


Replies (9)

RE: Only three options - Added by Prof Yaffle almost 10 years ago

Looks like something's gone wrong with access control. Clear browser cookies and/or restart your browser and/or try a different machine. If none of that works, you've got an "all users, no password, no rights other than to the DVR" entry that's matching automatically.

Have a look in ~/.hts/hts/tvheadend/accesscontrol (you'll need to be hts or root) - you'll find the access control files there - edit them by hand if needed and then restart tvh.

RE: Only three options - Added by David Åman almost 10 years ago

Have tried it from another "clean" pc. Same problem.
I found one file under ~/.hts/hts/tvheadend/accesscontrol. It's called 1. I viewed it, it has this information

{
"enabled": 1,
"username": "*",
"password": "*",
"comment": "Default access entry",
"prefix": "0.0.0.0/0",
"streaming": 1,
"dvr": 1,
"webui": 1,
"admin": 0,
"id": "1"
}

When I installed it I set username to: xbmc and password to :xbmc
So it's strange that it just shows lika a "*"

I have now changed the information to..

{
"enabled": 1,
"username": "xbmc",
"password": "xbmc",
"comment": "Default access entry",
"prefix": "0.0.0.0/0",
"streaming": 1,
"dvr": 1,
"webui": 1,
"admin": 1,
"id": "1"
}

But when going to the webpage, still only three options. It dosen't prompt me for username and password.
I have test this from the machine that has this software installed localhost:9981 and from another pc on the network ip-adress:9981

What is the next step?

RE: Only three options - Added by Prof Yaffle almost 10 years ago

The xbmc/xbmc bit will be stored in the file superuser - that should work as well.

All I can suggest is clearing your browser's cache, trying a different browser, trying a different system. That file looks fine from what I remember - it's the old format, but still looks okay.

The other thought is to check syslog and see if there are any errors there - maybe something corrupt and a file can't be found, maybe there's a permission error.

One thing I didn't ask - how did you install, how are you running? As an example, if you're starting from command line but not using the right -u option, tvh won't be runnign as the right user so won't be able to access the config files properly. That doesn't explain why it 'just happened', though...

RE: Only three options - Added by David Åman almost 10 years ago

Sorry for my late respond. I reinstalled the computer because I didn't have the time to troubleshot. But I installed it the same way as last time. I installed Ubuntu 14.10, then from the terminal I run...

sudo apt install curl
curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -
sudo apt-add-repository http://apt.tvheadend.org/stable
sudo apt update
sudo apt install tvheadend

RE: Only three options - Added by Prof Yaffle almost 10 years ago

And did it install? If you're on 14.10, I'm presuming it didn't as there isn't a build for Utopic so you'll need to edit sources.list to change 'Utopic' to, say, 'Trusty':

http://apt.tvheadend.org/stable/dists/

After that, you should be able to log in as the account you created when you installed, and then set up new access control as required.

RE: Only three options - Added by David Åman almost 10 years ago

You are so right, see my old post...
https://tvheadend.org/boards/5/topics/13961?r=13967#message-13967
I don't understand the difference between Utopic or Trusty. When I changed it to "Trusty" it could install. But is this something that will be fixed so I/we can install tvheadend without editing the sources list in Ubuntu?

Or wich linux system do you recommend?

RE: Only three options - Added by Prof Yaffle almost 10 years ago

Which Linux...? "It depends". Some people swear by Arch, or Fedora, or Suse, or 'real' Debian.

Personally, I use 'buntu (Xubuntu, specifically) because it does what I need with good support - but the new version every six months is a pain, so I stick to LTS releases. That means Trusty for me on all my systems. However, if you want latest kernels and source packages and don't mind upgrading or reinstalling in a year's time then Utopic is fine. Mint also has a growing fanbase, despite it being another Ubuntu derivative - and they've just broken from tradition so they're not tracking 1:1 with versions any more (the new Mint - 17, I think? - is Ubuntu 14.04 still).

Re: the build, let me ask and see if we can add Utopic. You're not alone with this issue.

RE: Only three options - Added by Prof Yaffle almost 10 years ago

Thanks to Mr Sutton, Utopic builds are now on the PPA. How's that for service :)

Ubuntu comes out with a new version every six months, and they then cease support on older versions - that's where you get Precise, Quantal, Raring, Saucy, Trusty, Utopic - they're versions 12.04 (released April 2012), 12.10 (October), 13.04, 13.10, 14.04 and 14.10 respectively. The exeption is the 'LTS' builds - Long Term Support - which don't lose support and instead stick around for several years so you can build a stable system and expect it to last. These appear every two years, so 12.04/Precise and 14.04/Trusty are the current LTS releases.

If that helps...!

RE: Only three options - Added by David Åman almost 10 years ago

Aha.. so the next time I should go for the LTS version of Ubuntu. Thank you for all information and help! :)

    (1-9/9)