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

imported>Aaditya
imported>Aaditya
Line 191: Line 191:


  sudo rc-service networkmanager restart
  sudo rc-service networkmanager restart
=== Using Consolekit ===
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:
sudo pacman -S consolekit-openrc
The output looks like the following:
$ sudo pacman -S consolekit-openrc
[sudo] password for aaditya:
resolving dependencies...
looking for inter-conflicts...
:: polkit-consolekit and polkit are in conflict. Remove polkit? [y/N] y
Packages (5): consolekit-0.4.6-4  js185-1.0.0-2  polkit-0.112-2 [removal]
              polkit-consolekit-0.112-2  consolekit-openrc-20140614-1
Total Download Size:    1.90 MiB
Total Installed Size:  10.67 MiB
Net Upgrade Size:      9.08 MiB
:: Proceed with installation? [Y/n]
To check that consolekit is running and a ck-session was started, the following command can be used:
ck-list-sessions
The output looks like the following:
Session1:
unix-user = '1000'
realname = 'Aaditya Bagga'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2014-06-15T13:29:58.652929Z'
login-session-id = ''
If you are not getting similar output, then maybe a ck-session is not being started by your display manager. Have a look at the [Openrc#Display_Manager Display_Manager] section for more info.
If you start a graphical session from the command line, [http://bbs.archbang.org/viewtopic.php?pid=1394#p1394 this forum post] may be of some help.


== Replacing systemd with eudev (advanced users) ==
== Replacing systemd with eudev (advanced users) ==
Line 255: Line 304:


I also had to downgrade ''xfce4-power-manager'' to version 1.2.0-5 to get it working.
I also had to downgrade ''xfce4-power-manager'' to version 1.2.0-5 to get it working.
=== Using Consolekit ===
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:
sudo pacman -S consolekit-openrc
The output looks like the following:
$ sudo pacman -S consolekit-openrc
[sudo] password for aaditya:
resolving dependencies...
looking for inter-conflicts...
:: polkit-consolekit and polkit are in conflict. Remove polkit? [y/N] y
Packages (5): consolekit-0.4.6-4  js185-1.0.0-2  polkit-0.112-2 [removal]
              polkit-consolekit-0.112-2  consolekit-openrc-20140614-1
Total Download Size:    1.90 MiB
Total Installed Size:  10.67 MiB
Net Upgrade Size:      9.08 MiB
:: Proceed with installation? [Y/n]
To check that consolekit is running and a ck-session was started, the following command can be used:
ck-list-sessions
The output looks like the following:
Session1:
unix-user = '1000'
realname = 'Aaditya Bagga'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2014-06-15T13:29:58.652929Z'
login-session-id = ''


=== Possible issues ===
=== Possible issues ===
Anonymous user