meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.21k stars 679 forks source link

how to expose a usb device to ubuntu #340

Open segabits opened 8 years ago

segabits commented 8 years ago

hi, I have a usb DVB S2 tuner, and I want to exposed to ubuntu to install the drivers, how can we access directly to usb port from ubuntu like we do in vmware for eg. thx

max1220 commented 8 years ago

I think you should only need to aquire a kernel module for your DVB tuner in your Linux installation, and load that module via modprobe. AFAIK, /dev etc. are bind-mounted, so userspace tools under Linux should have access to it. I'm not entirely sure how modprobe in a chroot works, but have you tried to just install the driver in the guest as normal? The bigger problem you're going to face(I think) is graphics acceleration: You're not going to watch television over VNC :laughing:

brindleware commented 8 years ago

I use Linux deploy to talk to printers - on android...

First see if you can see the usb of the tuner with 'lsusb' - i use ubuntu, and it was in the usbutils package. It will report back a bunch of interesting tidbits including the pid/vid of the usb device.

As 'max1220' said - you may need a kernel mod, but if you can go through the user space usb you may luck out like I did - without a kernel mod. You will need access to the devices usb command set.

bushnerd commented 3 years ago

I use Linux deploy to talk to printers - on android...

First see if you can see the usb of the tuner with 'lsusb' - i use ubuntu, and it was in the usbutils package. It will report back a bunch of interesting tidbits including the pid/vid of the usb device.

As 'max1220' said - you may need a kernel mod, but if you can go through the user space usb you may luck out like I did - without a kernel mod. You will need access to the devices usb command set.

Hey, i also want to connect my hp printer to an android tv box. Mark.