Project

General

Profile

Where are the config files for TVHeadend?

Added by Mark de Leon 9 months ago

I want to know where are the config files for TV Headend? I have tried to remove and purge TV headend and if I then reinstall it has retained my old password before I have even set it. I was able to find the /home/hts file with hidden config files but I see that this does not do it there are obviously more.

I am trying to clean up an install that has been problematic and do not understand why the deb is built in a way that it can not be purged.

I am running on Rasbian (stretch)


Replies (8)

RE: Where are the config files for TVHeadend? - Added by Hiro Protagonist 9 months ago

If you are installing as user hts, then /home/hts is all there is.

Other than that, your question is too vague for anyone to provide more information.

RE: Where are the config files for TVHeadend? - Added by Mark de Leon 9 months ago

I guess you did not read the question.

It clearly states that I found those files but there are other files that are surviving a purge and reinstall.

Since you seem to not read anyway I see no reason to explain further.

Mark

RE: Where are the config files for TVHeadend? - Added by Nick Sillito 9 months ago

I assume that you set the password as part of the initial tvheadend install process?
The password is stored by the debian config manager. The is a useful article on stackexchange about it at https://unix.stackexchange.com/questions/96215/feeding-input-values-to-dpkg-reconfigure-in-a-non-interactive-way

RE: Where are the config files for TVHeadend? - Added by Mark de Leon 9 months ago

Yes but that is not the configuration that I am concerned about . That password can be reset with dpkg-reconfigure

My concern is for the rest of the configuration that keeps surviving a "purge" and reinstall . Program was installed with the repo for Raspbian posted here https://tvheadend.org/projects/tvheadend/wiki/AptRepositories

No matter what I do to attempt to purge it the old settings remain, and I believe they may be corrupt.

RE: Where are the config files for TVHeadend? - Added by Dave Pickles 9 months ago

Are you "purging" the settings using the apt purge command?

From the man page for apt:

Removing a package removes all packaged data, but leaves usually small
(modified) user configuration files behind, in case the remove was an
accident. Just issuing an installation request for the accidentally
removed package will restore its function as before in that case. On the
other hand you can get rid of these leftovers by calling purge even on
already removed packages. Note that this does not affect any data or
configuration stored in your home directory.

Note the last sentence. In the case of TVHeadend the home directory is /home/hts, so the configuration data stored in /home/hts/.hts/tvheadend/ will not be touched. You would have to delete those files manually.

RE: Where are the config files for TVHeadend? - Added by Mark de Leon 9 months ago

I do not see the need to keep repeating myself you shuld READ my post before responding. There ARE configuration files saved elsewhere. if you do a debian install then purge then remove that folder that you mentioned, then reinstall you will still NOT get a "clean reinstall"

RE: Where are the config files for TVHeadend? - Added by dorin ilut 9 months ago

sudo apt install mlocate
sudo updatedb
sudo locate tvheadend

this will return any and all files connected to tvheadend and their location, that includes the .hts folder

RE: Where are the config files for TVHeadend? - Added by Dave H 9 months ago

You can try various techniques to discover where your config files are and then remove them. Some will require starting again from a clean installation of the OS.

- run find over the whole system, looking either for character patterns such as '*tvh*' or for the date you installed TVH or subsequently modified it

- look at the package spec and install records to see if you can find the locations it installs stuff to (e.g. dpkg-deb -c)

- install the system on btrfs or similar filesystem with rollback capabilities, then install TVH

If you want answers about debian or raspbian (why are you using something as old as stretch, BTW?) and their utilities then one of their forums might be a better place to get help.

    (1-8/8)