Skip to content

Latest commit

 

History

History
131 lines (112 loc) · 3.36 KB

configure-arch.md

File metadata and controls

131 lines (112 loc) · 3.36 KB

Note: This guide only includes configuration details that are either:

  1. required to be performed manually, or
  2. not covered by my dotfiles repo.

Add a user.

useradd -m <USER>
passwd <USER>
echo '<USER> ALL=(ALL) ALL' >> /etc/sudoers

Install other utilities/drivers. Edit: Including xf86-video-intel due to an elusive X error, AddScreen/ScreenInit failed for driver 0 and drmSetMaster failed: Permission denied. Edit: Removing xf86-video-intel supposing that it might've been causing lag while typing in URxvt.

sudo pacman -S \
i3 xorg-xinit xorg-server xf86-video-intel rxvt-unicode dmenu feh \
git \
qutebrowser \
lastpass-cli \
acpi acpilight \
alsa-utils \
ttf-roboto gnu-free-fonts ttf-font-awesome \
jq

Install AUR search agent.

git clone https://aur.archlinux.org/auracle-git.git && cd auracle-git
makepkg -si

Install AUR utilities.

# Add a key to keyring, if necessary.
gpg --recv-key --keyserver hkp://pgp.mit.edu <KEY>

dropbox
dropbox-cli
ttf-symbola
libfprint-vfs0090-git

Verify fonts.

for TYPEFACE in Sans Serif Monospace; do
    echo "$TYPEFACE: $(fc-match $TYPEFACE)"
done | column -t -s :

Sans        Roboto-Regular.ttf          "Roboto" "Regular"
Serif       FreeSerif.otf               "FreeSerif" "Regular"
Monospace   SourceCodePro-Regular.otf   "Source Code Pro" "Regular"

Disable pinentry UI.

for TYPE in gtk-2 curses; do
    sudo mv "/usr/bin/pinentry-$TYPE" "/usr/bin/pinentry-${TYPE}.bu"
    sudo ln -s /usr/bin/pinentry-tty "/usr/bin/pinentry-$TYPE"
done

Install dotfiles.

git clone https://github.com/noperator/dotfiles.git && cd dotfiles
./link.sh

Enable natural scrolling.

sudo tee /etc/X11/xorg.conf.d/30-touchpad.conf > /dev/null << EOF
Section "InputClass"
    Identifier "devname"
    Driver "libinput"
    MatchIsTouchpad "on"
    Option "NaturalScrolling" "true"
EndSection
EOF

Fix video tearing.

sudo tee /etc/X11/xorg.conf.d/20-intel.conf > /dev/null << EOF
Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "TearFree" "true"
EndSection
EOF

Allow user to set display brightness (following this post).

# Create udev rule to allow users in the video group to set the display brightness.
sudo tee /etc/udev/rules.d/90-backlight.rules > /dev/null << EOF
SUBSYSTEM=="backlight", ACTION=="add",
RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness",
RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
EOF

# Add <USER> to video group.
sudo usermod -a -G video <USER>

Disable irritating beep.

sudo modprobe -r pcspkr
echo 'blacklist pcspkr' | sudo tee /etc/modprobe.d/nobeep.conf

Add Ethernet netctl profile.

sudo tee /etc/netctl/<IFACE> /dev/null << EOF
Interface=<IFACE>
Connection=ethernet
IP=dhcp
EOF

Enable fingerprint reader for ThinkPad X1 Carbon (Gen 4) (requires aur/libfprint-vfs0090-git).

for FILE in /etc/pam.d/system-local-login /etc/pam.d/sudo; do
    TEMP=$(mktemp)
    sed -E 's/^(#%PAM-1.0)$/\1\nauth sufficient pam_fprintd.so/' "$FILE" | column -t | uniq > "$TEMP"
    sudo mv "$TEMP" "$FILE"
done
fprintd-enroll  # Record fingerprint.