- We update the system with
xbps-install -Syu - -S to sync the repository index
- -y to answer yes to all the confirmation requests
- -u to update all packages
Install base-devel git curl wget unzip tar
X is a Display server.
Run sudo xbps-install -y xorg-minimal xinit xf86-video-intel xf86-input-libinput
- xorg-minimal is a meta package that includes the X server and core utilities. There is also xorg meta package but it installs a lot of extras.
- xinit contains
startxthe classic command to start X from the tty. Useful if you are not using a display manager. - xf86-video-intel is video driver for intel graphic cards. Just in case we can install xf86-video-vesa as a fallback driver
- xf86-input-libinput is a unified input driver for keyboards, mice, touchpads, etc., built on libinput.
We install vim with sudo xbps-install vim
This is a special file recognized by X server. In this file we can add commands that we want to run when X is starting.
We will add exec i3 which tells X to start i3 as it's main client. If i3 exits then X server also shuts down.
Now we install i3 and a terminal. We start with xterm which is a minimal terminal emulator. The resulting command is
sudo xbps-install i3 i3status i3gaps xterm. Later we will replace xterm with Alacritty.
From the TTY we run startx to launch our first X session. The first time it runs we should see a dialog from i3, asking us
whether we want to use the default i3 configurations, we willl chose yes but later pull in our own i3 configurations.
i3 could be unreadable because we haven't installed any fonts yet. We install dejavu fonts with sudo xbps-install dejavu-fonts-ttf
We install Alacritty with sudo xbps-install alacritty.
We can install xclip with sudo xbps-install xclip
We can install all the audio essentials with sudo xbps-install alsa-utils pulseaudio
Void Linux uses Runit. But Pulseaudio does not come with a Runit service directory. It usually start
with user session, not as a service. We can start it with pulseaudio --start and we can check if it's running with pulseaudio --check and
runnin echo $? 0 means it's running and 1 means no.
Optionally we can add it to our .xinitrc.
From here on we can now install browsers and apps to our liking.