VirtualBox

Changes between Initial Version and Version 1 of USB_on_Fedora_6


Ignore:
Timestamp:
Mar 15, 2007 4:27:41 PM (17 years ago)
Author:
Michael Thayer
Comment:

HOWTO on "How to setup USB with udev on Fedora 6"

Legend:

Unmodified
Added
Removed
Modified
  • USB_on_Fedora_6

    v1 v1  
     1= How to setup USB with udev on Fedora 6 =
     2Andre Srinivasan 02/16/07 00:59:24
     3
     4This is how I resolved my VirtualBox USB issues on FC6 which uses udev, not usbfs.
     5- Decide what group usb devices will be in and add yourself to that group. I chose usb (if you choose something else, be sure to update the chgrp commands below).
     6
     7- Add /etc/udev/rules.d/51-usb-group.rules:
     8
     9{{{
     10SUBSYSTEM=="usb_device", RUN="/etc/udev/scripts/set-usb-group '%c'"
     11}}}
     12 
     13- Add /etc/udev/scripts/set-usb-group:
     14
     15{{{
     16 #! /bin/sh
     17 ret=false if [ "$1" != "" ]; then
     18 if [ -f /proc/$1 ]; then
     19 chgrp usb /proc/$1 && \ chmod g+rw /proc/$1 && \ logger udev/set-usb-group: ls -l /proc/$1 ret=true
     20 fi
     21 if [ -e /dev/$1 ]; then
     22 chgrp usb /dev/$1 && \ chmod g+rw /dev/$1 && \ logger udev/set-usb-group: ls -l /dev/$1 ret=true
     23 fi
     24 else
     25 logger udev/set-usb-group: Called without device arg exit 0
     26 fi
     27 if ! $ret; then
     28 logger udev/set-usb-group: Setting permissions on device $1 failed
     29 fi
     30}}}
     31
     32- Reboot
     33
     34- Revel in how much faster VirtualBox is than VMPlayer.
     35
     36 -andre.

© 2023 Oracle
ContactPrivacy policyTerms of Use