access denied
Added by paol ramirez about 10 years ago
hi can someone please help to get web access tvheadend 3.4 patch1? with the user and pass that believes not let me in can help reconfigure the tvheadend?
This is the version tvheadend 3.4 patch 1 compiled by a friend.
Thnaks very much . please !
Replies (27)
RE: access denied - Added by Prof Yaffle about 10 years ago
Platform? On 'buntu, it'd be sudo dpkg-reconfigure tvheadend to create a new admin account.
You can also sudo su hts and look in /.hts/tvheadend/superuser and /.hts/tvheadend/accesscontrol.
RE: access denied - Added by paol ramirez about 10 years ago
thanks , yes is ubuntu os , I've tried but nothing any suggestions? please thanks.
msss@HP:~$ sudo dpkg-reconfigure tvheadend
[sudo] password for msss:
dpkg-query: package 'tvheadend' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: tvheadend is not installed
mssse@HP:~$ apt-get install dpkg
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
RE: access denied - Added by Prof Yaffle about 10 years ago
The line:
dpkg-query: package 'tvheadend' is not installed and no information is available
suggests that you don't actually have tvh installed - or, if you do, it's a customised/renamed/ancient/version. How did you install? You said 'compiled by a friend', so did you use dpkg to install a .deb file? Or are you running tvheadend as an executable?
Output of the following, please:
which tvheadend
sudo apt-cache policy tvheadend
... and also how are you starting tvh and from where. I suspect you don't have the package installed, so your config could be anywhere...
RE: access denied - Added by paol ramirez about 10 years ago
hello thanks very much , and i have compiled this version https://tvheadend.org/projects/tvheadend/wiki/Tvheadend-34 for terminal , and can i reset user and pass for access web control ? any suggests please ?
root@HP:~# which tvheadend
/usr/local/bin/tvheadend
root@HP:~# sudo apt-cache policy tvheadend
N: Unable to locate package tvheadend
root@HP:~#
RE: access denied - Added by Prof Yaffle about 10 years ago
Right, you have no PPA (repository) defined, and have compiled a local version which you're running from the command line. Not a good idea unless you know what you're doing.
If you don't need a specific version of tvheadend, or don't want to run on the 3.9.x master branch, set up a PPA and install stable from there.
If you want nightly 3.9.x versions, set up the unstable PPA and install from there.
If you need a specific version or want to modify the code, build a .deb with Autobuild.sh and install it using dpkg. You'll get a much cleaner installation, with the hts user set up, etc.
RE: access denied - Added by paol ramirez about 10 years ago
hi thanks for the prompt response, but does not work well tvheadend Deb is very unstable, otherwise I compile my friend this is a very stable never fallen for more than 4 days ago ...... I would like to change the passoword to access web control there way to change it? ok well this guide you posted does not work there any other guide to compile?
Prof Yaffle wrote:
Right, you have no PPA (repository) defined, and have compiled a local version which you're running from the command line. Not a good idea unless you know what you're doing.
If you don't need a specific version of tvheadend, or don't want to run on the 3.9.x master branch, set up a PPA and install stable from there.
If you want nightly 3.9.x versions, set up the unstable PPA and install from there.
If you need a specific version or want to modify the code, build a .deb with Autobuild.sh and install it using dpkg. You'll get a much cleaner installation, with the hts user set up, etc.
RE: access denied - Added by Prof Yaffle about 10 years ago
You need to give some more details, I'm afraid... installing 3.4 stable from the PPA should work fine. And the guide is also fine, so you'd need to expand on 'does not work': if you need to check out 3.4 then switch to that branch and check it out before building, otherwise you'll get 3.9.x/master.
Your other approach is to find your tvheadend configuration (it would be in /home/hts/.hts/tvheadend, but you haven't installed it properly...) and look in the superuser file and the accesscontrol directory. The first of these contains the details of the account that has overall admin access at all times; the second, the individual rules that you'd set up in the web interface Access Control tab. Editing these files, or creating a new accesscontrol file, and restarting is a blunt way of resetting or removing your password(s).
RE: access denied - Added by paol ramirez about 10 years ago
hi thanks for your time and response, ok the accesscontrol file not seem to find it does not exist, you can post a guide to stable version? or could help me via remote?
RE: access denied - Added by Prof Yaffle about 10 years ago
Again, I don't know how you're running it, so I don't know the exact paths. However, assuming $CONFIG is your base tvheadend configuration directory:
cd to $CONFIG/accesscontrol (note that accesscontrol is a directory, not a file).
Create a file in this directory named "1"
Put this into that file:
{
"enabled": 1,
"username": "user",
"password": "password",
"comment": "New entry",
"prefix": "0.0.0.0/0,::/0",
"streaming": 1,
"dvr": 1,
"dvrallcfg": 1,
"webui": 1,
"admin": 1,
"id": "1"
}
... and restart tvheadend. Clear your browser's cache and restart that as well, then connect to <....>:9981.
You should be prompted for a username/password - enter user/password as above - and you should connect with full rights.
You can then edit this rule or create new ones in the Access Control tab (you should do this: this rule allows full access from anywhere that can reach your system).
While you're there. look for the file $CONFIG/superuser. That should be of the form:
{
"username":"adminuser",
"password":"adminpassword"
}
... so create that if necessary. If the accesscontrol rule doesn't work, the user defined in this file will.
Check permissions as well... I don't know how you're running tvheadend, but it needs to be able to read and write to these files and directories.
RE: access denied - Added by paol ramirez about 10 years ago
hi thanks ok this is the only folder listed called me here I think the conf file with one name? super-user file can not find where it can be? via remote could help please? thank you
usr/local/share/tvheadend/data/conf is right ?
RE: access denied - Added by Prof Yaffle about 10 years ago
It should be a user directory. If you're starting tvheadend the normal way, it'd be /home/hts/.hts/tvheadend; if you're starting as your own user from the command-line, I'd guess at ~/.hts/tvheadend. So you're looking for:
1. A file, ~/.hts/tvheadend/superuser, into which you'd place the text as above
2. A directory, ~/.hts/tvheadend/accesscontrol, into which you'd place a new file with the text as above
Really, truly, honestly - especially given how you're struggling - delete what you've got, add the stable PPA, and install 3.4 from there. It's the best way and it would be set up for you.
Try it. I can't promise to be able to help you by remote (I don't even know what timezone you're in, so scheduling may be fun), but that remains the nuclear option...
RE: access denied - Added by paol ramirez about 10 years ago
hello thank you very much and can solve the problem by deleting the file 1 which were access control data. thank you
Prof Yaffle wrote:
It should be a user directory. If you're starting tvheadend the normal way, it'd be /home/hts/.hts/tvheadend; if you're starting as your own user from the command-line, I'd guess at ~/.hts/tvheadend. So you're looking for:
1. A file, ~/.hts/tvheadend/superuser, into which you'd place the text as above
2. A directory, ~/.hts/tvheadend/accesscontrol, into which you'd place a new file with the text as above
Really, truly, honestly - especially given how you're struggling - delete what you've got, add the stable PPA, and install 3.4 from there. It's the best way and it would be set up for you.
Try it. I can't promise to be able to help you by remote (I don't even know what timezone you're in, so scheduling may be fun), but that remains the nuclear option...
RE: access denied - Added by paol ramirez about 10 years ago
ok, thanks last question like this version of tvheadend reset? deb if the verion as this is compiled into this but please do not reset by default as this tvheadend? grcias
RE: access denied - Added by Prof Yaffle about 10 years ago
I'm struggling with your questions a little, I'm afraid - my apologies - all I can say is that my Spanish would be worse (even with Google translate)...
If you give up on the version you have and install a fresh version, you'll have an entirely new configuration. At the moment, you probably have something in ~/.hts/tvheadend because you're starting it as ~/tvheadend/build.local/tvheadend, something like that; if you install the .deb, your config will be in /home/hts/.hts/tvhheadend. It will be a blank configuration; you'll need to add your muxes and start again (but it's the right way and the safest way).
If you want to move your configuration, you'd need to copy the files from ~/.hts/tvheadend to /home/hts/.hts/tvhheadend. However, you'll also need to change permissions, as the tvheadend daemon process, when installed correctly, runs as user hts and not as your UID - so, everywhere you see a file or directory in this configuration owned by you, you'd need to change it. Not easy, especially if you have group permissions
What would I do? Delete the compiled version completely. If you've installed it with make install, use make uninstall to try to get rid of it (it may not work - one of the reasons NOT to install like this and to use the .deb instead). Remove every last trace you can find, then follow the instructions to add the stable PPA and use sudo apt-get install tvheadend to start all over again. It would take a few minutes out of your life and be much more predictable...
Buena suerte
RE: access denied - Added by paol ramirez about 10 years ago
hi thanks for your time, ok it was clear that I agree with your advice, I think the compiled tvheadend is more stable than the deb you think? other question please, because the channels are in testing? they should be? ok are two days the tvheadend 3.9 compiled by going on crash and stop working because that happens? I have to reboot again C tvheadend any advice? thank you
RE: access denied - Added by Prof Yaffle about 10 years ago
The 3.4 PPA is very stable - if you're getting crashes then something's causing them. tvh isn't bug-free, but it doesn't just stop every two days for most people.
The 3.9 debs/unstable PPA is likely to be less stable because it's under active development.
I'd use the 3.4 version (stable PPA) unless there's something you need in 3.9.x - then and only then use the unstable PPA. If you're getting crashing it's likely to be a conflict with hardware, something in your settings and/or damaged config files from all the versions. Wipe and start again if you can.
RE: access denied - Added by paol ramirez about 10 years ago
hi ok thanks, you can post a simple guide for tvheadend 3.4 ppa? Please , this how to https://tvheadend.org/projects/tvheadend/wiki/AptRepository when I try to compile from the terminal every command gives nothing does not drop anything I'm doing wrong? thanks very much.
RE: access denied - Added by paol ramirez about 10 years ago
when I put this command in the terminal does not drop anything .... if the key on .... I'm doing wrong? sudo apt-add-repository http://apt.tvheadend.org/stable
RE: access denied - Added by Prof Yaffle about 10 years ago
"every command gives nothing does not drop anything" ... hmmmm ... show me the terminal session, please - screenshots or cut-and-paste the text you see, including what you're typing... that guide should work.
1. Please give the output of
uname -a
2. Please provide the output of
lsb_release -a
3. Output of
cat /etc/apt/sources.list
4. Output of
apt-cache policy tvheadend
5. Output of
ls -la /usr/bin/tvheadend
6. Follow the instructions on the page above and provide the commands and their output
... and I'll see if there's anything obvious.
RE: access denied - Added by paol ramirez about 10 years ago
hello thanks very much here log for the command
root@HP:/home/ACDC# uname -aLinux HP 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:30:01 UTC 2014 i686 i686 i686 GNU/Linux
root@HP:/home/ACDC# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
root@HP:/home/ACDC# cat /etc/apt/sources.list
- deb cdrom:[Ubuntu-GNOME 14.04.1 LTS Trusty Tahr - Release i386 (20140722.2)]/ trusty main multiverse restricted universe
- See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
- newer versions of the distribution.
deb http://mx.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty main restricted
- Major bug fix updates produced after the final release of the
- distribution.
deb http://mx.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
- N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
- team. Also, please note that software in universe WILL NOT receive any
- review or updates from the Ubuntu security team.
deb http://mx.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty universe
deb http://mx.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-updates universe
- N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
- team, and may not be under a free licence. Please satisfy yourself as to
- your rights to use the software. Also, please note that software in
- multiverse WILL NOT receive any review or updates from the Ubuntu
- security team.
deb http://mx.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://mx.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
- N.B. software from this repository may not have been tested as
- extensively as that contained in the main release, although it includes
- newer versions of some applications which may provide useful features.
- Also, please note that software in backports WILL NOT receive any review
- or updates from the Ubuntu security team.
deb http://mx.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
- Uncomment the following two lines to add software from Canonical's
- 'partner' repository.
- This software is not part of Ubuntu, but is offered by Canonical and the
- respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner
- This software is not part of Ubuntu, but is offered by third-party
- developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb http://apt.tvheadend.org/stable trusty main
- deb-src http://apt.tvheadend.org/stable trusty main
- deb-src http://apt.tvheadend.org/stable trusty main
- deb-src http://apt.tvheadend.org/stable trusty main
- deb-src http://apt.tvheadend.org/stable trusty main
- deb-src http://apt.tvheadend.org/stable trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
root@HP:/home/ACDC# apt-cache policy tvheadend
N: Unable to locate package tvheadend
root@HP:/home/ACDC# ls -la /usr/bin/tvheadend
ls: cannot access /usr/bin/tvheadend: No such file or directory
RE: access denied - Added by Prof Yaffle about 10 years ago
Okay, all looks okay, but you just don't have a package installed for tvheadend. Whatever you have, wherever it is, you don't need it.
sudo apt-get update
sudo apt-get install tvheadend
If that won't work - and you should delete your self-build version first...
apt-cache showpkg <package-name>or
apt-cache policy tvheadendshould tell you what's available.
Then
sudo apt-get install tvheadend=<version-from-command-above>
Again, get rid of your previous installation, compilation, binary and config. You'll have to set up again from scratch, but you'll live longer if you do...
Next time you reboot, if it's installed then tvheadend will be running and you can log in with the user details you provided as it installed.
RE: access denied - Added by paol ramirez about 10 years ago
hello thank you very much for your time, and this was solved with tips everything 100%, I get a question like epg channels of tvheadend?
RE: access denied - Added by Prof Yaffle about 10 years ago
paol ramirez wrote:
I get a question like epg channels of tvheadend?
Sorry, I don't understand the question... let me try, though.
Tvheadend can produce EPG information from over-the-air data from your broadcaster or import it from external sources such as xmltv. You can choose which: OTA data is more real-time, xmltv tends to be more detailed and covers a longer period (e.g. up to 14 days versus 7 on the OTA data).
RE: access denied - Added by paol ramirez about 10 years ago
hi thanks for your answer, very grateful for your help, ok what I want is to play and info epg channel which is broadcasting is possible? , because if you look good channels very stable, the only thing not aparce info channel and epg, any solution?
RE: access denied - Added by Prof Yaffle about 10 years ago
Only if your broadcaster has an EPG channel.
EPG is normally sent as data that something needs to extract and interpret (like reading a file) - I believe that DVB-T sends updates on all channels, while DVB-S uses one master EPG data channel, but that may just be a local thing. Either way, there isn't a channel you can tune to to find out what's on... you need to use some client software to interpret the EPG data and then display it.
XBMC/Kodi can do it, and you have the tvheadend webUI. I don't know about other clients, but I'm sure they exist.