Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Confirm efivars
- ls /sys/firmware/efi/efivars
- #Confirm internet connection
- ping -c 3 archlinux.org
- timedatectl set-ntp true
- fdisk -l /dev/sda
- cfdisk /dev/sdax/
- #Create 10 GB root partition / Set as bootable
- / _____
- #Create a 6GB [SWAP] partition
- [SWAP] _____
- #Create a home partition with remaining space
- /home _____
- #Identify existing EFI partition
- /dev/_____(EFI System Partition)
- #Format
- mkfs.ext4 /dev/sdax_____(root)
- mkswap /dev/sdax_____(swap)
- swapon /dev/sdax_____(swap)
- mkfs.ext4 /dev/sdax_____(home)
- #Mount root partition
- mount dev/sdax /mnt
- #Mount home partition
- mkdir /mnt/home
- mount /dev/sdax /mnt/home
- #Mount EFI partition
- mkdir /mnt/boot
- mount /dev/sdax/ /mnt/boot
- #define mirrors
- /etc/pacman.d/mirrorlist
- #In nano use Ctrl+W and type the location you are looking for.
- #Once found go to the url of the mirror and hit Alt+6 to copy the line.
- #Now use <Page Up> key to go on top and then hit Ctrl+U to paste that line on top.
- #Hit Ctrl+x to exit and then type Y to save the changes you made.
- #Install Arch
- pacstrap /mnt base base-devel
- #Generate fstab
- genfstab -U /mnt >> /mnt/etc/fstab
- #Move into system
- arch-chroot /mnt
- #Set clock and timezone
- ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
- hwclock --systohc --localtime
- #Generate localization
- nano /etc/locale.gen
- uncomment en_US.UTF-8 UTF-8
- locale-gen
- echo LANG=en_US.UTF-8 > /etc/locale.conf
- export LANG=en_US.UTF-8
- #Hostname
- echo myhostname > /etc/hostname
- #Add user account and set password
- useradd -m -G audio,video,optical,lp,wheel.storage,power -s /bin/bash (Name)
- passwd (Name)
- #Set root password
- passwd
- #Define a boot entry for Arch Linux
- nano /boot/loader/entries/arch.conf
- title Arch Linux
- linux /vmlinuz-linux
- initrd /initramfs-linux.img
- options root=PARTUUID=14420948-2cea-4de7-b042-40f67c618660 rw
- #You can find the PARTUUID for your root partition with the command blkid -s PARTUUID -o value /dev/sdxY
- #where x is the device letter and Y is the partition number.
- #This is required only for your root partition, not esp.
- #Finish up
- umount -R /mnt
- exit
Add Comment
Please, Sign In to add comment