Use the power of Org to configure accounts and servers.
How does it work?
M-x org-babel-tangle (
C-c C-v t) on conforguration.org to generate installation scripts in the
Raw dotfiles are in
dotfiles/. Because they start with a dot (e.g.
.bashrc) they are not visible to
ls normally, so use
ls -a to see them.
Dotfiles are copied to
$HOME/dotfiles/ and symlinks are made from your home directory to there.
Installing applications and packages
Sync the scripts to remote servers, then run the scripts on those remote servers. Or run them locally!
The nice things about this is that either locally or remotely, you can use
C-c C-c on the shell blocks to execute them, or you can run the scripts at the command line.
How to install Emacs from scratch the Conforguration way
Warning: this will overwrite all sorts of VERY IMPORTANT files, so you don’t do this unless you’re me, or you’re on a new bare system and want to try it out.
cd sudo apt-get install git git clone email@example.com:wdenton/.emacs.d.git mkdir -p src cd src git clone firstname.lastname@example.org:wdenton/conforguration.git cd conforguration/dotfiles ./dotfile-setup.sh source ~/.bashrc cd ../scripts ./initialize.sh ./emacs-install-requirements.sh ./emacs-install-from-source.sh
emacs. A few dozen packages will be downloaded and installed and when that’s done your Emacs will look exactly like mine! If you don’t want to go that far, skip the
.emacs.d repository download, but make sure your PATH is set up to point to Emacs in the right place under
Because Ansible and similar configuration management tools aren’t done in Org.
I don’t know, but if you’re interested, have at it.
There is a lot of duplication. Perhaps there is a nice way to tidy that up.
GPL v3. See COPYING for details.