Skip to content

Instantly share code, notes, and snippets.

@schliflo
Last active March 22, 2016 15:00
Show Gist options
  • Save schliflo/60d43e380569f0424009 to your computer and use it in GitHub Desktop.
Save schliflo/60d43e380569f0424009 to your computer and use it in GitHub Desktop.
Basic debian setup for fresh installations (inculding swap, zsh with grml config and some other handy tools)
apt-get update -y && \
apt-get upgrade -y && \
apt-get install zsh wget curl unzip htop git ntp -y && \
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc && \
chsh -s /bin/zsh && \
cd /var && \
touch swap.img && \
chmod 600 swap.img && \
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 && \
mkswap /var/swap.img && \
swapon /var/swap.img && \
echo "/var/swap.img none swap sw 0 0" >> /etc/fstab && \
apt-get dist-upgrade -y && \
apt-get autoremove -y && \
cd ~ && \
zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment