You are not logged in.

#26 2020-01-16 20:05:39

Colonel Panic
Member
Registered: 2018-11-13
Posts: 314

Re: [Solved] Trying to compile dwm from source in Debian

Sure, this is what I did. I'm not sure all these steps are necessary but they worked.

First off, I got into the root account;

sudo su root [password]

Then, I installed all these libraries in turn;

apt-get install libx11-dev libxft-dev libxinerama-dev build-essential

Then the source file for dwm itself;

apt-get source dwm

and finally the freetype 6 library, and the build dependencies for dwm;

apt-get install libfreetype6-dev

apt-get build-dep dwm 

Then I switched to the dwm build directory and changed the auxiliary key in the config.h file from Alt;

#define MODKEY Mod1Mask

to Win;

#define MODKEY Mod4Mask

and then finally, I compiled the window manager;

cd / home/user/dwm-6.1
make install

Job done.

Last edited by Colonel Panic (2020-01-16 20:12:25)

Offline

#27 2020-01-16 20:11:50

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: [Solved] Trying to compile dwm from source in Debian

^Excellent, thanks. This basically what is written on DebianDwm. It is good to know those instructions (still) works as expected.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#28 2021-05-25 11:15:25

Colonel Panic
Member
Registered: 2018-11-13
Posts: 314

Re: [Solved] Trying to compile dwm from source in Debian

A quick update; this also works in MX (based on Debian, of course) and if instead of getting the Debian source file, you download the dwm source file from the suckless website. One problem I've found is that the key command sequence for launching a terminal in dwm (Mod-Shift-Return) doesn't seem to work in MX so you have to use dmenu instead.

Last edited by Colonel Panic (2021-05-25 20:46:56)

Offline

#29 2021-06-06 15:29:15

Colonel Panic
Member
Registered: 2018-11-13
Posts: 314

Re: [Solved] Trying to compile dwm from source in Debian

Another update; this also works in Ubuntu 18, although I had to add some 'source' URIs to my sources.list before build-dep would compile.

I solved this by installing software-properties-gtk and then checking the "Source code" box.

https://askubuntu.com/questions/496549/ … urces-list

Last edited by Colonel Panic (2021-06-06 22:10:15)

Offline

Board footer

Powered by FluxBB