Starting a DM with openrc

Arch based Porteus community project

Moderator: M. Eerie

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
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 : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Starting a DM with openrc

Post#2 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 : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Starting a DM with openrc

Post#3 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 : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Starting a DM with openrc

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

In the first post does one have to add lightdm:

Code: Select all

pman -S lightdm
B)
Prendre son temps, profiter de celui qui passe.

Post Reply