- grep pam_mkhomedir /etc/pam.d/common-session || \
- echo "session optional pam_mkhomedir.so skel=/etc/skel umask=0022" >> /etc/pam.d/common-session
-}}}
-
-* install debian.org which brings you shells and much other fun
-{{{
- apt-get install debian.org
-}}}
-
-* try to login using your user and ssh key. you should get a homedir.
-
-* make ca-certificates sane: (choose to *not* trust new certs, and we only want the spi cert activated)
-{{{
- echo "ca-certificates ca-certificates/trust_new_crts select no" | debconf-set-selections
- sed -i -e 's/^[^#!].*/!&/; s#^!spi-inc.org/spi-cacert-2008.crt#spi-inc.org/spi-cacert-2008.crt#' /etc/ca-certificates.conf
- dpkg-reconfigure ca-certificates
-}}}
-
-* Add debian-admin@debian.org to root in /etc/aliases
-{{{
- if ! egrep '^root:' /etc/aliases > /dev/null; then
- echo "root: debian-admin@debian.org" >> /etc/aliases
- elif ! egrep '^root:.*debian-admin@debian.org' /etc/aliases > /dev/null; then
- sed -i -e 's/^root: .*/&, debian-admin@debian.org/' /etc/aliases
- fi
- newaliases
-}}}
-
-* sane default editor
-{{{
- apt-get install vim && update-alternatives --set editor /usr/bin/vim.basic
-}}}
-
-* add to munin on spohr
-{{{
- : :: spohr :: && sudo vi /etc/munin/munin.conf
-}}}
-
-
-* disable password auth with ssh, once you verified you can log in
- and become root using keys.
-{{{
- #vi /etc/ssh/sshd_config
- # | PasswordAuthentication no
-
- sed -i -e 's/^PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config &&
- (cd / && env -i /etc/init.d/ssh restart)
+ apt-get install -y samhain &&
+ ( puppet agent -t || true ) &&
+ service samhain stop &&
+ rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file &&
+ samhain --foreground -t init -p none -s none -l none -m none &&
+ service samhain start