[更新2014/1/24]如何让nexus 7谷歌平板连接ubuntu linux 进行mtf(媒体设备)文件传输

[最新更新2014/1/24] 可参考 http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html?m=1直接安装图形化工具"Go-mtpfs"
Go-mtpfs is available in the WebUpd8 Unstable PPA, for Ubuntu 13.04, 12.10 and 12.04. Add the PPA and install it using the following commands
sudo add-apt-repository ppa:webupd8team/unstable
sudo apt-get update
sudo apt-get install go-mtpfs
sudo apt-get install go-mtpfs-unity

安装完毕后unity搜索Mount Android Device的应用程序,拖动到unity左边的启动器,右键图标挂在mount即可如图: http://img.netupd8.com/go-mtpfs-quicklists_thumb.png

[以下是旧文]
nexus 7默认居然不支持ubuntu linux mtf(媒体设备)文件传输,默认只能ptp文件传输。
解决如下:

安装工具
 
sudo apt-get install mtp-tools mtpfs


建立udev规则
 
gksu gedit /etc/udev/rules.d/51-android.rules

输入一下内容
引用
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666", OWNER="你的用户名"

注意:idVendor和idProduct,通过lsusb查看自行修改我的lsusb如下:
引用
Bus 001 Device 013: ID 18d1:4e42 Google Inc.

所以我的内容如下
引用
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0666", OWNER="你的用户名"


重启udev使以上规则生效。
 
sudo service udev restart

挂载点目录设置
 
sudo mkdir /media/nexus7
  sudo chmod a+rwx /media/nexus7

插入nexus 7到电脑后执行
 
sudo mtpfs -o allow_other /media/nexus7

移除usb文件传输,
 
sudo umount mtpfs



参考: http://www.nexus7tablethelp.com/2012/07/connect-nexus-7-to-linux-via-mtp-using.html

后记:我是ubuntu 12.04图形界面文件复制操作不太好使,建议命令行操作。

猜你喜欢

转载自govfate.iteye.com/blog/1608379
今日推荐