Mon 17th August 2020 By David T. Sadler.
Continuing my Arch Linux installation I now have a user account for daily use. However this only provides me with a terminal. What I would like is a traditional multi-window desktop environment which will require me to install two things. A window system of some sort and a layout manager. For this installation I'm going with Xorg and dwm. For those that are not aware dwm is dynamic window manager for Xorg that has been developed by Suckless. Since by default dwm expects st to be installed as the system's terminal and also makes use dmenu to allow you to launch applications I will installed both of them in addition to dwm.
Firt off I need to install the dependencies required by st, dmenu and dwm. Since this is Arch Linux I use pacman to do this.
$ sudo pacman -S base-devel git libx11 libxft xorg-server xorg-xinit terminus-fontThe source code for the software is avialable from the Suckless git repositories so I simply clone them.
$ mkdir -p ~/.local/src
$ git clone git://git.suckless.org/st ~/.local/src/st
$ git clone git://git.suckless.org/dmenu ~/.local/src/dmenu
$ git clone git://git.suckless.org/dwm ~/.local/src/dwmI install st by first moving to the directory created when cloning the repository.
$ cd ~/.local/src/stThen its as simple as compiling and instaling the software with the below commands.
$ make clean
$ sudo make installAgain move to the directory created earlier.
$ cd ~/.local/src/dmenuBefore compiling a small edit needs to be made to the file config.mk.
$ nvim config.mkSince I have not installed Xinerama on this system I need to comment out any flags that reference this otherwise dmenu will fail during the compiling.
# XINERAMALIBS = -lXinerama
# XINERAMAFLAGS = -DXINERAMAAgain compiling and installing is done with the below commands.
$ make clean
$ sudo make installFor the final time move to the directory created earlier.
$ cd ~/.local/src/dwmAs with dmenu the same edit needs to be made to the file config.mk.
$ nvim config.mk# XINERAMALIBS = -lXinerama
# XINERAMAFLAGS = -DXINERAMACompile and install as usual.
$ make clean
$ sudo make installSince I have installed xorg-xinit I need to create a .xinitrc in my home folder.
$ nvim ~/.xinitrcThe contents of this file is just.
exec dwmI can now start xorg and dwm with the below command.
$ startxI don't have comments as I don't want to manage them. You can however contact me at the below address if you want to.
Email david@davidtsadler.comCopyright © 2021 David T. Sadler.
Return to Homepage.