#!/bin/bash set -e ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime hwclock --systohc echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen locale-gen echo "LANG=en_US.UTF-8" >> /etc/locale.conf echo "$2" > /etc/hostname echo "127.0.0.1 localhost" > /etc/hosts echo "::1 localhost" >> /etc/hosts echo "127.0.1.1 $2.lan $2" >> /etc/hosts grub-install $1 grub-mkconfig -o /boot/grub/grub.cfg