转自:http://www.ipython.me/ubuntu/how-to-connect-kindle-with-ubuntu.html
1、安装MTP工具集:
[email protected]:~$ sudo apt-get install mtp-tools mtpfs [email protected]-it:~$ dpkg -l mtp-tools mtpfs Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============================-==============================-============================================================================ ii mtp-tools 1.1.3-1ubuntu0.1 Media Transfer Protocol (MTP) library tools ii mtpfs 0.9-3build1 FUSE filesystem for Media Transfer Protocol devices
2、检测设备的 idVendor 和 idProduct
[email protected]:~$ mtp-detect | grep idVendor Device 0 (VID=1949 and PID=000d) is UNKNOWN. [email protected]-it:~$ lsusb Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 002: ID 045e:07b2 Microsoft Corp. Bus 003 Device 003: ID 1949:000d Lab126
3、在linux 里面不需要为Pad或安卓手机安装设备驱动,但需要添加访问规则,如下,编辑/etc/udev/rules.d/51-android.rules
#如前面通过lsusb和mtp-detect获取到到设备ID号 对应到变更到下面的配置中# [email protected]-it:~$ sudo cat /etc/udev/rules.d/51-android.rules SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="000d", MODE="0666" #创建一个目录作为我设备的挂载点# [email protected]-it:~$ mkdir my-kindle #挂载设备# [email protected]-it:~$ sudo mtpfs -o allow_other my-kindle/ [email protected]-it:~$ ls my-kindle/ Alarms Baidu_music Documents kindle Pictures Ringtones Android Books Download Movies Playlists sogou Audible cleanmaster_cn FileRecv_QQHD Music Podcasts Tencent baidu DCIM gameloft Notifications Qzone #卸载设备# umount ~/my-kindle
时间: 2024-12-12 21:26:26