Last active
March 10, 2017 08:57
-
-
Save harry830622/c8436c1b80e00af60c8afb01e7e69f6a to your computer and use it in GitHub Desktop.
Arch Linux install 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
#!/usr/bin/env bash | |
timedatectl set-ntp true | |
gdisk /dev/sda | |
mkfs.vfat /dev/sda1 | |
mkfs.ext4 /dev/sda2 | |
mount /dev/sda2 /mnt | |
mkdir -p /mnt/boot | |
mount /dev/sda1 /mnt/boot | |
vim /etc/pacman.d/mirrorlist | |
pacstrap /mnt base base-devel | |
genfstab -U /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt | |
ln -sf /usr/share/zone/Asia/Taipei | |
hwclock --systohc | |
vi /etc/locale.gen | |
locale-gen | |
echo "LANG=en_US.UTF-8" >> /etc/locale.conf | |
echo "ARCH-VM-UX303L" >> /etc/hostname | |
vi /etc/hosts | |
systemctl enable dhcpcd@enp0s3.service | |
mkinitcpio -p linux | |
passwd | |
bootctl install | |
vi /boot/loader/loader.conf | |
vi /boot/loader/entries/arch.conf | |
exit | |
umount -R /mnt | |
reboot now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment