source: general/sysutils/usbutils.xml@ eae7f55

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since eae7f55 was eae7f55, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Add the dependencies to pciutils to allow the pciutils script to function. This is mostly for consistency between books. The systemd book has a timer and unit to allow the pci.ids file to be updated Sundays at 2:30AM Local Time, and without wget, lynx, or curl installed - the script fails to function.

In addition, add wget to the list of dependencies for usbutils in systemd (again, as a result of the units)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20756 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.5 KB
RevLine 
[1ed12e2d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[1ed12e2d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[8dfc5c3]7 <!ENTITY usbutils-download-http "&kernel-dl;/linux/utils/usb/usbutils/usbutils-&usbutils-version;.tar.xz">
[faa68e4a]8 <!ENTITY usbutils-download-ftp " ">
[66f2fb7]9 <!ENTITY usbutils-md5sum "938e3707593974be99a0dd6d1de76671">
[0e463f49]10 <!ENTITY usbutils-size "304 KB">
[66f2fb7]11 <!ENTITY usbutils-buildsize "4.1 MB">
12 <!ENTITY usbutils-time "0.1 SBU">
[1ed12e2d]13]>
14
[4890200]15<sect1 id="usbutils" xreflabel="usbutils-&usbutils-version;">
[1ed12e2d]16 <?dbhtml filename="usbutils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[4890200]23 <title>usbutils-&usbutils-version;</title>
[1ed12e2d]24
25 <indexterm zone="usbutils">
[4890200]26 <primary sortas="a-usbutils">usbutils</primary>
[1ed12e2d]27 </indexterm>
28
29 <sect2 role="package">
[564851b]30 <title>Introduction to USB Utils</title>
[1ed12e2d]31
[564851b]32 <para>
[2882ec4b]33 The <application>USB Utils</application> package contains utilities
[564851b]34 used to display information about USB buses in the system and the
35 devices connected to them.
36 </para>
[1ed12e2d]37
[9eb7ee7]38 &lfs83_checked;
[75c492d]39
[1ed12e2d]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[564851b]43 <para>
44 Download (HTTP): <ulink url="&usbutils-download-http;"/>
45 </para>
[1ed12e2d]46 </listitem>
47 <listitem>
[564851b]48 <para>
49 Download (FTP): <ulink url="&usbutils-download-ftp;"/>
50 </para>
[1ed12e2d]51 </listitem>
52 <listitem>
[564851b]53 <para>
54 Download MD5 sum: &usbutils-md5sum;
55 </para>
[1ed12e2d]56 </listitem>
57 <listitem>
[564851b]58 <para>
59 Download size: &usbutils-size;
60 </para>
[1ed12e2d]61 </listitem>
62 <listitem>
[564851b]63 <para>
64 Estimated disk space required: &usbutils-buildsize;
65 </para>
[1ed12e2d]66 </listitem>
67 <listitem>
[564851b]68 <para>
69 Estimated build time: &usbutils-time;
70 </para>
[1ed12e2d]71 </listitem>
72 </itemizedlist>
73
[564851b]74 <bridgehead renderas="sect3">USB Utils Dependencies</bridgehead>
[9f12e36]75
[1ed12e2d]76 <bridgehead renderas="sect4">Required</bridgehead>
[76cfd80]77 <para role="required">
[adf6dd9a]78 <xref linkend="libusb"/>
[eae7f55]79 <phrase revision="systemd">and <xref linkend="wget"/></phrase>
80 <!-- In the systemd book, a unit/timer is installed to update the
81 usb.ids file automatically. -->
[76cfd80]82 </para>
[1ed12e2d]83
[f22356bf]84 <bridgehead renderas="sect4">Required Runtime</bridgehead>
[1051f94e]85 <para role="required">
86 <xref role="runtime" linkend="python2"/>
87 </para>
[f22356bf]88
[1ed12e2d]89 <para condition="html" role="usernotes">User Notes:
[564851b]90 <ulink url="&blfs-wiki;/usbutils"/>
91 </para>
[1ed12e2d]92 </sect2>
93
94 <sect2 role="installation">
[564851b]95 <title>Installation of USB Utils</title>
[1ed12e2d]96
[564851b]97 <para>
98 Install <application>USB Utils</application> by
99 running the following commands:
100 </para>
[1ed12e2d]101
[0e463f49]102<screen><userinput>./configure --prefix=/usr --datadir=/usr/share/hwdata &amp;&amp;
[1ed12e2d]103make</userinput></screen>
104
[564851b]105 <para>
106 This package does not come with a test suite.
107 </para>
[1ed12e2d]108
[564851b]109 <para>
110 Now, as the <systemitem class="username">root</systemitem> user:
111 </para>
[1ed12e2d]112
[2882ec4b]113<screen role="root"><userinput>make install</userinput></screen>
[1ed12e2d]114
[b1092d9]115 <para>
116 To install the <filename>usb.ids</filename> data file, using
117 <xref linkend="wget"/>, run, as the
118 <systemitem class="username">root</systemitem> user:
119 </para>
120
121<screen role="root"><userinput>install -dm755 /usr/share/hwdata/ &amp;&amp;
122wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
123
[f22356bf]124 <para>
125 The script <command>lsusb.py</command> displays information in a more
126 easily readable form than <command>lsusb</command>. To find the options,
127 use <command>lsusb.py -h</command>. One form of use recommended by the
128 developer is <command>lsusb.py -ciu</command>.
129 </para>
130
[1ed12e2d]131 </sect2>
[0e463f49]132<!-- No longer needed
[1ed12e2d]133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
[564851b]136 <para>
[2882ec4b]137 <command>sed ... lsusb.py</command>: Instructs lsusb.py where to search
138 <filename>usb.ids</filename>.
[564851b]139 </para>
[1ed12e2d]140
141 </sect2>
[0e463f49]142-->
[1ed12e2d]143 <sect2 role="configuration">
[564851b]144 <title>Configuring USB Utils</title>
145
[ac8c7d4]146 <para revision="sysv">
[3c4997d]147 The <filename>usb.ids</filename> data file is constantly being updated.
[b1092d9]148 To get a current version of this file, using <xref linkend="wget"/>,
149 periodically run again, as the
150 <systemitem class="username">root</systemitem> user:
151 </para>
[838cd0f]152
[ac8c7d4]153<screen role="root" revision="sysv"><userinput>wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
[564851b]154
[ac8c7d4]155 <para revision="sysv">
[564851b]156 You may wish to add an entry to
157 <systemitem class="username">root</systemitem>'s (or any other user who has
[838cd0f]158 write privilege to <filename class="directory">/usr/share/hwdata</filename>)
[564851b]159 crontab to automatically update the <filename>usb.ids</filename> file
160 periodically.
161 </para>
[1ed12e2d]162
[ac8c7d4]163 <para revision="systemd">
164 You should update the <filename>/usr/share/hwdata/usb.ids</filename> file
165 periodically. Execute the following commands, as the
166 <systemitem class="username">root</systemitem> user, to create a systemd
167 timer to update it weekly on Sundays at 3:00 A.M. (local time):
168 </para>
169
170<screen role="root" revision="systemd"><userinput>cat &gt; /lib/systemd/system/update-usbids.service &lt;&lt; "EOF" &amp;&amp;
171<literal>[Unit]
172Description=Update usb.ids file
173Documentation=man:lusub(8)
174DefaultDependencies=no
[a5b9f1e]175After=local-fs.target network-online.target
[ac8c7d4]176Before=shutdown.target
177
178[Service]
179Type=oneshot
180RemainAfterExit=yes
181ExecStart=/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
182EOF
183cat &gt; /lib/systemd/system/update-usbids.timer &lt;&lt; "EOF" &amp;&amp;
184<literal>[Unit]
185Description=Update usb.ids file weekly
186
187[Timer]
188OnCalendar=Sun 03:00:00
189Persistent=true
190
191[Install]
192WantedBy=timers.target</literal>
193EOF
194systemctl enable update-usbids.timer</userinput></screen>
195
[838cd0f]196 </sect2>
[1ed12e2d]197
198 <sect2 role="content">
199 <title>Contents</title>
200
201 <segmentedlist>
202 <segtitle>Installed Programs</segtitle>
[c3c56b2]203 <segtitle>Installed Libraries</segtitle>
204 <segtitle>Installed Directories</segtitle>
[1ed12e2d]205
206 <seglistitem>
[564851b]207 <seg>
[2882ec4b]208 lsusb, lsusb.py, usb-devices, and usbhid-dump
[564851b]209 </seg>
[c3c56b2]210 <seg>
211 None
212 </seg>
213 <seg>
214 None
215 </seg>
[1ed12e2d]216 </seglistitem>
217 </segmentedlist>
218
219 <variablelist>
220 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
221 <?dbfo list-presentation="list"?>
222 <?dbhtml list-presentation="table"?>
223
224 <varlistentry id="lsusb">
225 <term><command>lsusb</command></term>
226 <listitem>
[564851b]227 <para>
[73fe507]228 is a utility for displaying information about all USB buses
[f22356bf]229 in the system and all devices connected to them, but not in human
230 friendly form.
[564851b]231 </para>
[1ed12e2d]232 <indexterm zone="usbutils lsusb">
233 <primary sortas="b-lsusb">lsusb</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
[2882ec4b]238 <varlistentry id="lsusb.py">
239 <term><command>lsusb.py</command></term>
[1ed12e2d]240 <listitem>
[564851b]241 <para>
[f22356bf]242 displays information about all USB buses in the system and all
243 devices connected to them in reasonable human friendly form.
[564851b]244 </para>
[2882ec4b]245 <indexterm zone="usbutils lsusb.py">
246 <primary sortas="b-lsusb.py">lsusb.py</primary>
[1ed12e2d]247 </indexterm>
248 </listitem>
249 </varlistentry>
[75c492d]250
251 <varlistentry id="usb-devices">
252 <term><command>usb-devices</command></term>
253 <listitem>
[564851b]254 <para>
255 is a shell script that displays details of USB buses and devices
256 connected to them. It is designed to be used if /proc/bus/usb/devices
257 is not available on your system.
258 </para>
[75c492d]259 <indexterm zone="usbutils usb-devices">
260 <primary sortas="b-usb-devices">usb-devices</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
[564851b]265 <varlistentry id="usbhid-dump">
266 <term><command>usbhid-dump</command></term>
267 <listitem>
268 <para>
269 is used to dump report descriptors and streams from HID
270 (human interface device) interfaces of USB devices.
271 </para>
272 <indexterm zone="usbutils usbhid-dump">
273 <primary sortas="b-usbhid-dump">usbhid-dump</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
[1ed12e2d]278 </variablelist>
279
280 </sect2>
281
282</sect1>
Note: See TracBrowser for help on using the repository browser.