个人工具
登录
查看“UbuntuHelp:VirtualBox/USB”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:VirtualBox/USB”的源代码
来自Ubuntu中文
←
UbuntuHelp:VirtualBox/USB
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/VirtualBox/USB}} {{Languages|UbuntuHelp:VirtualBox/USB}} To get USB support, you need the PUEL (non-free) version. Via the GUI, there is an option to enable USB. Furthermore, your user must be able to access /proc/bus/usb/* Since Gutsy, /proc/bus/usb is not mounted by default. For '''Gutsy''' and '''Hardy''' you just need to edit /etc/init.d/mountdevsubfs.sh and uncomment the following lines: <pre><nowiki> # # Magic to make /proc/bus/usb work # mkdir -p /dev/bus/usb/.usbfs domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644 ln -s .usbfs/devices /dev/bus/usb/devices mount --rbind /dev/bus/usb /proc/bus/usb </nowiki></pre> In '''Intrepid''' the lines required to mount usbfs have been removed entirely, so you need to add the following lines to /etc/init.d/mountdevsubfs.sh at the end of the do_start() function. Note that this is subtly different than the lines required for Gutsy/Hardy. the arguments for the domount function are slightly different from previous versions. <pre><nowiki> # # Magic to make /proc/bus/usb work # mkdir -p /dev/bus/usb/.usbfs domount usbfs "" /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644 ln -s .usbfs/devices /dev/bus/usb/devices mount --rbind /dev/bus/usb /proc/bus/usb </nowiki></pre> Then run the script that you just edited: <pre><nowiki> sudo /etc/init.d/mountdevsubfs.sh start </nowiki></pre> In order to give users in the vboxusers group write permissions to the devices in /proc/bus/usb, you'll need to edit some rules in /etc/udev/rules.d. Under '''Gutsy''', edit /etc/udev/rules.d/40-permissions.rules to say the following: <pre><nowiki> # USB devices (usbfs replacement) SUBSYSTEM=="usb_device", MODE="0664", GROUP="vboxusers" </nowiki></pre> Under '''Hardy''' and '''Intrepid''', edit /etc/udev/rules.d/40-basic-permissions.rules to say the following: <pre><nowiki> # USB devices (usbfs replacement) SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", GROUP="vboxusers" SUBSYSTEM=="usb_device", MODE="0664", GROUP="vboxusers" </nowiki></pre> Then, restart the udev service: <pre><nowiki> sudo /etc/init.d/udev restart </nowiki></pre> Now, if you haven't done it already, make sure your user is part of the group ''vboxusers'' using the following command: <pre><nowiki> sudo usermod -G vboxusers -a `whoami` </nowiki></pre> Finally, log out and login again to apply these changes. See also: [http://www.virtualbox.org/ticket/747] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:VirtualBox/USB
。