LinuxQuestions.org
Review your favorite Linux distribution.
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 03-10-2017, 09:42 AM   #1
tiuz
Member
 
Registered: Mar 2006
Distribution: Slackware 14
Posts: 92

Rep: Reputation: 15
NO X11 logins are registered (14.2)


Hello,

I´ve installed Slackware 14.2 (64bit) on a friends computer.

Booting into runlevel 4.

There is no GDM / KDM installed so using XDM instead as it´s enough.

But i X11 logins are not registered at all.

/etc/X11/xdm/Xstartup

#!/bin/sh
# Register a login (derived from GiveConsole as follows
#
exec /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x /usr/lib64/X11/xdm/Xservers -l $DISPLAY -h "" $USER

/etc/X11/xdm/Xserver has just one line "active"

:0 local /usr/bin/X :0 -nolisten tcp

I checked with my setup as i am running XDM too and all those have the same content.

Thanks for any hints.

Tz
 
Old 03-10-2017, 11:56 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
xdm config in slackware is a bit on the "pants" side. if you look in /etc/X11/xdm/xdm-config you'll notice that it has this:
Code:
DisplayManager._0.startup:      /usr/lib64/X11/xdm/GiveConsole
DisplayManager._0.reset:        /usr/lib64/X11/xdm/TakeConsole
So when you login on display :0 it doesn't run Xstartup and you don't get the session reg. The give/take console stuff is useless anyway, so I'd be inclined to comment those out and just let it use Xstartup/Xreset instead.

On my box, I have changed this in /etc/X11/xdm/Xservers:
Code:
:7 local /usr/bin/X :7 vt7
So my screen on tty7 is actually DISPLAY=:7 which helps to remind me which console I'm on when I run more than one at a time. Changing this also avoids the give/take console nonsense.
 
2 members found this post helpful.
Old 03-10-2017, 12:05 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Why do you need Xstartup? Just reboot at runlevel 4. it should work. At least it does here, I just renamed /ust/bin/kdm as /usr/bin/kdm.orig so xdm be used instead to check.
 
Old 03-10-2017, 01:43 PM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
You don't strictly need the sessreg stuff at all, but some folks may like the logins to be logged in utmp:
Code:
test@ws1:~$ who
test     :7           2017-03-10 12:03 (:7)
test     pts/2        2017-03-10 19:36 (:7)
 
1 members found this post helpful.
Old 03-17-2017, 03:23 PM   #5
tiuz
Member
 
Registered: Mar 2006
Distribution: Slackware 14
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks! Comment out the "Give and Take Console" stuff did help !!
 
Old 03-19-2017, 10:06 PM   #6
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Cool! So, a careful read of #2 Solved this!

You can mark this as 'Solved', via ThreadTools at top
(so future searchers will see that there's a Solution here!)

Last edited by Jjanel; 03-19-2017 at 10:14 PM.
 
  


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] /usr/bin/X11/X11/....... 10 X11 subsets & counting walter74 Linux - General 2 06-07-2015 12:36 AM
libgdk_pixbuf-2.0.so.0, libgdk-x11-2.0.so.0, libgtk-x11-2.0.so.0 dependency problem chintu00001 Red Hat 2 07-09-2012 06:22 AM
LXer: Using scponly To Allow SCP/SFTP Logins And Disable SSH Logins On Debian Squeeze LXer Syndicated Linux News 0 08-24-2011 04:20 AM
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
X11 display failed logins rangerx Linux - Security 0 09-19-2002 10:39 AM

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

All times are GMT -5. The time now is 07:35 PM.

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