Starting a DM with openrc

Arch based Porteus community project
Post Reply
User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 970
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 correction: /etc/initab 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

User avatar
n0ctilucient
Samurai
Samurai
Posts: 134
Joined: 21 Apr 2017, 15:59
Distribution: fullmoonremix
Location: 127.0.0.1
Contact:

Starting a DM with openrc

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

Have you tried this approach with qingyDM?
:hmmm: I do NOT have the "right" to tell anyone what they should do...
but I reserve the "right" to tell them what they should consider.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 970
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

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 970
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Starting a DM with openrc

Post#4 by ncmprhnsbl » 12 Oct 2017, 05:41

here's another way of autologging into a DE, without using a DM:
/etc/conf.d/agetty.tty1 :

Code: Select all

# Set the baud rate of the terminal line
baud="38400"

# set the terminal type
term_type="linux"

# extra options to pass to agetty for this port
agetty_options="--autologin guest" 

# make agetty quiet
#quiet="no"
and /home/guest/.bash_profile :

Code: Select all

# Start x on login
if [[ -z $DISPLAY && ! -e /tmp/.X11-unix/X0 ]]; then
   exec startx
fi
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 5078
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Starting a DM with openrc

Post#5 by francois » 02 Nov 2017, 21:38

In the first post does one have to add lightdm:

Code: Select all

pman -S lightdm
B)
Voltaire: Le mieux est l'ennemi du bien.

Post Reply