Ignore:
Timestamp:
08/17/2004 05:38:12 AM (20 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
3e21aac3
Parents:
1435fc9
Message:

Modified usbfs mounting instructions in libusb

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/libusb.xml

    r1435fc9 r2d935de  
    7979<title>Configuring <application>libusb</application></title>
    8080
    81 <!-- To be reviewed when hotplug enters the LFS book -->
     81<para>libusb requires the usbfs kernel filesystem to be mounted on
     82<filename class="directory">/proc/bus/usb</filename>. Applications require the
     83files in this directory to be accessible to the user, sometimes for both
     84reading and writing. To restrict access to <acronym>USB</acronym> devices,
     85ensure the usb group exits on your system. If necessary, create the usb group
     86using the following command:</para>
    8287
    83 <para>libusb requires the usbfs kernel filesystem to be mounted on
    84 <filename class="directory">/proc/bus/usb</filename>. Applications
    85 require the files in this directory to be accessible to the user,
    86 sometimes for both reading and writing.</para>
     88<screen><userinput><command>groupadd -g 14 usb</command></userinput></screen>
    8789
    88 <para>To restrict access to <acronym>USB</acronym> devices, create the
    89 usb group:</para>
    90 
    91 <screen><userinput><command>groupadd -g 15 usb</command></userinput></screen>
    92 
    93 <para>Mount usbfs at system boot-up using a special init script, as putting an
    94 extra line into <filename>/etc/fstab</filename> does not work for those who
    95 compiled "USB device filesystem" as a kernel module. Install the
    96 <filename>/etc/rc.d/init.d/usb</filename> init script included in the
    97 <xref linkend="intro-important-bootscripts"/> package:</para>
     90<para>Compiling the <quote>USB device filesystem</quote> as a kernel module is
     91not recommended. However, if you did compile it as a module, you can install an
     92init script to mount usbfs at system boot-up. An init script is included in the
     93<xref linkend="intro-important-bootscripts"/> package and is installed using
     94the following command:</para>
    9895
    9996<screen><userinput><command>make install-usb</command></userinput></screen>
     97
     98<para>If you've compiled the <quote>USB device filesystem</quote> directly
     99into the kernel, ensure you have the appropriate entry in the
     100<filename>/etc/fstab</filename> file. You should have an entry similar to
     101the line below:</para>
     102
     103<screen><userinput>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</userinput></screen>
    100104
    101105</sect2>
Note: See TracChangeset for help on using the changeset viewer.