User Tools

Site Tools


MTP on Gentoo

Refer to

emerge mtpfs
layman -a poly-c
layman -S
emerge sys-fs/jmtpfs

Note media-libs/libmtp should emerge with USE(-crypt).

Then use jmtpfs mount the device:

 jmtpfs -o allow_other  /media/galaxy_nexus/

Note should edit

vim /etc/fuse.conf 

Auto mount/umount MTP

#localhost bin # cat /etc/udev/rules.d/99-android-mtp.rules 
ATTR{idVendor}=="04e8", ACTION=="add",RUN="/usr/local/bin/ &" 
ATTR{idVendor}=="04e8", ACTION=="remove",RUN="/usr/local/bin/ &" 

#localhost bin # cat /usr/local/bin/ 

echo "Galaxy Nexus connected"
jmtpfs -o allow_other /media/galaxy_nexus
echo "Galaxy Nexus mounted on /media/galaxy_nexus"

</file BASH>
#localhost bin # cat /usr/local/bin/ 

echo "Galaxy Nexus disconnected"
umount /media/galaxy_nexus
echo "Galaxy Nexus umounted on /media/galaxy_nexus"

/var/www/dokuwiki/wiki/data/pages/linux/mtp.txt · Last modified: 2016/05/05 13:07 by