Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #208029

Re: How do I trace changes in configuration files?

From Dan Purgert <dan@djph.net>
Newsgroups linux.debian.user
Subject Re: How do I trace changes in configuration files?
Date 2019-05-02 13:10 +0200
Message-ID <xThLb-Qk-1@gated-at.bofh.it> (permalink)
References <xSTSx-2Nt-7@gated-at.bofh.it> <xSVKF-3WH-1@gated-at.bofh.it> <xT0AF-6Wi-1@gated-at.bofh.it> <xTaA1-4M7-1@gated-at.bofh.it>
Organization A noiseless patient Spider

Show all headers | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

David Wright wrote:
> On Wed 01 May 2019 at 18:43:47 (+0200), Erik Josefsson wrote:
>> Den 2019-05-01 kl. 13:29, skrev Dan Purgert:
>>> [...]
>> > Or you can use a revision tool. I ran across "rcs" a few years ago, and
>> > while it's not something I always use, when I remember, it's pretty
>> > good at what it does.
>> > 
>> > Either of these could be wrapped up in a little script --
>
> [snipped]
>
>> > Personally I like vi, but if you don't, replace it with whatever your
>> > editor of choice is.  The scripts probably have flaws that someone will
>> > point out soon (like calling it with no file, or multiple files, etc).
>
> This can more or less guarantee that you save changes made by editing
> the configuration files themselves, but …
> [...]
> … it fails to capture changes made on your behalf, like typing the
> SSID and passphrase into, say, wicd (which puts them into
> /etc/wicd/wireless-settings.conf). So it helps to have a dead simple
> method for collecting this information, less you put it off and
> then inevitably forget about doing it later.

I rarely use GUIs to do the work for me -- but yes, good point that
there are config files hidden behind graphical programs too. :)

I don't wifi very much -- just the one laptop leaves the house, but it
doesn't matter if/when it has different things, because none of the
other wireless devices will see those networks.

>
> As for finding where the information went, I sometimes use
> # find /boot /etc /home /lib /lib64 /var -type f -mmin -1440 -print |
> less # one day
> but changing 1440 to something more appropriate, like 10 (mins).

NICE!  I always forget about the 'time' options in find. 

>
> I also maintain a shell script that I run almost immediately after
> installing Debian, that performs a load of administrivia like
> adding me to groups, changing permissions, etc etc. It actually kicks
> off by installing etckeeper and configuring git. I add more items
> to it occasionally, and rerun it, so one or two items are protected
> by conditionals preventing their getting repeated unnecessarily.
> (But it's clunky and slow; for example there's a long list of
> .debs to install, so it spews out "already installed' messages.)

Haha, yeah, I have one of those myself.  Looking at picking up an
ansible or puppet reference and getting started with that "soon(tm)".


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlzKzHQACgkQjhHd8xJ5
ooH8Hgf9FCmDoNafDD9zMZPee+v4qrSMJLqn/AxSGoM353xeEy/cS9cy3o8gdb5l
7QQcs0rxSYyBaEwGZUuhYaJFqxKveIRu93f/6aRwoU8Yn8w82FbtmuZXtINvqnjZ
2Sm+pmEmhdQXmn9hKVhncnlXIV1U22UVY/KqnC8iT6gCjOstqnRdzciVQ0UWnz45
lJXDjAZcaZPTnlKJRWQeVrAzV35+Afy8s9j/v0WbtjpCTtskFW7rF6+coDmRZoCV
ZYMYTESdw9ynP1wvFYGFR6tmU4Fa8xIBuPlvJ5EgMlVH+akfR7VeLLXF+iqbti1T
4gtG297auYlPf5BwXy2ZitHAIo52pg==
=dvdw
-----END PGP SIGNATURE-----

-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do I trace changes in configuration files? Erik Josefsson <erik.hjalmar.josefsson@gmail.com> - 2019-05-01 11:40 +0200
  Re: How do I trace changes in configuration files? Jonas Smedegaard <jonas@jones.dk> - 2019-05-01 13:00 +0200
  Re: How do I trace changes in configuration files? Dan Purgert <dan@djph.net> - 2019-05-01 13:40 +0200
    Re: How do I trace changes in configuration files? Erik Josefsson <erik.hjalmar.josefsson@gmail.com> - 2019-05-01 18:50 +0200
      Re: How do I trace changes in configuration files? Dan Purgert <dan@djph.net> - 2019-05-01 19:30 +0200
      Re: How do I trace changes in configuration files? Joe <joe@jretrading.com> - 2019-05-01 23:20 +0200
        Re: How do I trace changes in configuration files? Jude DaShiell <jdashiel@panix.com> - 2019-05-02 00:10 +0200
      Re: How do I trace changes in configuration files? David Wright <deblis@lionunicorn.co.uk> - 2019-05-02 05:30 +0200
        Re: How do I trace changes in configuration files? Dan Purgert <dan@djph.net> - 2019-05-02 13:10 +0200
        Re: How do I trace changes in configuration files? Lee <ler762@gmail.com> - 2019-05-02 18:20 +0200
          Re: How do I trace changes in configuration files? David Wright <deblis@lionunicorn.co.uk> - 2019-05-02 22:20 +0200
            Re: How do I trace changes in configuration files? Lee <ler762@gmail.com> - 2019-05-02 23:00 +0200
  Re: How do I trace changes in configuration files? Andy Smith <andy@strugglers.net> - 2019-05-02 12:10 +0200

csiph-web