Skip to content

Instantly share code, notes, and snippets.

@bcremer
Created February 6, 2015 21:20
Show Gist options
  • Save bcremer/c810820c64e50a59b639 to your computer and use it in GitHub Desktop.
Save bcremer/c810820c64e50a59b639 to your computer and use it in GitHub Desktop.
DigitalOcean Debian Jessie with systemd

Install Debian Jessie on DigitalOcean using the Debian 7.0 x64 Image.

First update to Debian 8.0 Jessie:

# Source:
# http://unix.stackexchange.com/questions/90389/how-to-upgrade-debian-stable-wheezy-to-testing-jessie/90391#90391
cp /etc/apt/sources.list{,.bak}
sed -i -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list
apt-get update
apt-get --download-only dist-upgrade
apt-get dist-upgrade
reboot

I you are asked any questions during the upgrade process just confirm with a yes to get the new default configurations.

Now, that we are on a fresh Debian Jessie let's remove some unused packages:

aptitude purge accountsservice avahi-daemon exim4-base consolekit 

... Replace cron and anacron with systemd-crond

sudo aptitude install systemd-cron 

Persistent journal

chgrp systemd-journal /var/log/journal
chmod 2755 /var/log/journal
echo "ForwardToSyslog=no" >> /etc/systemd/journald.conf
systemctl restart systemd-journald
systemctl stop rsyslog
aptitude purge rsyslog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment