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
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.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7771)
Filmora Efficient Editing by Alexander Zacharias(5850)
The Infinite Retina by Robert Scoble Irena Cronin(5325)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(4012)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3939)
Edit Like a Pro with iMovie by Regit(3461)
Linux Administration Best Practices by Scott Alan Miller(2863)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2839)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2528)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2433)
Docker on Windows by Stoneman Elton(2323)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2317)
Creative Projects for Rust Programmers by Carlo Milanesi(2279)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2115)
Hands-On Linux for Architects by Denis Salamanca(2056)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(2010)
Computers For Seniors For Dummies by Nancy C. Muir(2009)
The Old New Thing by Raymond Chen(1942)
Linux Kernel Debugging by Kaiwan N Billimoria(1767)
