Eudev: Difference between revisions

From Alpine Linux
(add to device manager category)
mNo edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Draft|This is almost complete but needs testing that it works when followed as a step by step guide.}}
{{DISPLAYTITLE:eudev}}
 
[https://github.com/eudev-project/eudev eudev] is a [[Device_Manager|device manager]] that provides a drop-in replacement for systemd udev. It is therefore recommended for full blown desktop environments.
== eudev ==
 
Eudev is a [[:Category:Device_Manager|device manager]] that provides a drop in replacement for systemd udev. It is therefor recommended for full blown desktop environments.


== Installation ==
== Installation ==


The easy way to setup eudev is throught the [[#Setup_Script|setup script]]. For custom installation see the [[#Manually|manually section]]. Note that this is only recommended for advanced users.
The easy way to setup eudev is through the [[#Setup_Script|setup script]]. For custom installation see the [[#Manually|manually section]]. Note that a manual installation is only recommended for advanced users.


=== Setup Script ===
=== Setup Script ===


The {{pkg|alpine-conf}} package privides [https://git.alpinelinux.org/alpine-conf/tree/setup-devd.in setup-devd] to easily install and setup device managers.
The {{pkg|alpine-conf}} package provides [https://git.alpinelinux.org/alpine-conf/tree/setup-devd.in setup-devd] to easily install and setup device managers.


Install {{pkg|alpine-conf}} if not already.
Install {{pkg|alpine-conf}} if it is not already installed.
{{cmd|# apk add {{pkg|alpine-conf}}}}
{{cmd|# apk add {{pkg|alpine-conf}}}}
Setup eudev.
Setup eudev.
Line 21: Line 18:


You need to install eudev itself and the udev services.
You need to install eudev itself and the udev services.
{{cmd|# apk add eudev udev-init-scripts}}
{{cmd|# apk add {{pkg|eudev}} {{pkg|udev-init-scripts}}}}




If you already have a device manager installed you need to remove it before you start eudev.
If you already have a device manager installed you need to stop it before you start eudev.




Line 43: Line 40:
== Remove ==
== Remove ==


{{warning|Disabling eudev without setting up a different device manager may cause programms to break}}
{{warning|Disabling eudev without setting up a different device manager may cause unexpected issues. If you install a different device manager with the setup script this step is not needed.}}


To remove eudev you need to stop it
If you are not running in a chroot you need to stop the service first.
{{cmd|<nowiki># rc-service udev stop
{{cmd|<nowiki># rc-service udev stop
# rc-service udev-postmount stop
# rc-service udev-postmount stop
</nowiki>}}
</nowiki>}}


Then enable the services.
Then disable the services.
{{cmd|<nowiki># rc-update delete udev sysinit
{{cmd|<nowiki># rc-update delete udev sysinit
# rc-update delete udev-trigger sysinit
# rc-update delete udev-trigger sysinit
Line 59: Line 56:


You might also want to uninstall the packages since they are not used anymore.
You might also want to uninstall the packages since they are not used anymore.
{{cmd|# apk del eudev udev-init-scripts}}
{{cmd|# apk del {{pkg|eudev}} {{pkg|udev-init-scripts}}}}


== See Also ==
== See Also ==

Latest revision as of 03:45, 19 January 2024

eudev is a device manager that provides a drop-in replacement for systemd udev. It is therefore recommended for full blown desktop environments.

Installation

The easy way to setup eudev is through the setup script. For custom installation see the manually section. Note that a manual installation is only recommended for advanced users.

Setup Script

The alpine-conf package provides setup-devd to easily install and setup device managers.

Install alpine-conf if it is not already installed.

# apk add alpine-conf

Setup eudev.

# setup-devd udev

Manually

You need to install eudev itself and the udev services.

# apk add eudev udev-init-scripts


If you already have a device manager installed you need to stop it before you start eudev.


Then enable the services.

# rc-update add udev sysinit # rc-update add udev-trigger sysinit # rc-update add udev-settle sysinit # rc-update add udev-postmount default

If you are not running in a chroot you will also want to start eudev.

# rc-service udev start # rc-service udev-trigger start # rc-service udev-settle start # rc-service udev-postmount start

Remove

Warning: Disabling eudev without setting up a different device manager may cause unexpected issues. If you install a different device manager with the setup script this step is not needed.


If you are not running in a chroot you need to stop the service first.

# rc-service udev stop # rc-service udev-postmount stop

Then disable the services.

# rc-update delete udev sysinit # rc-update delete udev-trigger sysinit # rc-update delete udev-settle sysinit # rc-update delete udev-postmount default


You might also want to uninstall the packages since they are not used anymore.

# apk del eudev udev-init-scripts

See Also