Page 1 of 1

Starting a DM with openrc

Posted: 08 Sep 2017, 03:57
by ncmprhnsbl
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))

Starting a DM with openrc

Posted: 08 Sep 2017, 13:34
by ncmprhnsbl
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)

Starting a DM with openrc

Posted: 12 Oct 2017, 05:41
by ncmprhnsbl
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

Starting a DM with openrc

Posted: 02 Nov 2017, 21:38
by francois
In the first post does one have to add lightdm:

Code: Select all

pman -S lightdm
B)