# yum install libmtp libmtp-devel libmtp-examples libusb libusb glib2 fuse-devel \
glib-devel glib2-devel fuse-devel libid3tag-devel libmtp-devel libmad-devel gcc
# mtp-detect | grep idVendor
Device 0 (VID=18d1 and PID=d109) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
idVendor: 18d1
# mtp-detect | grep idProduct
Device 0 (VID=18d1 and PID=d109) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
idProduct: d109
# vi /etc/udev/rules.d/51-android.rules
UBSYSTEM==”usb”, ATTR{idVendor}==”18d1”, ATTR{idProduct}==”d109”, MODE=”0666″
# vi /etc/fuse.conf
# mount_max = 1000
user_allow_other
# service udev restart
# systemctl restart udev.service
Compile mtpfs-1.0
# wget http://www.adebenham.com/debian/mtpfs-1.0.tar.gz
# tar xvzf mtpfs-1.0.tar.gz
#cd mtpfs-1.0/
# ./configure --prefix=/opt/mtpfs-1.0 (i have problem with this, compile without --prefix)
# ./configure
# make
# make install
# which mtpfs
/usr/local/bin/mtpfs
# vi .bashrc
alias android-connect="mtpfs -o allow_other /media/LgDual2x"
alias android-disconnect="fusermount -u /media/LgDual2x"
:wq!
# source ~/.bashrc
# mkdir /media/LgDual2x/
# chmod a+rwx /media/LgDual2x/
# mtpfs -V
Device 0 (VID=18d1 and PID=d109) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Android device detected, assigning default bug flags
FUSE library version: 2.8.6
fusermount version: 2.8.6
using FUSE kernel interface version 7.12
# android-connect
Device 0 (VID=18d1 and PID=d109) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Android device detected, assigning default bug flags
0 commenti:
Posta un commento