You are not logged in.

#1 2009-03-22 18:35:41

yvonney
Member
Registered: 2008-06-11
Posts: 671

DWM - I wish to COPY my existing DWM to USB system - copying work?

Hi....

[OBJECTIVE: Is it possible:  to simple copy of dwm's actual files/folders to new machine and not need to do abs?]


Many times I've enjoyed doing the ABS process described perfectly for me at the dwm wiki area.
I find the DWM process very very easy. .. yet, in this instance AS:

I'm building a live CD. So after some though I considered whether it would be sensible/possible to COPY the relevant files of dwm 5.4.1 itself  then not need to do the full abs thing.  This would work on the live CD, though only if DWM can be copied and still run obviously.


DWM / DMENU I love you!!!!

Last edited by yvonney (2009-03-22 18:50:44)

Offline

#2 2009-03-22 19:08:06

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

$ ldd /usr/bin/dwm
    linux-gate.so.1 =>  (0xb8090000)
    libc.so.6 => /lib/libc.so.6 (0xb7f2b000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e0e000)
    /lib/ld-linux.so.2 (0xb8091000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7df5000)
    libdl.so.2 => /lib/libdl.so.2 (0xb7df1000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb7dee000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7de9000)

English is not my native language .

Offline

#3 2009-03-22 20:29:46

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

VERY helpful!
So just copy those to the new system, at those destination?

great to learn that!

Offline

#4 2009-03-22 20:57:29

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

You might also try a static build - one big executable, no external dependencies.


1000

Offline

#5 2009-03-22 22:31:24

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

yvonney wrote:

VERY helpful!
So just copy those to the new system, at those destination?

great to learn that!

If X is installed . they should be there already (I think) . Not sure about the library versions in other distributions though .

Copying libraries without telling the package manager is bad practice .

Bottom line : Try it and report back .

Last edited by Nezmer (2009-03-22 22:33:40)


English is not my native language .

Offline

#6 2009-03-22 22:43:26

oew
Member
From: Norway
Registered: 2006-11-08
Posts: 105

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

Why not just use the files from your ABS build and rebuild on the USB system?
Just copy config.h, PKGBUILD and dwm.install from /var/abs/community/x11 to ~/dwm on the USB system and run 'makepkg -i' in ~/dwm.
IF X is installed DWM doesn't have any dependencies.

Last edited by oew (2009-03-22 22:44:17)


there's no place like ~/

Offline

#7 2009-03-22 23:26:39

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

UPDATE: is there ONE file that holds my setting in the above list of DWM files? or, actually they're not the dwm files? hmmm..... have to think. If I could get pacman to stay happy and just overwrite one file or two and have setting work?

--------------- this below, a bit redundant perhaps --- except last paragraph maybe ------

So, I already installed dwm, and now want to have the setting from my rebuild apply.  ie. instead of doing what the wiki says I though I could get dwm to use my setting from my day to day system ON the usb boot external system I'm using larch to build.

Lots of finer points and the ones listed here are MUCH appreciated, if not entire absorbed yet...
So, I suppose with time in mind I'd wish to know if I can keep pacman's current awareness happy (I used pacman to install default sytem) and yet somehow get my config.h changes to apply by overwriting something???

So.... Getting myself really really able to use abs as a second nature will certainly occur... right now I've got so many things to think about with larch I thought....  geez, good If I could just get my setting to work on default DWM without a rebuild....


??


nice! thank you..... cool thoughts.


ACTUALLY YES, I should do the build properly .... easy and fun too.... DLing all the ABS packages.... maybe I can read the above better and not have to do that..
Just the one ABS package I already have used to install.. ?  I guess.
I haven't got ABS installed on the larch stick boot though.... it's a bit convoluted as I'm tweaking a larch stick as I go and ABS is not on there.

Last edited by yvonney (2009-03-22 23:33:18)

Offline

#8 2009-03-22 23:42:01

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

Being long-winded has it's downsides. Sorry about that.

Based on the info kindly provided here I've realized that dependencies not a problem, etc. etc.

So, looks like overwriting the /usr/bin/dwm  just....works!



thank you!!!!

Offline

#9 2009-03-22 23:43:57

oew
Member
From: Norway
Registered: 2006-11-08
Posts: 105

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

Your settings are kept in config.h, but you need to rebuild DWM for those settings to apply.
PKGBUILD and dwm.install are used to build the package that you install with pacman.
So if you do it the way i described in my last post, pacman will stay happy smile
You don't need to install ABS on the USB system. makepkg is a part of the pacman package.


there's no place like ~/

Offline

#10 2009-03-22 23:52:51

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

yvonney wrote:

Being long-winded has it's downsides. Sorry about that.

Based on the info kindly provided here I've realized that dependencies not a problem, etc. etc.

So, looks like overwriting the /usr/bin/dwm  just....works!



thank you!!!!

Your settings are included in the binary (maybe you already know that ) .
Just wanted to add that you don't have to override /usr/bin/dwm (If exists) . You can run the binary from anywhere . Actually a lot of users keep the binary in their /home .


English is not my native language .

Offline

#11 2009-03-23 03:33:34

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: DWM - I wish to COPY my existing DWM to USB system - copying work?

there's no place like ~/

Love that!

great to know about running dwm from anywhere, and also, obviously the pacman tip etc. etc. ... thanks EVERYONE!!!
oh, yep, i've rebuilt dwm many many times.. for me, DWM is SO um, me.

Last edited by yvonney (2009-03-23 03:35:39)

Offline

Board footer

Powered by FluxBB