mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
fce275e955
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7591 af4574ff-66df-0310-9fd7-8a98e5e911e0
163 lines
5.4 KiB
XML
163 lines
5.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY usbutils-download-http "&sourceforge-repo;/linux-usb/usbutils-&usbutils-version;.tar.gz">
|
|
<!ENTITY usbutils-download-ftp " ">
|
|
<!ENTITY usbutils-md5sum "ee345fe605ffcfce843dae4aed81122b">
|
|
<!ENTITY usbutils-size "166 KB">
|
|
<!ENTITY usbutils-buildsize "1.6 MB">
|
|
<!ENTITY usbutils-time "less than 0.1 SBU">
|
|
]>
|
|
|
|
<sect1 id="usbutils" xreflabel="usbutils-&usbutils-version;">
|
|
<?dbhtml filename="usbutils.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>usbutils-&usbutils-version;</title>
|
|
|
|
<indexterm zone="usbutils">
|
|
<primary sortas="a-usbutils">usbutils</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to usbutils</title>
|
|
|
|
<para>The <application>usbutils</application> package contains a utility
|
|
used to display information about USB buses in the system and the devices
|
|
connected to them.</para>
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&usbutils-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&usbutils-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &usbutils-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &usbutils-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &usbutils-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &usbutils-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">usbutils Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required"><xref linkend="libusb"/></para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/usbutils"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of usbutils</title>
|
|
|
|
<para>Install <application>usbutils</application> by
|
|
running the following commands:</para>
|
|
|
|
<screen><userinput>sed -i 's|DEST=|&/usr/share/|' update-usbids.sh &&
|
|
./configure --prefix=/usr &&
|
|
make</userinput></screen>
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
install -v -m755 update-usbids.sh /usr/sbin/update-usbids</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><command>sed -i '...' update-usbids.sh</command>: This command is
|
|
used to modify the download script so that it will replace the existing
|
|
file in <filename class='directory'>/usr/share</filename> instead of in
|
|
the current directory.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring usbutils</title>
|
|
|
|
<para>The <filename>usb.ids</filename> data file is constantly being
|
|
updated. To get a current version of this file, run
|
|
<command>update-usbids</command> as the <systemitem
|
|
class="username">root</systemitem> user. This program requires the
|
|
<xref linkend="which"/> script or program to find <xref linkend="wget"/>
|
|
or <xref linkend="lynx"/> which are used to download the most current file,
|
|
and replace the existing file in
|
|
<filename class='directory'>/usr/share</filename>.</para>
|
|
|
|
<para>You may wish to add an entry to
|
|
<systemitem class="username">root</systemitem>'s (or any other user who
|
|
has write privilege to <filename class='directory'>/usr/share</filename>)
|
|
crontab to automatically update the <filename>usb.ids</filename> file
|
|
periodically.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>lsusb and update-usbids</seg>
|
|
<seg>None</seg>
|
|
<seg>None</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="lsusb">
|
|
<term><command>lsusb</command></term>
|
|
<listitem>
|
|
<para>is a utility for displaying information about all USB buses in the
|
|
system and all devices connected to them.</para>
|
|
<indexterm zone="usbutils lsusb">
|
|
<primary sortas="b-lsusb">lsusb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="update-usbids">
|
|
<term><command>update-usbids</command></term>
|
|
<listitem>
|
|
<para>downloads the current version of the USB ID list. Requires
|
|
<xref linkend="wget"/> or <xref linkend="lynx"/>.</para>
|
|
<indexterm zone="usbutils update-usbids">
|
|
<primary sortas="b-update-usbids">update-usbids</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|