Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:system:init_systems:openrc [2022/03/08 20:42] i3_relativism [OpenRC] |
en:system:init_systems:openrc [2022/10/24 15:34] throgh [Migration] |
||
---|---|---|---|
Line 75: | Line 75: | ||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
+ | |||
+ | !?(WIP)!?!? | ||
====== OpenRC ====== | ====== OpenRC ====== | ||
- | Since Hyperbola has announced the [[https:// | + | Since Hyperbola has announced the [[https:// |
===== What is OpenRC? ===== | ===== What is OpenRC? ===== | ||
Line 99: | Line 101: | ||
# gpasswd -a < | # gpasswd -a < | ||
</ | </ | ||
- | |||
- | In the case of some graphical environments, | ||
- | |||
- | < | ||
- | ... | ||
- | ; default-sink = | ||
- | ; default-source = | ||
- | ; default-server = | ||
- | ; default-dbus-server = | ||
- | |||
- | ; autospawn = yes | ||
- | ; daemon-binary = / | ||
- | ; extra-arguments = --log-target=syslog | ||
- | |||
- | ; cookie-file = | ||
- | |||
- | ; enable-shm = yes | ||
- | ; shm-size-bytes = 0 # setting this 0 will use the system-default, | ||
- | |||
- | ; auto-connect-localhost = no | ||
- | ; auto-connect-display = no | ||
- | </ | ||
- | |||
- | <note warning> | ||
- | |||
- | <note important> | ||
Same for video, your games might be laggy otherwise: | Same for video, your games might be laggy otherwise: | ||
Line 164: | Line 140: | ||
===== Migration ===== | ===== Migration ===== | ||
- | Since OpenRC is included by default and systemd is blacklisted by [[https:// | + | <note important> |
- | + | ||
- | <code bash> | + | |
- | run ' | + | |
- | run ' | + | |
- | </ | + | |
- | + | ||
- | Running these command(s) adds the service(s) to the specified runlevels. For example on running: | + | |
- | + | ||
- | <code bash> | + | |
- | # rc-update add cronie default | + | |
- | </ | + | |
- | + | ||
- | The cronie service would be added to the default runlevel and would automatically be started at boot. | + | |
- | + | ||
- | cronie (for cron) and haveged (for entropy harvesting) are some common services that can be enabled. | + | |
- | + | ||
- | Also you need to install [[https:// | + | |
- | + | ||
- | <code bash> | + | |
- | # pacman -S polkit | + | |
- | </ | + | |
- | + | ||
- | <note important> | + | |
- | + | ||
- | <note important> | + | |
===== Configuration ===== | ===== Configuration ===== | ||
Line 226: | Line 177: | ||
==> rc ' | ==> rc ' | ||
</ | </ | ||
- | |||
- | <note tip>Make sure what services you was using in systemd to re-enable them in OpenRC: | ||
- | <code bash> | ||
- | $ ls -ls / | ||
- | </ | ||
- | Sometimes, there are target files such as <color # | ||
- | </ | ||
- | |||
==== Hostname ==== | ==== Hostname ==== | ||
Line 249: | Line 192: | ||
</ | </ | ||
- | ==== NetworkManager | + | ==== Network |
- | You need to enable the software | + | You need to enable the daemon <color # |
<code bash> | <code bash> | ||
- | # rc-update add NetworkManager | + | # rc-update add dhcpcd |
</ | </ | ||
- | |||
- | In order to not change the computer' | ||
- | |||
- | < | ||
- | # Static hostname | ||
- | [keyfile] | ||
- | hostname=**Votre hostname** | ||
- | </ | ||
- | |||
- | For NetworkManager to work correctly in OpenRC, make sure that <color # | ||
- | |||
- | <note important> | ||
==== Kepmap ==== | ==== Kepmap ==== | ||
Line 289: | Line 220: | ||
Unlike another distros with OpenRC support, the DM is launched directly. | Unlike another distros with OpenRC support, the DM is launched directly. | ||
- | For example, with <color # | + | For example, with <color # |
<code bash> | <code bash> | ||
- | # rc-update add lightdm | + | # rc-update add wdm default |
</ | </ | ||
Line 334: | Line 265: | ||
<code bash> | <code bash> | ||
- | # ln -s /dev/null /etc/ | + | # ln -s /dev/null /lib/ |
</ | </ | ||
Line 378: | Line 309: | ||
==== The system can't shutdown correctly ==== | ==== The system can't shutdown correctly ==== | ||
- | Begin with OpenRC 0.28 SysVinit is replaced with openrc-init, | + | Begin with OpenRC 0.28 SysVinit is replaced with openrc-init, |
===== Acknowledgement ===== | ===== Acknowledgement ===== | ||
This wiki article is based on **[[https:// | This wiki article is based on **[[https:// |