Difference between revisions of "OpenRC, an alternative to systemd"

m
changed box - removed unnecessary empty lines
imported>Fhdk
m (bof)
imported>Fhdk
m (changed box - removed unnecessary empty lines)
Line 215: Line 215:


== Using Consolekit ==
== Using Consolekit ==
 
{{Important|Consolekit has been deprecated in Manjaro in favour of [https://forum.manjaro.org/t/switch-from-consolekit-to-elogind/19412 elogind].}}
{{Warning | Consolekit has been deprecated in Manjaro in favour of [https://forum.manjaro.org/t/switch-from-consolekit-to-elogind/19412 elogind].}}
 


Additionally, if not already done, [https://wiki.gentoo.org/wiki/ConsoleKit consolekit] can be installed to perform root actions like shutting down or restarting system as non-root user from your Desktop Environment.
Additionally, if not already done, [https://wiki.gentoo.org/wiki/ConsoleKit consolekit] can be installed to perform root actions like shutting down or restarting system as non-root user from your Desktop Environment.


Consolekit can be installed in the following way:
Consolekit can be installed in the following way:
  sudo pacman -S consolekit-openrc polkit-consolekit cgmanager-openrc
  sudo pacman -S consolekit-openrc polkit-consolekit cgmanager-openrc


The output looks like the following:
The output looks like the following:
  $ sudo pacman -S consolekit-openrc polkit-consolekit cgmanager-openrc
  $ sudo pacman -S consolekit-openrc polkit-consolekit cgmanager-openrc
  resolving dependencies...
  resolving dependencies...
Line 243: Line 239:
After installing it can be enabled with {{ic|'''sudo rc-update add consolekit'''}} and would be activated after a reboot.
After installing it can be enabled with {{ic|'''sudo rc-update add consolekit'''}} and would be activated after a reboot.
To check that consolekit is running and a ck-session was started, the following command can be used:
To check that consolekit is running and a ck-session was started, the following command can be used:
 
  ck-list-sessions
  ck-list-sessions


The output looks like the following:
The output looks like the following:
  Session1:
  Session1:
  unix-user = '1000'
  unix-user = '1000'
Line 265: Line 260:


To start a ck-session and X session from the command line following syntax could be used:
To start a ck-session and X session from the command line following syntax could be used:
  ck-launch-session <session-name>
  ck-launch-session <session-name>


For example,
For example,
  ck-launch-session startxfce4
  ck-launch-session startxfce4


=== Some gotcha's ===
=== Some gotcha's ===
Display managers that are known to work with consolekit are '''lightdm''', '''lxdm''' (via [https://aur.archlinux.org/packages/lxdm-consolekit/ lxdm-consolekit]), '''kdm''' (via [https://aur.archlinux.org/packages/kdebase-workspace-consolekit/ kdebase-workspace-consolekit]), and '''mdm''' (via [https://aur.archlinux.org/packages/mdm-nosystemd/ mdm-nosystemd]). Have a look at the [[Openrc#Display_Manager | Display Manager]] section for more info.
Display managers that are known to work with consolekit are '''lightdm''', '''lxdm''' (via [https://aur.archlinux.org/packages/lxdm-consolekit/ lxdm-consolekit]), '''kdm''' (via [https://aur.archlinux.org/packages/kdebase-workspace-consolekit/ kdebase-workspace-consolekit]), and '''mdm''' (via [https://aur.archlinux.org/packages/mdm-nosystemd/ mdm-nosystemd]). Have a look at the [[Openrc#Display_Manager | Display Manager]] section for more info.


Anonymous user