#!/bin/bash #Installation # Set the hostname echo martin-pc > /etc/hostname # Set timezone (or use tzselect) ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime # Set locales and generate them echo LANG=de_DE.UTF-8 > /etc/locale.conf echo LANGUAGE=de_DE >> /etc/locale.conf echo KEYMAP=de-latin1 > /etc/vconsole.conf echo "en_US.UTF-8 UTF-8" > /etc/locale.gen echo "en_US ISO-8859-1" >> /etc/locale.gen echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen echo "de_DE ISO-8859-1" >> /etc/locale.gen locale-gen # Configure the network pacman -Sy wpa_supplicant dialog cp /etc/netctl/examples/wireless-wpa /etc/netctl/ nano /etc/netctl/wireless-wpa netctl enable wireless-wpa # Create a new initial RAM disk mkinitcpio -p linux # Set the root password echo "Set root password:" passwd # Install and configure the Bootloader bootctl install echo "title Arch Linux" > /boot/loader/entries/arch.conf echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch.conf echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf echo "options root=/dev/sda2 rw" >> /boot/loader/entries/arch.conf echo "default arch" > /boot/loader/loader.conf # Exit the chroot environment and reboot (optionaly add: umount -R /mnt) echo "1. exit | 2. umount -R /mnt | 3. reboot | 4. execute Arch-Post-Installation.sh"