Okay, that log looks like you're registering the adapter. Soooo.... let's take this step at a time.
Let's get rid of your GUI problem first. I'm making no promises that this is going to be pretty, or that there isn't a more elegant way to do this, but let's see... I'd also suggest you take backups of any file you change as we do this, just in case I've got it badly wrong :-)
Kill your running instance of tvheadend (the one which you're starting with -C, as above).
Set up the access control - I'm assuming that you've installed tvheadend with defaults (i.e. it runs as user hts):
sudo su hts
cd ~/.hts/tvheadend
Make sure the file
superuser
in that directory looks like this:
{
"username": "xbmc",
"password": "xbmc"
}
If not, edit it - I use vi, but I'm not explaining here how to edit something in vi...!
check that the file has the right permissions:
chmod 0600 superuser
> you should now have the account xbmc set up to be able to log in. Password is xbmc,
Check the IP settings to make sure you'reallowed to log in:
cd accesscontrol
You may or may not have some files in here. If you have, copy them somewhere else and create a single file called
1
with the contents as follows:
{
"enabled": 1,
"username": "xbmc",
"password": "xbmc",
"comment": "New entry",
"prefix": "0.0.0.0/0",
"streaming": 1,
"dvr": 1,
"dvrallcfg": 1,
"webui": 1,
"admin": 1,
"id": "1"
}
And make sure it has the right permissions if you had to create it:
chmod 0700 1
> This means that the xbmc user can now log in to the web interface from any IP address and access any service. This is really blunt security - i.e. none whatsoever! - but you can tighten it up later if this works.
Restart tvheadendwithout the -C option: you want it to use the config files and security we just created, so need it to run correctly:
sudo tvheadend -f -u hts -g video
-f = fork and run as daemon and change UID as needed once launched
-u = run as user hts (so it gets its setting from /home/hts/.hts - which is where we just put them)
-g = run as group video (so tvheadend should - hopefully - have full access to the adapter(s))
Alternatively, you should be able to just restart it as a default service as you would with a reboot:
sudo service tvheadend start
See where that takes us... check to see if you can now log into the web interface as xbmc/xbmc and see if anything is different with your mux scanning. You may find that you have to reset some options because you may have been creating a separate set of config files in /home/vicenj/tvheadend when running with -C, and these files aren't being read any more.