The Debian Administrator's Handbook by Raphaël HertzoG & Roland Mas

The Debian Administrator's Handbook by Raphaël HertzoG & Roland Mas

Author:Raphaël HertzoG & Roland Mas
Language: eng
Format: mobi
Publisher: UNKNOWN
Published: 2018-06-18T23:00:00+00:00


To create a new rule, you can use tests on the device’s variables, as well as those of one of the parent devices. The above case allows us to create two rules like these:

KERNEL==”sd?”, SUBSYSTEM==”block”, ATTRS{serial}==”M004021000001”, SYMLINK+=”usb_key/ ¯ disk”

KERNEL==”sd?[0-9]”, SUBSYSTEM==”block”, ATTRS{serial}==”M004021000001”, SYMLINK+=” ¯ usb_key/part%n”

Once these rules are set in a file, named for example /etc/udev/rules.d/010_local.rules, you can simply remove and reconnect the USB key. You can then see that/dev/usb_key/disk represents the disk associated with the USB key, and/dev/usb_key/part1is its first partition.

GOING FURTHER Debugging udev’s configuration Like many daemons,udevdstores logs in/var/log/daemon.log. But it is not very verbose by default, and it is usually not enough to understand what is happening. Theudevadm control --log-priority=infocommand increases the verbosity level and solves this problem.udevadm control --log-priority=errreturns to the default verbosity level.

9.12. Power Management: Advanced Configuration and Power Interface (ACPI)

The topic of power management is often problematic. Indeed, properly suspending the computer requires that all the computer’s device drivers know how to put them to standby, and that they properly reconfigure the devices upon waking. Unfortunately, there are still a few devices unable to sleep well under Linux, because their manufacturers have not provided the required specifications.

Linux supports ACPI (Advanced Configuration and Power Interface) — the most recent standard in power management. The acpid package provides a daemon that looks for power management related events (switching between AC and battery power on a laptop, etc.) and that can execute various commands in response.

BEWARE The graphics card driver is often the culprit when standby doesn’t work properly. Graphics card and In that case, it is a good idea to test the latest version of the X.org graphics server. standby

After this overview of basic services common to many Unix systems, we will focus on the environment of the administered machines: the network. Many services are required for the network to work properly. They will be discussed in the next chapter.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.