Starting a DM with openrc

Arch based Porteus community project
Post Reply
User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 848
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Starting a DM with openrc

Post#1 by ncmprhnsbl » 08 Sep 2017, 03:57

Since the inclusion of Artix repos to replace manjaro core repo (extra and communty are still used), openrc is now used for the init as well as service manager.
This means that /etc/mtab is no longer used, which breaks our system for autostarting the Desktop Manager(DM) (and so the Desktop).

So far, i've found a couple of ways around this:
for example, if you're using LightDM,
install (live and to your extracted DE module) package : displaymanager-openrc (this supplies the openrc service for starting a DM)
edit /etc/conf.d/xdm
change line:

Code: Select all

DISPLAYMANAGER="xdm"
to

Code: Select all

DISPLAYMANAGER="lightdm"
then you need to enable the xdm service:

Code: Select all

sudo rc-update add xdm default
and be sure to copy /etc/runlevels/default/xdm (symlink) to your DE module

some notes:
lxdm doesnt seem to be viable because of a bug which causes it to crash on first startup..
slim isn't included in the xdm openrc service script (although i have managed to get it to work via a roundabout way(lengthy))
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

n0ctilucient
Black ninja
Black ninja
Posts: 79
Joined: 21 Apr 2017, 15:59
Distribution: freeDOS
Location: 127.0.0.1

Starting a DM with openrc

Post#2 by n0ctilucient » 08 Sep 2017, 12:46

Have you tried this approach with qingyDM?
At all times my preference is to speak for myself... so I refuse to tell anyone what to do.
However... if they question (or challenge) me I reserve the right to tell them what I would do.

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 848
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Starting a DM with openrc

Post#3 by ncmprhnsbl » 08 Sep 2017, 13:34

fairly safe to say this approach will not work with qingy, since it replaces agettys, and displaymanager-openrc is all about X displaymanagers...
with openrc init, i believe it would require the writing of a bunch of quingy scripts(openrc services) to replace the agetty services in the default runlevel..
i'd be more inclined to bypass a displaymanager altogether and go straight to X via xinitrc (possibly hacking an agetty service for autologin)
(have yet to investigate this)
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply