Score:0

What places/directories should I track in order to have history of all system configurations?

ph flag

I play with different settings quite often, in Ubuntu itself and in apps I'm using on it. Some changes turn out to be incorrect or even harmful and I often don't remember what I've exactly done and how to revert it. Moreover, apps I install sometimes create/modify things on my hard drive without me knowing about it.

I'm looking for a way to track all changes that happen on my system. I know there is etckeeper, but it tracks only /etc but AFAIK this is not the only place system configuration is stored. I know there are tools like Ansible, but I'm looking for solution for desktop user, not for server.

Is there a list of all places on Linux filesystem that can possibly store configurations of any kind so I could track them with some VCS like git? Are there any guidelines of what to track? Naming conventions that could help me filter out files I'm not interested in tracking?

Nmath avatar
ng flag
There is nothing you can really do to track every single action you take in every single application you use. You will need to make backups and take notes if you are making changes that you feel might break your system
user535733 avatar
cn flag
Advice: Use a disposable install (VM or Container) to play with random settings. If you develop a method of tracking all possible configurations or settings that's not itself too bloated or intrusive, we would love hear about it.
Piotrek avatar
ph flag
After reading about unix everything-is-a-file principle and observing a tendency of Linux packages to store configs in human readable way, I thought it would be quite natural for such functionality to emerge. I'm a bit disappointed ;)
Nmath avatar
ng flag
You are oversimplifying how software is developed and how software actually works. All of the software that you use has been developed by different groups of people. It's not like every piece of software has a single standardized "config" file, and even if it did, you're asking for an entirely different piece of software to perform what you're asking, software that would need permissions to read and change files belong to other software. There is not a one-size-fits-all approach. You are simply asking for something a whole lot more complicated than you are presuming
waltinator avatar
it flag
You could use `strings` on each binary, deduce which environment variables and filesystem paths are hardcoded in the binary. Check shared libraries, too. `man strings ldd ld.so`
Score:1
us flag

There are many places where configuration files are stored, but backing up $HOME/.config and /etc would already cover up most of it. But, if you want to be really sure everything relevant has been backed up / saved, you'd literally need to to do a complete disk backup.

Most configuration files have a .cfg, .conf or .ini extension - but that too, can be different.

Score:0
us flag

Well, I can't say about all configurations and settings, but you can get all the apps you have ever installed by sudo apt list --installed > ~/all-my-programs Taken from

https://askubuntu.com/a/1193626/707756

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.