SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all, i used to run VirtualBox on 13.1 and used this http://blog.tpa.me.uk/2010/06/14/sla...irtualbox-usb/ to edit /etc/rc.d/rc.S but i've tried this on 13.37 and it doesn't work.
It worked on 13.1 to let VM's on Virtualbox to access usb devices but can't get it working on 13.37.
Can anyone help?
grep usbfs rc.S
# Mount usbfs only if it is found in /etc/fstab:
if grep -wq usbfs /proc/filesystems; then
if ! grep -wq usbfs /proc/mounts ; then
if grep -wq usbfs /etc/fstab; then
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Open a terminal window and enter
Code:
groups
You should get something similar to this:
Code:
users lp floppy dialout audio video cdrom plugdev power usbfs netdev scanner vboxusers
If you do not see lp, usbfs, vboxusers (if you did not already do that) and, possible scanner (if you have a printer that is also a scanner), add yourself to those groups either by directly editing /etc/group (as root); the entries will look like
usermod -a -G lp,usbfs,scanner,vboxusers yourlogin
You may need to reboot (maybe not).
When you restart VirtualBox and boot a guest operating system if you right click on the icon that looks like a USB stick you ought to see USB devices display there and you should be able to click the associated box to select the device (like a printer, stick or whatever).
You actually do not need to have the entry in /etc/fstab -- won't hurt but may not help; KDE's Notification will pop up when you plug in, say, a USB stick, ignore it and see if you can select the device in the guest.
hmm..it seemed to work for Virtaulbox, but now my usb modem doesn't work? ..i've removed the line i put in fstab and rebooted but my modem doesn't respond. lsusb shows the modem...anyone have an idea what causing it? i'm using wvdial to connect to my isp.
thanks.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Nope, userid2 would be if you have more that one user assessing VirtualBox (I do); vboxusers is a group and, on my system, it was added as group identification, GID, 102 -- yours may vary but that group needs to be there. There is no user account for VirtualBox so it's not in /etc/passwd, only in /etc/group, and it should have been added as part of the installation of VirtualBox (chapter 2 of the manual, "Installing on Linux hosts"):
Quote:
The Linux installers create the system user group vboxusers during installation. Any system user who is going to use USB devices from VirtualBox guests must be a member of that group. A user can be made a member of the group vboxusers through the GUI user/group management or at the command line with
sudo usermod -a -G vboxusers username
Note that adding an active user to that group will require that user to log out and back in again. This should be done manually after successful installation of the package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.