Skip to content

Instantly share code, notes, and snippets.

@mbriggs
Last active March 30, 2020 03:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbriggs/a9428c022a701ea8919f94878b1918fe to your computer and use it in GitHub Desktop.
Save mbriggs/a9428c022a701ea8919f94878b1918fe to your computer and use it in GitHub Desktop.

Arch

Arch Install Script

partition drive

  • view drives: fdisk -l
  • gdisk <drive>
  • d (delete) all
  • efi: n, <default> - +512M, EFI
  • root: n, <default> - -0, Linux Filesystem
  • w (write and save)

format

  • efi: mkfs.fat -F32 <partition>
  • root: mkfs.ext4 <partition>

wifi

  • wifi-menu

mirror

  • edit /etc/pacman.d/mirrorlist
  • copy waterloo cs club to top of file

install

  • mount <partition> /mnt
  • pacstrap /mnt base linux linux-firmware vim
  • genfstab -U /mnt >> /mnt/etc/fstab
  • arch-chroot /mnt

configure

  • timedatectl set-timezone America/Toronto
  • vim /etc/locale.gen
  • locale-gen
  • echo LANG=en_US.UTF-8 > /etc/locale.conf
  • export LANG=en_US.UTF-8
  • echo ragnaros >> /etc/hostname
  • vim /etc/hosts 127.0.0.1 localhost ::1 localhost 127.0.1.1 ragnaros
  • passwd
  • pacman -S grub efibootmgr
  • mkdir /boot/efi
  • mount <efi partition> /boot/efi
  • grub-install –target=x86_64-efi –bootloader-id=GRUB –efi-directory=/boot/efi
  • grub-mkconfig -o /boot/grub/grub.cfg

packages

  • pacman -S xorg xorg-server gnome gnome-tweak-tool pulseaudio pulseaudio-alsa neovim ripgrep fd firefox vulkan-intel htop sudo systemd-swap bluez bluez-utils base-devel i8z emacs clang tar wget curl go ruby nodejs libvterm cmake npm editorconfig-core-c rustup cups system-config-print gnome-software-packagekit-plugin docker docker-compose
  • systemctl: systemctl enable gdm.service systemctl enable NetworkManager.service systemctl enable systemd-swap.service systemctl enable bluetooth.service systemctl enable org.cups.cupsd.service systemctl enable docker.service systemctl –user enable pulseaudio
  • useradd -G audio,video,wheel,docker -m mbriggs
  • passwd mbriggs
  • npm i -g stylelint js-beautify marked @angular/language-service@next typescript @angular/language-server bash-language-server vscode-css-languageserver-bin dockerfile-language-server-nodejs vscode-html-languageserver-bin typescript-language-server javascript-typescript-langserver vscode-json-languageserver yaml-language-server
  • gem install solargraph bundler

post-install

rustup toolchain add nightly cargo +nightly install racer rustup component add rust-src

go get -u golang.org/x/tools/…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment