The officially official Devuan Forum!

You are not logged in.

#1 2021-01-03 05:21:31

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

SLIM session issue when log-out and log-in

Hi folks,

is there a reason why if you log-out and log-in with SLIM you can not restart or shutdown the computer through the XFCE4 menu or panel action button?

This is not a big a deal but it is annoying...

Thanks,

Danielsan

Offline

#2 2021-01-03 10:06:03

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: SLIM session issue when log-out and log-in

Is the login session maintained after logging out & back in again?

loginctl user-status

SLiM is dead upstream and it doesn't support logind sessions correctly so perhaps try LightDM or GDM instead. GDM will run X under the normal user so that should probably be preferred.

EDIT: this behaviour is a known problem with SLiM — it doesn't support a 'default' session where multiple sessions have been enabled. Change to a different display manager if you want to avoid this issue.

The best display manager is no display manager at all: http://forums.debian.net/viewtopic.php?f=16&t=29333

Last edited by Head_on_a_Stick (2021-01-03 10:35:39)


Brianna Ghey — Rest In Power

Offline

#3 2021-01-04 06:56:03

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: SLIM session issue when log-out and log-in

I see... Thanks for the explanation... Indeed Slim is pretty dead but, don't know why, I just thought that someone at Devuan could just taking care of it...

I am fine with SLIM, as login manager it does a lot of thing that otherwise I should setting up by myself, I'll reboot and shutdown from the terminal if I need to do so.

Offline

#4 2021-02-17 08:58:36

KoO
Member
Registered: 2021-02-16
Posts: 3  

Re: SLIM session issue when log-out and log-in

Just to add to this after updating to Linux devuan 5.10.0-0.bpo.3-amd64 #1 SMP Debian 5.10.13-1~bpo10+1 (2021-02-11) x86_64 GNU/Linux then rebooting to antiX and updating grub, on booting back to Devuan at the slim login screen, there was only a screen full of colored pixels. So I dropped  to tty logged in then run startx when straight to xfce but slim was broken.

So I removed slim and installed lightDM rebooted and lightDM worked so changed desktop environments to i3wm logged in and all is now good.

By the way Thanks for a nice system.

Offline

#5 2021-02-17 19:17:46

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: SLIM session issue when log-out and log-in

It's better to use startx because that runs X under the normal user. LightDM runs X under the root user, which is *much* worse.


Brianna Ghey — Rest In Power

Offline

#6 2021-02-18 02:12:55

KoO
Member
Registered: 2021-02-16
Posts: 3  

Re: SLIM session issue when log-out and log-in

Interesting comment Stick.

I have no problem logging with .xinitrc as I only use one environment i3-gaps, but say I had two or more i3 , xfce so on how do you change without F1 from tty.

And from memory Debian's default is lightDM. Slim & F1 is so antiX. smile

Offline

#7 2021-02-18 13:12:52

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: SLIM session issue when log-out and log-in

Head_on_a_Stick wrote:

It's better to use startx because that runs X under the normal user. LightDM runs X under the root user, which is *much* worse.

but startx still needs needs_root_rights=yes in /etc/X11/Xwrapper.config via the package xserver-xorg-legacy, so wouldn't this be the same? genuine question, i dont understand this very well.

Last edited by dice (2021-02-18 13:13:44)

Offline

#8 2021-02-18 13:32:54

Ogis1975
Member
Registered: 2017-04-21
Posts: 307  
Website

Re: SLIM session issue when log-out and log-in

I use

startx

and X run under normal user. Here screens:

Root tasks:
2021-02-18-175336-1920x1080-scrot.png

User tasks:
2021-02-18-175253-1920x1080-scrot.png

Last edited by Ogis1975 (2021-02-18 15:59:50)


What economists call over-production is but a production that is above the purchasing power of the worker, who is reduced to poverty by capital and state.
            ----+- Peter Kropotkin -+----

Offline

#9 2021-02-18 15:44:55

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: SLIM session issue when log-out and log-in

dice wrote:

but startx still needs needs_root_rights=yes in /etc/X11/Xwrapper.config via the package xserver-xorg-legacy

No, it doesn't. That hasn't been a requirement for quite some time now.

See also https://www.debian.org/releases/stretch … uires-root

EDIT: Devuan may have needed that before it started using elogind but beowulf certainly doesn't need it (I've tested this in the live environment).

Last edited by Head_on_a_Stick (2021-02-18 15:46:11)


Brianna Ghey — Rest In Power

Offline

#10 2021-02-18 15:59:13

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: SLIM session issue when log-out and log-in

Head_on_a_Stick wrote:
dice wrote:

but startx still needs needs_root_rights=yes in /etc/X11/Xwrapper.config via the package xserver-xorg-legacy

No, it doesn't. That hasn't been a requirement for quite some time now.

See also https://www.debian.org/releases/stretch … uires-root

EDIT: Devuan may have needed that before it started using elogind but beowulf certainly doesn't need it (I've tested this in the live environment).

so if using elogind, xserver-xorg-legacy is not needed if using devuan?

I cant find anything on the web in regards to if needs_root_rights=yes in /etc/X11/Xwrapper.config could be a security issue, only time will tell i suppose. But interesting reading on lightdm vulnerabilities.

xdm is probably the better alternative for a login manager imo.

Last edited by dice (2021-02-18 16:00:01)

Offline

#11 2021-02-18 16:03:02

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: SLIM session issue when log-out and log-in

dice wrote:

so if using elogind, xserver-xorg-legacy is not needed if using devuan?

That is correct. I tried with the Devuan beowulf Xfce live ISO image — just disable the display manager and use startx instead for a lighter, more secure desktop.


Brianna Ghey — Rest In Power

Offline

#12 2021-02-19 15:49:21

Danielsan
Member
Registered: 2020-07-14
Posts: 178  

Re: SLIM session issue when log-out and log-in

I am using lightdm now, but I should try the old method... I would be totally fine with starting with a console login... it is more nerdy! big_smile

Offline

#13 2021-02-20 09:15:19

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: SLIM session issue when log-out and log-in

Mrs. HoaS uses a console login and she isn't nerdy at all. I have it set to run startx automatically on login to TTY1 with this line in ~/.profile:

[ "$(tty)" = /dev/tty1 ] && exec startx

Brianna Ghey — Rest In Power

Offline

Board footer