brenoafb

Arch Linux Setup

Arch Linux Logo

This guide will walk you through the steps needed to get a usable Arch Linux setup right from the point where you might have left off if you followed the install guide.

WiFi Network

The first thing you want to set up is wifi.

Run the following commands as root.

systemctl enable --now systemd-resolved
systemctl enable --now iwd.service

Next, create /etc/iwd/main.conf with the following contents.

[General]
EnableNetworkConfiguration=true

[Network]
NameResolvingService=systemd

Finally, connect to the desired network with iwctl

iwctl

station wlan0 scan
station wlan0 get-networks
station wlan0 connect [SSID]

Sudo

Run the following as root.

pacman -S sudo
visudo

Then uncomment the line that allows passwordless sudo for the wheel group.

zsh

I use the default slimzsh config.

git clone --recursive https://github.com/changs/slimzsh.git ~/.config/slimzsh

Then add the following to ~/.zshrc

source "$HOME/.config/slimzsh/slim.zsh"

neovim

We now setup neovim with my config.

First install neovim and vim plug.

sudo pacman -S neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Then do

git clone https://github.com/brenoafb/nvim.git ~/.config/nvim

Now, run nvim and run the command :PlugInstall. Wait until all plugins are installed.

Xorg, dwm, st, dmenu

We have to install xorg.

sudo pacman -S xorg

Install dwm

git clone https://git.suckless.org/dwm
cd dwm
make
sudo make install

Install st

git clone https://git.suckless.org/st
cd st
make
sudo make install

Install dmenu

git clone https://git.suckless.org/dmenu
cd dmenu
make
sudo make install

Finally, we need to install xinit.

sudo pacman -S xorg-xinit

Now we create ~/.xinitrc. Here I also setup my keyboard configs.

setxkbmap -variant colemak -option ctrl:nocaps &  # setup layout
xset r rate 200 50 &                              # setup key repeat
exec dwm

You should drop in a dwm session. Press alt+shift+enter (or super+shift+enter). To start a terminal. Press alt+p (or mod+p) to run dmenu.

Optional

I personally like the Terminus font, available in the Arch repos.

sudo pacman -S terminus-font

I then use setup st’s config.h to use it at size 16.