Skip to content

Instantly share code, notes, and snippets.

@kiasaki
Created February 20, 2015 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiasaki/08e9c7eb10fdc45d691f to your computer and use it in GitHub Desktop.
Save kiasaki/08e9c7eb10fdc45d691f to your computer and use it in GitHub Desktop.
Arch linux install

Installing - Partitionning, mounting, bootstrapping

  • efibvars -l
    • Make sure you see some
  • lsblk
  • lsblk -f
  • cgdisk /dev/sda
    • ddd
    • n -> enter -> 24500000 -> enter -> root
    • n -> enter -> enter -> enter -> boot (min 500mb)
    • w
    • q
  • mkfs.ext4 /dev/sda1
  • mkfs.fat -F32 /dev/sda2
  • mount /dev/sda1 /mnt
  • mkdir /mnt/boot
  • mount /dev/sda2 /mnt/boot
  • vi /etc/pacman.d/mirrorlist
    • /Cannada -> Enter -> 2dd -> Ctrl-UUU -> p -> :wq
  • pacstrap -i /mnt base base-devel
  • genfstab -U -p /mnt >> /mnt/etc/fstab
  • vi /mnt/etc/fstab
    • Verify

Installing - Setting up

  • arch-chroot /mnt /bin/bash
  • vi /etc/locale.gen
    • Find en_US.UTF-8 and uncomment _
  • locale-gen
  • echo LANG=en_US.UTF-8 > /etc/locale.conf _
  • ln -s /usr/share/zoneinfo/Canada/Eastern /etc/localtime
  • hwclock --systohc --utc
  • echo kiasaki-workstation > /etc/hostname
  • vi /etc/pacman.conf
  • pacman -Sy
  • passwd
  • useradd -m -g users -G wheel,storage,power -s /bin/bash kiasaki
  • passwd kiasaki
  • pacman -S sudo git openssl curl vim openssh yaourt bash-completion grub os-prober
  • visudo
    • decomment line like %wheel ALL=(ALL) ALL
  • grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck
  • grub-mkconfig -o /boot/grub/grub.cfg
  • ip link
    • note currently used interface
  • systemctl enable dhcpcd@[interface].service
  • systemctl start dhcpcd@[interface].service
  • exit
  • umount -R /mnt
  • reboot

Installing - Getting comfortable, Xorg, i3-wm

  • login using user account
  • sudo pacman -S xorg-server xorg-server-utils xorg-xinit mesa xf86-video-ati
  • sudo pacman -Sg i3
  • sudo pacman -S i3-wm
  • yaourt -S i3status i3bar
  • sudo pacman -S alsa-utils xclip ttf-droid
  • sudo vim /etc/X11/xinit/xinitrc
    • add "exec i3" at the bottom
  • sudo cp /etc/fonts/conf.avail/65-ttf-droid-sans-fontconfig.conf /etc/fonts/conf.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment