You are not logged in.
Hi All,
I've been running various flavours of Debian for several years now, and only recently decided to give Arch a go! I've started with my TV media centre. Everything has gone beautifully. It was flawless! It's a quick and responsive as I've ever seen it. The guides in the Wiki are amazing.
Now that it's working - I'm thinking..."how did I get here?" - What packages have I installed? What config files have I changed? Which directories did I create? Which timezone, local etc. settings did I change? Could I get back here tomorrow if I had to?
So "$ pacman -Qqe" seems to have my first question covered - I can fairly easily compile a list of what installed. Does anyone have any pointers to establishing the answer of my other queries?
The main reason for my post though is: What do you do to prevent yourself from losing track of your system/config changes?
Do you manually document what you do? Take copies of your commands? Backup your config files before changing them (allowing for a diff later)? Or something else?
Thanks for reading - I would love to know how everyone else approaches this!
Offline
Some people create a source control (like git) repository containing most config files. If pushed to an online repository it can serve as a backup (for all revisions) as well as an inspiration for others if it's public. When I had to copy my configuration to another system recently I gave it a try and so far it works pretty well for me.
When I install on a new system I just follow the Installation Guide for things like the timezone and local settings, I know pretty well in what timezone I live ^^
EDIT: What it looks like: https://github.com/Steef435/dotfiles
Last edited by Steef435 (2015-06-18 19:23:24)
Offline
For system configuration files, I'm a big fan of etckeeper: https://wiki.archlinux.org/index.php/Etckeeper
Offline
What do you do to prevent yourself from losing track of your system/config changes?
I have a photographic memory ![]()
Jin, Jîyan, Azadî
Offline
Generally, I keep the config changes to a minimum when it comes to system configs. I usually only change the mirrorlist and the pacman config. Really strange things get documented somewhere. The rest is done on my user account and I keep everything in git repositories with vcsh.
Everything I forget will come back to me sometime in the future once I get annoyed enough ![]()
In short, configuring an Arch system is more of a sort of evolution, not revolution (in my case).
Offline
For system configuration, when I make a change I go update my Ansible playbooks. User config files are stored in a git dotfiles directory and deployed with Stow. It's not completely automated yet but I'm getting closer!
Scott
Offline
I only use nano to edit system files so with this in /etc/nanorc,
set backupdir "/home/user/.nano-backups"everthing I edit gets backed up in one place with every version without me thinking about it.
Offline
As I expected, no easy way of retrospectively working out what I've changed. I'm tempted to start again with a view to making sure I track what I've done.
But some very interesting suggestions!
etckeeper looks like exactly what I'm looking for!
The idea of backing up config files automatically is perfect and saves me when I screw them up.
Ansible playbooks looks powerful, but will take a lot of reading before I get anything useable!
Thanks for the pointers! Plenty for me to go on for now!
Offline
As I expected, no easy way of retrospectively working out what I've changed. I'm tempted to start again with a view to making sure I track what I've done.
Retrospectively working out the changes and settings is definitely tough. I'm going to second the recommendation for GNU Stow: https://www.gnu.org/software/stow/. It's very simple to manage all of your configuration files in a single git repo, and with one command you can symlink them to their proper location. It makes for a nicely organized repo: you can see how mine here. I haven't tried etckeeper yet, though. It looks interesting.
I've also been thinking a small script that will save a text file with all of my installed packages - then if I ever need to I can reinstall through those. Haven't got it yet, though.
Offline
I only use nano to edit system files so with this in /etc/nanorc,
set backupdir "/home/user/.nano-backups"everthing I edit gets backed up in one place with every version without me thinking about it.
I've been using nano for years and never knew about this feature. This is fantastic!
Offline