Saturday, December 15. 2007How I keep all my config files under version controlTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
"Ah, a Saturday morning that I should spend studying for my exam on Wednesday" I think I messed up worse than you. I started reading about how SQL sucks the night before a database exam haha I'm terrible at that sort of thing. My train of though would be: "WELL... SQL DOES have a lot to do with databases... So I can justify learning about it" Actually, using ~/.config is a freedesktop.org recommendation (it is the default value for XDG_CONFIG_HOME). Xfce respects several fd.o specs. When I take time to version my dotfiles (using Mercurial), I’ll probably use .config/manual or some other subdirectory (and version the whole .config). Have you looked at etckeeper for autmatically managing /etc in a VCS? I found can’t-live-without-it posts on the Web, but I’m not sure I agree. Cheers, Merwok Hrm... Yes, next time I setup a Linux machine which is running some sort of X, I'll put all my stuff in ~/.config/dotfiles or something. And, no, I haven't seen etckeeper... Wow, that's exactly what I need! Up until now I've just been using vanilla Probably the most use I've gotten from keeping /etc/ under version control is when I Hi Actually, /etc/default/program contains the configuration for the init script in /etc/init.d/program, whereas /etc/program (or /etc/program/thing, same thing to me, bash completion takes me to it anyway) is the configuration of the program itself. For example, /etc/mpd.conf contains the configuration for the Music Player Daemon, and /etc/default/mpd contains one or two options which control whether mpd should be run at startup. File Hierarchy Standard for teh win. Man, I’ve been here one year ago, and I haven’t found time to code my own dotfiles-in-vcs scripts :/ As for etckeeper, it would be nice to integrate it with ucf. I don’t use “status” like you do, I prefer to ignore everything and add files on a per-case basis, so that my repo contains only files I edited. BTW, vanilla Mercurial tracks file permissions. Regards, Merwok Ah, glad to see you back! And, yes, you're right - the configuration is logically separated… But that assumes that (a) software is logical and (b) I'm smart enough to know which files need to be edited (I've installed a couple packages which have a flag like What is 'ufc'? And… Sorry - none of git, hg or bzr track file permissions
Hi Software should be logical. In Debian, we have a detailed packaging policy, with an automated tools (lintian) that checks for conformance, and a broad community who reports bugs. The existence and role of /etc/default has to be learned only once. When my computer boots, I get a message “Not starting mpd: disabled by /etc/default/mpd”; some other programs use a special file in the Debian package that gets displayed upon installation, warning me that they won’t be started unless I enable it. But well, I’m a user advanced enough to read the messages at boot and to use a command-line package manager, so I think you’re right when you say these things can be non-obvious. ucf is a program that updates configuration files in Debian. If /etc/program has not been modified locally and has a newer version, ucf will replace it with a newer one, else it will prompt me for directions. I can accept the new version, keep my old one, see a diff, or run a shell to manually merge. I wish it were etckeeper-aware. You’re right about Mercurial and file permissions: it only tracks the executable bit. Hooks and external programs can work around this limitation: http://stackoverflow.com/questions/1289816/can-mercurial-be-made-to-preserve-file-permissions#answer-1291508 Best regards |
QuicksearchLinksCategories |