LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   NO X11 logins are registered (14.2) (https://www.linuxquestions.org/questions/slackware-14/no-x11-logins-are-registered-14-2-a-4175601465/)

tiuz 03-10-2017 09:42 AM

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

GazL 03-10-2017 11:56 AM

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.

Didier Spaier 03-10-2017 12:05 PM

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.

GazL 03-10-2017 01:43 PM

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)


tiuz 03-17-2017 03:23 PM

Thanks! Comment out the "Give and Take Console" stuff did help !!

Jjanel 03-19-2017 10:06 PM

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!)


All times are GMT -5. The time now is 06:59 PM.