LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2017, 12:25 AM   #1
navigium
Member
 
Registered: Aug 2014
Location: Switzerland
Distribution: Slackware, FreeBSD
Posts: 119

Rep: Reputation: 58
xdm fails to start awesomewm


Hey all,

I installed awesome from slackbuilds.org and it works flawlessly in runlevel 3. When I boot my machine into my default runlevel 4, where I use xdm as desktop manager, awesome won't start. I'm using the default .xinitrc file which comes with the slackbuild.

In .xsession-errors I see the following error:

Code:
XDM authorization key matches an existing client!2017-10-04 07:13:16 E: awesome: main:656: cannot open display (error 1)
Any ideas what could cause this?
 
Old 10-04-2017, 04:31 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Yes, it seems to happen when the xinitrc uses the following command format to start a window manager:
ck-launch-session dbus-launch --exit-with-session <window-manager>

You could try changing /etc/X11/xdm/xdm-config to use
DisplayManager.*.authName: MIT-MAGIC-COOKIE-1 if it's still using XDM-AUTHORISATION (already changed in slackware-current I believe) and see if that helps.


Alternatively, you'll need to use an xinitrc that uses the eval `dbus-launch --sh-syntax --exit-with-session` approach to launching dbus. The only problem here is that dbus-launch needs to be run within the console-kit session itself so you'll probably need a startwm script to run it and then invoke the window manager.

As an example, I'll attach my generic window-manager startup script and an xinitrc that calls it so you can see what I'm talking about. Feel free to do what you want with them.

Last edited by GazL; 05-20-2018 at 08:11 AM.
 
2 members found this post helpful.
Old 10-04-2017, 05:14 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
@Gazl: very interesting approach. Thanks for sharing.
 
1 members found this post helpful.
Old 10-04-2017, 06:14 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
You're welcome. I've used xdm for many years here as I don't install KDE.


BTW, I've also modified my /etc/X11/xdm/Xsession script and introduced a /etc/xprofile and /etc/xprofile.d/ which get called instead of /etc/profile (never really liked how that gets called by the stock Xsession shipped with xdm).
 
Old 10-04-2017, 06:17 AM   #5
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
If you're having trouble with XDM, you might also like to try LXDM. It's on SBo, and Arch have some good docs here. In my case, getting awesomewm to start (for a specific user) was as simple as putting:
Code:
[Desktop]
Session=/usr/bin/awesome
in ~/.dmrc

Defaults can be set in /etc/lxdm/lxdm.conf
 
Old 10-05-2017, 01:23 PM   #6
navigium
Member
 
Registered: Aug 2014
Location: Switzerland
Distribution: Slackware, FreeBSD
Posts: 119

Original Poster
Rep: Reputation: 58
Thank you @GazL, I'll try your solution next week. I'm not at work and therefore not at the affected machine right now.

@drgibbon I know LXDM and I don't have anything against using it other than preferring to use a login manager that comes with a Slackware install. What I also like about XDM is that it integrates well with runlevel 3 and the xinitrc scripts generated by xwmconfig. I'll probably stick with XDM and drop awesome if I can't work it out. I'm only trying out awesome again after years on i3wm anyway.
 
Old 10-06-2017, 01:49 AM   #7
navigium
Member
 
Registered: Aug 2014
Location: Switzerland
Distribution: Slackware, FreeBSD
Posts: 119

Original Poster
Rep: Reputation: 58
@GazL Thank you, "DisplayManager.*.authName: MIT-MAGIC-COOKIE-1" solved the problem.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] AwesomeWM extremely slow to start slack_ Slackware 6 08-29-2014 04:57 PM
kdm fails but xdm works rbees Linux - Newbie 7 10-06-2013 08:45 AM
[SOLVED] xdm fails to start X Izmo Linux - Desktop 4 09-23-2012 07:49 AM
[SOLVED] xdm init script problem - "invoke-rc.d xdm start" fails ? Vilius Debian 2 09-13-2010 12:15 AM
xdm/gdm fails to start after manual install of X lourensc Debian 4 02-24-2009 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration