The /etc directory for git.anyonecanedit.org
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apache2
apt
cron.d
logrotate.d
network
postfix
ssh
.gitignore
README.mkdn
aliases
crontab
fstab
group
hostname
hosts
logrotate.conf
mailname
passwd
profile
reportbug.conf
rsyslog.conf
sudoers
tmpreaper.conf

README.mkdn

About this repository

This Git repository hosts the /etc configuration for v.nix.is. Its origin is avar/linode-etc on Github.

What's here

We've only checked in files which have been modified from the Debian defaults. This way we can easily migrate to another machine, install the relevant packages and checkout this repository on top of the /etc tree.

How to commit

First make sure you have a ~/.gitconfig which includes user.name and user.email settings. See the Github documentation for more info.

Adding a file

If you're going to edit a file first commit the default Debian version. This gives us something to git diff against:

sudo git add -f /etc/crontab
sudo git commit -m"Adding the default Debian crontab" !$

Modifying files

After that commit your changes:

# See what you changed
git diff /etc/crontab

# Add your changes
sudo git commit -m"Adding XXYYZZ cron jobs" /etc/crontab

# Push back to Github
git push

Documentation

Most of the documentation on the setup of various services is in the Git commit logs.

For example; to find out why the mail setup is why it is just read the git log for the postfix/ directory.

There may also be some documentation in subdirectories of /etc. To check it out look at:

sudo find /etc -name 'README.mkdn'  

Issues

Issues and TODOs are tracked in the issue tracker which is hosted on Github.