Skip to main content

Arch install notes

thumb_archlinux-category-logo.png (300×225)

 

Before starting the bootable media, if you are on a GTX 10XX, the interface will not load properly, to fix this in the arch iso boot menu, click on the "e" key and add "nouveau.modeset=0" at the end of grub

cfdisk /dev/sda

Create 3 partitions as listed below, and change the type for sda2 and sda3

cfdisk /dev/sda1 = FAT partition for EFI
/dev/sda2 = / (root)
/dev/sda4 = swap

mkfs.fat -F32 /dev/sda1
mkfs.ext4 /dev/sda1
sda2 mkswap /dev/sda2
sda3 swapon /dev/sda2sda3
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt
mnt/boot vi /etc/pacman.d/mirrorlist
pacstrap -i /mnt base base-devel
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt

check with "mount" if /sys/firmware/efi/efivars is mounted

vi /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
ls /usr/share/zoneinfo/
ln -s /usr/share/zoneinfo/your-time-zone > /etc/localtime
hwclock --systohc --utc
echo dave_linuxmy_linux > /etc/hostname
vi /etc/pacman.conf

[multilib]

Include = /etc/pacman.d/mirrorlist

[archlinuxfr]

SigLevel = Never

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

pacman -Sy
pacman -S grub bash-completion os-prober vim ntfs-3g
useradd -m -g users -G wheel,storage,power -s /bin/bash dave
passwd
passwd dave
visudo
%wheel ALL=(ALL) ALL
grub-bootctl install
vim /dev/sdaboot/loader/entries/arch.conf
title Arch Linux
grub-mkconfiglinux /vmlinuz-linux 
initrd /initramfs-linux.img
echo "options root=PARTUUID=$(blkid -s PARTUUID -o value /dev/sdb3) rw" >> /boot/grub/grub.cfgloader/entries/arch.conf 

If you own a Haswell processor or higher

pacman -S intel-ucode

title Arch Linux
initrd /intel-ucode.img
initrd /initramfs-linux.img

ip add
systemctl dhcpcd@eth0.service
exit
umount -R /mnt
reboot

Now Lets get the graphical stuff:

Brand

Type

Driver

Multilib

AMD/ATI

Open source

xf86-video-ati

lib32-mesa-libgl

Proprietary

catalyst

lib32-catalyst-utils

Intel

Open source

xf86-video-intel

lib32-mesa-libgl

Nvidia

Open source

xf86-video-nouveau

lib32-mesa-libgl

Proprietary

nvidia

lib32-nvidia-libgl

nvidia-340xx

lib32-nvidia-340xx-libgl

nvidia-304xx

lib32-nvidia-304xx-libgl

pacman -S xorgnvidia-dkms libglvnd nvidia-utils opencl-nvidia lib32-libglvnd lib32-nvidia-utils networkmanagerlib32-opencl-nvidia nvidia-settings gnome gdmlinux-headers
vim /etc/mkinitcpio.conf

MODULES="nvidia nvidia_modeset nvidia_uvm nvidia_drm"

vim /boot/loader/entries/arch.conf

options root=PARTUUID=bada2036-8785-4738-b7d4-2b03009d2fc1 rw nvidia-drm.modeset=1

/etc/pacman.d/hooks/nvidia.hook

[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia

[Action]
Depends=mkinitcpio
When=PostTransaction
Exec=/usr/bin/mkinitcpio -P

exit 
umount -R /mnt 
reboot

POST INSTALL

pacman -S xf86-input-synaptics mesa xorg-server xorg-apps xorg-xinit xorg-twm xorg-xclock xterm
systemctl enable gdm
systemctl enable NetworkManager
systemctl start NetworkManager

systemctl disable dhcpcd@.service
systemctl start gdm