You are not logged in.

#1 2007-08-26 18:24:14

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Help setting up dwm with ABS

Hello,

I have been pointed out dwm as a cool window manager, and it indeed is very cool (I'm starting to prefer it over wmii), however I have no clue as to how to configure it.

I have read that I had to use ABS in order to recompile it every time (for my custom changes to dwm to be applied), so I was reading the howto in the wiki, but I can't locate the dwm package, so I have no clue about what to do.

Please consider this is my first experience with ABS, even though I have used some PKGBUILDs, so any help is greatly appreciated.

Thanks!


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#2 2007-08-26 18:30:19

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Help setting up dwm with ABS

I don't recommend using ABS / makepkg for dwm, since that stupid wm needs to be recompiled every time you need to change the config.
Just compile / install manually, it'll put it in /usr/local/ by default which is fine (separated from all arch packages).


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2007-08-26 18:49:41

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Help setting up dwm with ABS

Ok, thanks... I hate the thing I have to recompile every time, but the functionality is so awesome smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#4 2007-08-28 15:07:49

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: Help setting up dwm with ABS

If you install dwm by '# make && make install', it will be install into /usr/local/bin and it's Man-Page will be situated at /usr/local/share/man.

As /usr/local/bin and and /usr/local/share/man aren't activated by default at Archlinux, you have to add them to the PATH- and MANPATH-variable in /etc/profile.

If you don't do this, the system just wont be able find the dwm executable and and it's manual.


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#5 2007-08-28 17:59:14

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Help setting up dwm with ABS

I'd recomend you to use ABS to compile dwm - which I happen to do myself.
Get abs if you haven't yet:

pacman -Sy cvsup wget

Uncomment [community] in /etc/abs.conf
run

abs

, copy the dwm folder in /var/abs/../../.. into /var/abs/local, cd into /var/abs/local/dwm and change config.h as you desire. Run makepkg and install it with pacman -U dwm-4.4.1-...

Advantages: dwm is "handeled" by pacman which should be the case on a clean Arch system. A simple "abs" gets you the newest dwm PKGBUILD as soon a new version is out.


Haven't been here in a while. Still rocking Arch. smile

Offline

#6 2007-08-28 18:47:14

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Help setting up dwm with ABS

Sigi, thanks for your help! However the md5sum check failed, since I have changed the config.h file, shall I just delete the md5sum field?

Edit:
By the way, how do I get rid of the package I have installed manually (which is now in /usr/local)?

Last edited by finferflu (2007-08-28 18:53:24)


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#7 2007-08-28 19:07:58

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Help setting up dwm with ABS

finferflu wrote:

Sigi, thanks for your help! However the md5sum check failed, since I have changed the config.h file, shall I just delete the md5sum field?

Edit:
By the way, how do I get rid of the package I have installed manually (which is now in /usr/local)?

Go in dwm source dir, then make uninstall .
You can have a look at the Makefile to see the available make targets and what they do.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2007-08-28 20:08:04

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Help setting up dwm with ABS

Ok, thanks a lot, it worked. I asked because usually make uninstall does not work or doesn't work properly... I guess I have been quite unlucky...


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#9 2007-08-29 10:06:57

jofa
Member
Registered: 2006-10-27
Posts: 32

Re: Help setting up dwm with ABS

finferflu wrote:

Sigi, thanks for your help! However the md5sum check failed, since I have changed the config.h file, shall I just delete the md5sum field?

You can exec these three commands to generate new md5sums, overwrite previous files and update dwm:

makepkg -g >> PKGBUILD && makepkg -f && pacman -U dwm-4.4-1-i686.pkg.tar.gz

Offline

#10 2007-08-29 14:15:09

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Help setting up dwm with ABS

jofa wrote:
finferflu wrote:

Sigi, thanks for your help! However the md5sum check failed, since I have changed the config.h file, shall I just delete the md5sum field?

You can exec these three commands to generate new md5sums, overwrite previous files and update dwm:

makepkg -g >> PKGBUILD && makepkg -f && pacman -U dwm-4.4-1-i686.pkg.tar.gz

I get a

bash: PKGBUILD: Permission denied

And I'm running the command as root (with sudo).

Last edited by finferflu (2007-08-29 14:15:36)


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#11 2007-08-29 14:29:07

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Help setting up dwm with ABS

finferflu wrote:
jofa wrote:
finferflu wrote:

Sigi, thanks for your help! However the md5sum check failed, since I have changed the config.h file, shall I just delete the md5sum field?

You can exec these three commands to generate new md5sums, overwrite previous files and update dwm:

makepkg -g >> PKGBUILD && makepkg -f && pacman -U dwm-4.4-1-i686.pkg.tar.gz

I get a

bash: PKGBUILD: Permission denied

And I'm running the command as root (with sudo).

sudo only applies to makepkg -g , not the >> redirection which actually writes to the file.

Anyway, you only need to run pacman -U as root, the other steps shouldn't be run as root. Just use a directory where you have write permission.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#12 2007-08-29 16:19:01

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Help setting up dwm with ABS

Ok, thanks, I'll look into that. I have chowned /var/abs/local to my user, I hope it's fine, since I think it's the most practical thing to do, not sure about security...


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#13 2007-08-29 16:49:02

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Help setting up dwm with ABS

finferflu wrote:

Ok, thanks, I'll look into that. I have chowned /var/abs/local to my user, I hope it's fine, since I think it's the most practical thing to do, not sure about security...

That's what I do as well.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB