通过usb访问mtp设备(ubuntu12.04) (转载)
2014-07-02 09:23
204 查看
转自:http://robert.penz.name/658/howto-access-mtp-devices-via-usb-on-ubuntu-12-04/
A friend asked me how he can access his Nexus 7 device via USB on his Ubuntu 12.04 notebook. With Android versions below 4.0 that was simple as the device registered as mass storage device. The problem now is the stock Ubuntu 12.04 does not support MTP via GVFS (the virtual filesystem of the GNOME desktop). Newer Ubuntu versions e.g. 13.04 have already a GVFS version which support MTP. But these are no LTS versions of Ubuntu, which I recommend for the average user. But it is quite easy to install a newer version of GVFS on Ubuntu 12.04 (and 12.10) that does support it.
First you need to start a terminal. For this click on the dash home icon (1) and than type “
Now copy and paste following into the Terminal (the PC needs to be connected to the Internet while going through these steps):
Enter your user password and than you’ll be shown following text:
Hit the Enter Key. After this is done you need to type following command, which updates the package list:
After this was successful you need to upgrade the installed packages with:
Just press Enter here (the Y is the default section) to install the packages.
Now you just need to restart your PC and after login just connect your Android device to the PC and the file manager Nautilus will launch with your USB device.
A friend asked me how he can access his Nexus 7 device via USB on his Ubuntu 12.04 notebook. With Android versions below 4.0 that was simple as the device registered as mass storage device. The problem now is the stock Ubuntu 12.04 does not support MTP via GVFS (the virtual filesystem of the GNOME desktop). Newer Ubuntu versions e.g. 13.04 have already a GVFS version which support MTP. But these are no LTS versions of Ubuntu, which I recommend for the average user. But it is quite easy to install a newer version of GVFS on Ubuntu 12.04 (and 12.10) that does support it.
First you need to start a terminal. For this click on the dash home icon (1) and than type “
terminal” (2) and you’ll the terminal icon – click on it (3.)
Now copy and paste following into the Terminal (the PC needs to be connected to the Internet while going through these steps):
sudo add-apt-repository ppa:langdalepl/gvfs-mtp
Enter your user password and than you’ll be shown following text:
You are about to add the following PPA to your system: These builds of gvfs have my native mtp backend backported from gvfs master. Use this to easily access MTP based devices with Nautilus. More info: https://launchpad.net/~langdalepl/+archive/gvfs-mtp Press [ENTER] to continue or ctrl-c to cancel adding it
Hit the Enter Key. After this is done you need to type following command, which updates the package list:
sudo apt-get update
After this was successful you need to upgrade the installed packages with:
sudo apt-get upgrade
It should show something like this:
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: gvfs gvfs:i386 gvfs-backends gvfs-bin gvfs-common gvfs-daemons gvfs-fuse gvfs-libs gvfs-libs:i386 libmtp-common libmtp-runtime libmtp9 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 4,193 kB of archives. After this operation, 4,157 kB of additional disk space will be used. Do you want to continue [Y/n]?
Just press Enter here (the Y is the default section) to install the packages.
Now you just need to restart your PC and after login just connect your Android device to the PC and the file manager Nautilus will launch with your USB device.
相关文章推荐
- 如何通过 WinUSB 功能访问 USB 设备
- Ubuntu 安装MTP驱动访问安卓设备(转载)
- 通过VMDirectPath解决VMware ESXi访问USB和其他PCI设备的问题
- Ubuntu通过MTP访问Android设备
- 虚拟机Linux访问usb设备,通过Libusb库方法实现读写usb设备所获取的实时图像数据
- 在 Java 应用程序中访问USB设备-Java基础-Java-编程开发
- Windows下的Java访问USB设备解决之道(翻译Java libusb / libusb-win32 wrapper)收
- 在Java 应用程序中访问USB设备
- 实战DeviceIoControl之一:通过API访问设备驱动程序
- java程序访问USB设备
- 实战DeviceIoControl 之一:通过API访问设备驱动程序
- 在 Java 应用程序中访问USB设备
- Windows下的Java访问USB设备解决之道(翻译Java libusb / libusb-win32 wrapper)收
- 在Java应用程序中访问USB设备详解-Java基础-Java-编程开发
- 实战DeviceIoControl 之一:通过API访问设备驱动程序
- [转载]USB HID设备驱动程序设计
- C# 访问USB(HID)设备
- 实战DeviceIoControl 之一:通过API访问设备驱动程序
- 实战DeviceIoControl 之一:通过API访问设备驱动程序
- 实战DeviceIoControl:通过API访问设备驱动程序