Created
October 26, 2018 05:04
-
-
Save lowk3v/0b7c39ed3fb2a0d019578ac5335576ee to your computer and use it in GitHub Desktop.
Install Arch Linux
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
# Testing for a UEFI Boot | |
ls /sys/firmware/efi/efivars | |
# Connecting to the Internet | |
ping -c 3 www.google.co.uk | |
systemctl start dhcpcd.service | |
# identify the drive | |
lsblk | |
cfdisk /dev/sda | |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |
sda 8:0 0 20G 0 disk | |
└─sda1 8:1 0 500M 0 part | |
└─sda2 8:1 0 17.5G 0 part | |
└─sda3 8:1 0 2G 0 part | |
mkfs.fat -F32 /dev/sda1 | |
mkfs.ext4 /dev/sda2 | |
mkswap /dev/sda3 | |
swapon /dev/sda3 | |
mount /dev/sda2 /mnt | |
mkdir -p /mnt/boot | |
mount /dev/sda1 /mnt/boot | |
pacstrap -i /mnt base base-devel | |
genfstab -U /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt /bin/bash | |
# uncomment en_US.UTF-8 | |
nano /etc/locale.gen | |
locale-gen | |
echo LANG=en_US.UTF-8 >> /etc/locale.conf | |
echo KEYMAP=us >> /etc/vconsole.conf | |
tzselect | |
ln -s /usr/share/zoneinfo/Asisa/Ho_Chi_Minh /etc/localtime | |
hwclock --systohc --utc | |
pacman -S intel-ucode | |
echo SomeHostname > /etc/hostname | |
echo SomeHostname > /etc/hosts | |
systemctl enable dhcpcd | |
passwd | |
pacman -S grub os-prober efibootmgr | |
mkdir -p /boot/efi | |
mount -t vfat /dev/sda1 /boot/efi | |
modprobe dm-mod | |
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader- id=arch_grub --recheck --debug | |
mkdir -p /boot/grub/locale | |
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo | |
grub-mkconfig -o /boot/grub/grub.cfg | |
exit | |
umount -R /mnt | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment