Created
January 3, 2019 08:09
-
-
Save sgoranson/7f72ea5d9b0ba3c25ee0e1284a8d3728 to your computer and use it in GitHub Desktop.
#arch install simple script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Timezone | |
# | |
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime | |
hwclock --systohc | |
# | |
# Localization | |
# | |
echo "en_US.UTF-8 UTF-8 " >> /etc/locale.gen | |
echo "en_US ISO-8859-1 " >> /etc/locale.gen | |
locale-gen | |
echo "LANG=en_US.UTF-8" > /etc/locale.conf | |
echo "KEYMAP=de-Latin1" > /etc/vconsole.conf | |
echo "arch" > /etc/hostname | |
# | |
# Networking | |
# | |
echo "127.0.0.1 localhost" >> /etc/hosts | |
echo "::1 localhost" >> /etc/hosts | |
# | |
# Microcode | |
# | |
pacman -S intel-ucode --noconfirm | |
# | |
# Boot Manager | |
# | |
bootctl --path=/boot install | |
touch /boot/loader/entries/arch.conf | |
echo "title Arch Linux" >> /boot/loader/entries/arch.conf | |
echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch.conf | |
echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch.conf | |
echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf | |
# change the root device if applicable | |
echo "options root=/dev/sda3 rw" >> /boot/loader/entries/arch.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment