-
-
Save cronburg/3b73dd747598a3515228 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
# lsblk: show devices | |
parted /dev/sda | |
mklabel msdos | |
mkpart primary ext4 1MiB 100MiB | |
set 1 boot on | |
mkpart primary ext4 100 15GiB | |
mkpart primary linux-swap15 16 | |
mkpart primary ext4 16 100% | |
mkfs.ext4 /dev/sda1 | |
mkfs.ext4 /dev/sda2 | |
mkswap /dev/sda3 | |
mkfs.ext4 /dev/sda4 | |
swapon /dev/sda3 | |
mount /dev/sda2 /mnt | |
mkdir -p /mnt/boot | |
mount /dec/sda /mnt/boot | |
mkdir -p /mnt/home | |
most /dev/sda4 /mnt/home | |
ip addr | |
ping google | |
pacstrap -i /mnt base base-devel | |
genfstab -U /mnt > /mnt/etc/fstab | |
arch-chroot /mnt /bin/bash | |
nano /etc/locale.gen # uncomment desired locale e.g. en_US ISO UTF | |
locale-gen | |
echo LANG=en_US.UTF-8 > /etc/locale.conf | |
ln -sf /usr/share/zoneinfo/EST5EDT /etc/localtime | |
hwclock --systohc --utc | |
mkinitcpio -p linux | |
pacman -S grub os-prober | |
grub-install --recheck /dev/sda | |
grub-mkconfig -o /boot/grub/grub.cfg | |
echo garbage > /ect/hostname | |
nano /etc/hosts # add host name | |
pacman -S iw wpa-supplicant | |
pacman -S dialog | |
passwd | |
exit | |
unmount -R /mnt | |
usseradd -m -G wheel -s /bin/bash rem | |
passed rem | |
pacman -S sudo | |
nano /etc/sudoers >> uncomment wheel | |
su - rem | |
sudo pacman -Syu | |
sudo pacman -S xors-server xorg-server-utils | |
sudo pacman -S yaourt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment