Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is gui-libs/display-manager-init for?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
guru meditation
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2018
Posts: 141
Location: Planet Earth

PostPosted: Sun Aug 07, 2022 11:37 pm    Post subject: What is gui-libs/display-manager-init for? Reply with quote

What is gui-libs/display-manager-init for? There is not much info on the packages site.

As far as I can follow, it only drops a wdm.conf file into /etc/X11.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Aug 08, 2022 2:00 am    Post subject: Reply with quote

Quote:
Historically, the xdm init script handled the starting of the display manager, which has now been deprecated in favor of the display-manager init script from gui-libs/display-manager-init,
From: https://wiki.gentoo.org/wiki/Display_manager#OpenRC

Also: New OpenRC Display Manager Initializer Scripts
Quote:
Title: New OpenRC Display Manager Initializer Scripts
Author: Aisha Tammy <gentoo@aisha.cc>
Author: Andreas Sturmlechner <asturm@gentoo.org>
Posted: 2021-01-30
Revision: 6
News-Item-Format: 2.0
Display-If-Installed: sys-apps/openrc

There has been a refactoring of the old 'xdm' init script into a new
script called 'display-manager', provided by a new package that will
be introduced by your @world update routine as a dependency of
x11-base/xorg-server-1.20.10-r1:

gui-libs/display-manager-init

The package is now in ~arch and will be available to stable users
starting with 2nd March 2021. [1]

Its purpose is to provide the same startup mechanism for your chosen
display manager (like GDM, SDDM etc. [2]) as xdm did previously, but
without depending on x11-base/xorg-server. This is necessary to
support new DMs that no longer depend on Xorg.

Existing settings from /etc/conf.d/xdm will be migrated to new
/etc/conf.d/display-manager config, however after installation it is
vital not to forget to run either `etc-update` or `dispatch-conf`.
Afterwards check that /etc/conf.d/display-manager contains the
desired value for DISPLAYMANAGER.

The old 'xdm' init script is no longer supported and henceforth
removed from x11-base/xorg-server-1.20.10-r1, so it is imperative that
you switch from xdm to display-manager service in default runlevel:

# rc-update del xdm default
# rc-update add display-manager default

The changes are complete and on the next reboot, 'display-manager'
will start your chosen DM.

To switch to the new script without rebooting, run the following
commands in a tty:

# rc-service xdm stop
# rc-service display-manager start

Finally, the following action is necessary *ONLY* if you are running
a) a DM (and rest of system) without Xorg
b) a DM from an overlay, to make sure display-manager persists

# emerge --noreplace gui-libs/display-manager-init


[1] To make this change *now*, and proceed with this news item already,
stable users would need to add the following entries to
/etc/portage/package.accept_keywords [3] and update @world:

~sys-apps/sysvinit-2.98
~x11-apps/xinit-1.4.1
~x11-base/xorg-server-1.20.10
~gui-libs/display-manager-init-1.0

[2] https://wiki.gentoo.org/wiki/Display_manager
[3] https://wiki.gentoo.org/wiki//etc/portage/package.accept_keywords

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
guru meditation
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2018
Posts: 141
Location: Planet Earth

PostPosted: Mon Aug 08, 2022 3:49 pm    Post subject: Reply with quote

Snacks, erm thanks. So when I log on on commandline and use startx as I always did, i just leave the services (daemons) alone an can run xserver as always with startx?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Aug 08, 2022 7:00 pm    Post subject: Reply with quote

If configured to do so.

Quote:
Note
By default the suid USE flag is disabled, which is fine when, as per recommendation, X runs under a logind provider like elogind, or systemd. The suid USE flag should however be enabled in /etc/portage/package.use/xorg-server in case no logind provider is used and X is run under a normal user account, e.g. started with startx. Please see also this repository news article. Setting suid would then prevent permission errors on /dev/tty0, or on virtual console 7.
https://wiki.gentoo.org/wiki/Xorg/Guide#Make.conf (quote from the end of that section)

The referenced news article:
xorg-server dropping default suid

I've not installed a display manager and I haven't had any issues with using startx. The suid USE flag must be set for x11-base/xorg-server. I have both the old /etc/init.d/xdm and the new version (as ._cfg...). As I don't use either, I keep them both as a reminder. I have no idea if / how using startx would be done with systemd.


There is also Non root Xorg. I haven't used that method and don't know if it is still valid. There are some topics about it on the forum.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum