You are not logged in.

#1 2014-06-13 17:18:26

melrosearch
Member
Registered: 2014-06-13
Posts: 9

DWM is not installing properly

I have followed and read the arch wiki top to bottom, but am still unable to boot into dwm from LXDM. Here is what I did:
First I downloaded the base-devel packages (using pacman)
Then I downloaded all the abs packages (also using pacman)
Then I ran:

 pacman -S base-devel abs dmenu

Then abs:

abs community/dwm
cp -r /var/abs/community/dwm ~/dwm

Then I made the package:

makepkg -i

Then I made the custom start script and an alternative .desktop file, as said in the wiki

Here are my current files:
/usr/share/xsessions/dwm-personalized.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Dwm-personalized
Comment=Dynamic window manager
Exec=dwm-personalized
Icon=dwm
Type=XSession

/usr/bin/dwm-personalized

#!/bin/sh
exec dwm

(I changed #!/bin/zsh to /sh because I'm using bash)
Then I made /usr/bin/dwm-personalized executable:

chmod +x /usr/bin/dwm-personalized

I did these steps literally 3 days ago and it installed dwm without error, but yesterday I decided I would change up the config a bit, but broke everything. So I decided to start fresh and delete everything, so I ran:

sudo pacman -Rs dwm

and then manually removed the two custom files as said in the wiki.

However, for the past day, I have been trying to literally do the same thing, but now I cannot get into dwm. I turn on my computer, get into LXDM, choose "dwm" or "dwm-personalized" on the drop down menu, then I type in my username and password, then it looks like it's booting into dwm for 1 second, but it doesn't and just boots me out. Would anyone know a fix for this? I am literally doing the same steps that I preformed 3 days ago, but they do not work anymore.

Offline

#2 2014-06-13 17:42:39

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: DWM is not installing properly

Can you tell me what happens if you start dwm via .xinitrc?

Offline

#3 2014-06-13 18:18:11

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

I am unsure what you mean by starting via .xinitrc. I am assuming you mean to add "exec dwm" to ~/.xinitrc and then do startx? Well I did that and it leads me to systemd boot messages and that's it.

Offline

#4 2014-06-13 18:23:25

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: DWM is not installing properly

Oh sorry. I should have made that clear. That was indeed what I meant.

So dwm does not start when using startx? Looks to me that the problem is not in your setup to start dwm, but in something else.
Can you start other window managers using either startx or LXDM? If not, you might want to look into your X configuration. If the other WM starts, maybe you can recompile dwm or install the stock package to see if the problem is dwm itself or not.

Last edited by runical (2014-06-13 18:24:00)

Offline

#5 2014-06-13 18:31:43

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

Yes, dwm does not start using the "startx" method. Yes I can start other window managers in LXDM, like openbox. I have already tried to recompile dwm, but what confuses me, is that I am literally repeating what I just did 3 days ago, it worked last time, but for some reason not this time. I checked xorg error logs and lxdm logs, but nothing unusual comes up.

Offline

#6 2014-06-13 18:39:36

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: DWM is not installing properly

runical is probably right; were the problem in dwm itself, dwm almost certainly wouldn't have compiled and installed in the first place. With regard to the "dwm-personalized" script: All your copy the script does is launch the one and only dwm binary you have installed. It's no different from a symlink. The "personalized" aspect of the script on the wiki page is to set a couple environment variables that could just as easily be set in your Bash configuration, so in your case (and most cases, IMHO) that script is probably unnecessary.

I'm really not familiar with lxdm, but I would guess the problem lies there. If you want to start dwm from lxdm, just use the desktop file that comes with the dwm package from ABS and see if that works; otherwise, try just adding it to ~/.xinitrc again, this time making sure that every command in ~/.xinitrc is appended with '&'. Without the '&' aftear each command the X start-up process will hang, waiting for a command to finish before continuing.

Offline

#7 2014-06-13 18:42:56

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: DWM is not installing properly

I'm sorry, I don't know either. It is indeed really confusing that the same steps produce this result.

As far as I know there are no configuration files for dwm either. The only thing I can think of now is that there might be an error in your dwm configuration. Did you try the stock package (the one in the repos)?

EDIT: @ANOKNUSA: I thought that the 'exec' command, being the last one, didn't need the &.

Last edited by runical (2014-06-13 18:51:58)

Offline

#8 2014-06-13 18:52:16

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

ANOKNUSA, I'm sorry but could you further elaborate so that I don't mess up. My ~/.xinitrc file is just:

#!/bin/bash

exec dwm

runical, I will try the stock repo, but could you tell me how? First I do:

pacman -S dwm dmenu

Correct? Then how will I get into dwm from there?

Offline

#9 2014-06-13 18:54:32

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: DWM is not installing properly

Yup, that should do it. It should replace the dwm you compiled yourself, so you can just get into it using either startx or LXDM. Whatever you have set up at the moment.

Offline

#10 2014-06-13 19:03:12

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

Unfortunately,  it did not work, same as last time, I go into lxdm then choose dwm it boots me right back out. Doing startz does the same thing, I see the systemd start up messages. It looks kind of like this:

[  ok  ] Started network manager.
                                                          [  ok  ] Reached target netowrk

etc

Offline

#11 2014-06-13 19:29:21

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: DWM is not installing properly

So, this means that the problem is not in dwm. I just tested it on my own setup and I can get into dwm without problems. (Getting out was more of a problem tongue)

To be honest, I have no idea how to proceed now. It seems way too specific. Why only dwm, and not openbox or anything else?

Offline

#12 2014-06-13 19:42:16

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

How did you run it exactly on your setup?

Offline

#13 2014-06-13 19:58:46

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: DWM is not installing properly

I installed the package and launched it using lightDM with the provided desktop file. But, as you can't launch dwm using startx, the problem can't really be in the display manager. You can try, but I don't think it will make a difference.

Offline

#14 2014-06-13 20:40:05

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: DWM is not installing properly

I'm confused too. If that's all you have in your ~/.xinitrc, melrosearch, things should just work. You wouldn't happen to have an ~/.xsession file, would you?

runical wrote:

@ANOKNUSA: I thought that the 'exec' command, being the last one, didn't need the &.

You're right. I've got a half-dozen things in mine, though, and back when I first started using stand-alone window managers I had more and got myself stuck by missing that one character. wink

Offline

#15 2014-06-13 20:42:39

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

ANOKNUSA, I do have a xsession file, is that the problem?

Offline

#16 2014-06-13 20:46:45

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: DWM is not installing properly

I don't think it should be, but would you mind posting it anyway?

Offline

#17 2014-06-13 21:01:24

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

Yeah of course, here is my ~/.xsession:

#!/bin/sh

#
# ~/.xsession
#
# Executed by xdm/gdm/kdm at login
#

/bin/bash --login -i ~/.xinitrc

Offline

#18 2014-06-13 22:53:38

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: DWM is not installing properly

Yeah, there's nothing wrong there---it just executes the commands in ~/.xinitrc. I'm stumped.

Offline

#19 2014-06-13 23:10:58

melrosearch
Member
Registered: 2014-06-13
Posts: 9

Re: DWM is not installing properly

You're telling me! Haha

Offline

#20 2014-06-14 05:43:32

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,219

Re: DWM is not installing properly

This thread has too much confusion.  First of all, why are you seeing systemd boot messages when you Start X?  Or am I just reading your posts wrong?  Let's take away all the unnecessary factors.  Boot into TTY1, not into your login manager.  Re-install dwm by following the four steps you wrote in your OP and have "exec dwm" in your ~/.xinitrc and try running "startx".  What happens?  What errors? 

PS.  Do not install dwm via pacman -S dwm unless you don't want to modify your dwm setup (patching and config.h header)

Offline

#21 2014-06-14 13:57:03

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: DWM is not installing properly

frank604 wrote:

PS.  Do not install dwm via pacman -S dwm unless you don't want to modify your dwm setup (patching and config.h header)

I asked him to do that to make sure that there were no errors in his config which were not seen during compile time. But indeed, dwm + package manager is not a good idea in general.

Offline

Board footer

Powered by FluxBB