JustPaste.it

1) Check Internet Connection

ping -c 3 www.google.com (should see ping statistics)

ip link (should see “UP”, but if it says “DOWN” enter “ip link set up 'ethernet name'”)

 

2) Check That You Are Booted Into UEFI

efivar -l (should see list of variables)

 

3) Checking/Preparing The Drives

lsblk (take note of the drive you will be using)

gdisk /dev/“drive you are using” (x, z, y, y)

 

4) Create New Partitions

cgdisk

/dev/“drive you are using”

(for each, skip the first prompt, just hit enter)

-1024MiB (EF00) boot

-12GiB (8200) swap

-20GiB (enter) root

-Enter (enter) home

Select Write then Quit

 

5) Mount Partitions

mkfs.fat -F32 /dev/“boot”

mkswap /dev/“swap”

swapon /dev/“swap”

mkfs.ext4 /dev/“root”

mkfs.ext4 /dev/“home”

 

6) Create Directives For Drives

mkdir /mnt

mount /dev/“root” /mnt

mkdir /mnt/boot

mkdir /mnt/home

mount /dev/“boot” /mnt/boot

mount /dev/“home” /mnt/home

 

7) Set Up Mirrors

cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup

sed -i 's/^Server/Server/' /etc/pacman.d/mirrorlist.backup

rankmirrors -n 6 /etc/pacman.d/mirrolist.backup > /etc/pacman.d/mirrorlist

 

8) Install Base Arch Packages

pacstrap -i /mnt base base-devel

 

9) Generate Fstab

genfstab -U -p /mnt >> /mnt/etc/fstab

nano /mnt/etc/fstab (make sure all partitions are set up)

 

10) Chroot

arch-chroot /mnt

 

11) Generate Language

nano /etc/locale.gen

(CTRL-W “en_US.UTF-8” twice, delete #, write and exit)

locale-gen

echo LANG=en_US.UTF-8 > /etc/locale.conf

export LANG=en_US.UTF-8

 

12) Generate Time Zone

ls -l /usr/share/zoneinfo

ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

hwclock - -systohc - -utc

 

13) Set Up Hostname

echo “choose name” > /etc/hostname

nano /etc/hosts

(under <hostname>, in both lines, type “your hostname” in front of “localhost”, write and close)

 

14) Configure Network

ip link (take note of ethernet name)

sudo systemctl enable dhcpcd@”ethernet name”.service

 

15) Install Repositories

sudo nano /etc/pacman.conf

(CTRL-W “multilib” [NOT TESTING], delete both #'s)

(On bottom of page, add):

[archlinuxfr]

SigLevel = Never

Server = http://repo.archlinux.fr/$arch

(Write and Exit)

 

16) Install Repositories and Yaourt

pacman -Syu

pacman -S yaourt

 

17) Set Up Root Password And User

passwd (create password)

useradd -m -g users -G wheel.storage.power -s /bin/bash “choose name and enter here”

passwd “name” (create password)

 

18) Set Up Sudo

EDITOR=nano visudo

(CTRL-X “&wheel”, delete #)

(Under “wheel”, add):

“your username” ALL=(ALL) ALL

(Write and Exit)

(Type and enter “exit”, then login)

19) Install Bash Completion

pacman -S bash-completion

 

20) Check EFI Variables

mount -t efivars efivars /sys/firmware/efi/efivars

 

21) Install Gummiboot

pacman -S gummiboot

gummiboot install

 

22) Chech Boot Images

cd /boot

ls

 

23) Configure Config. File

nano /boot/loader/entries/arch.conf

(Enter these lines)

title Arch Linux

linux /vmlinuz-linux

initrd /initramfs-linux.img

options root=/dev/“root” rw

(Write and Exit)

 

24) Configure Intel Mircocode

pacman -S intel-ucode

nano /boot/loader/entries/arch.conf

(After 2nd line, add):

initrd /intel-ucode.img

(Write and Exit)

 

25) Set Up Graphics Drivers

sudo pacman -S nvidia-libgl lib32-nvidia-libgl lib32-nvidia-utils

 

26) Set Up 3D Support

sudo pacman -S mesa

 

27) Set Up Audio Drivers

sudo pacman -S pulseaudio

sudo pacman -S pulseaudio-alsa

 

28) Install Xorg

sudo pacman -S xorg-server xorg-server-utils xorg-xinit xorg-twn xorg-xclock xterm

startx

exit

 

29) Install GNOME And Enable GDM

sudo pacman -S gnome gnome-extra

sudo pacman -S gdm

sudo systemctl enable gdm.service

sudo pacman -S gnome-tweak-tool

yaourt -S gnome-software

sudo reboot

 

30) Boot

umount -R /mnt

startx

reboot