Re: mtp???
On 10/06/2017 03:22 PM, Brandon Allbery wrote: On Fri, Oct 6, 2017 at 6:13 PM, ToddAndMargo> wrote: The weird part is that Thunar sees and operates the thing perfectly! Thunar has a lot fewer moving parts and uses libmtp directly. Krusader likely relies on a lot of extra KDE IPC goop implementing a virtual filesystem layer sitting between the mtp library and the file manager, that might not be working well together for some reason, possibly version skew. (Gnome and Mate also do that, and on my system neither mtp nor smb work reliably through gnome-vfs.) Ya, what he said! Thank you for the help!
Re: mtp???
On 10/06/2017 02:53 PM, ToddAndMargo wrote: Dear List, Krusader 2.5.0 Thunar 1.6.11 Scientific Linux 7.4 Lenovo Tab 2 A10-70 http://people.redhat.com/bnocera/libmtp-rhel-7.5/libmtp-1.1.13-1.el7.x86_64.rpm reference bug in RHEL: https://bugzilla.redhat.com/show_bug.cgi?id=1356288 Krusader will not recognize my wife's tablet. But Thunar does as mtp://[usb:002,010]. I can not find it on the command line. :'( I would like to write a backup program to backup up my wife's files. Question: how do I access mtp://[usb:002,010] from both the command line and from Perl 6? Many thanks, -T Follow up: Figured it out. Now I get top start coding! :-) With a lot of help from Vladimir over on the Scientific Linux mailing list, here is my write up: SL 7.4: how to operate MTP devices from the command line: First download and install libmtp and libmtp-examples from: http://people.redhat.com/bnocera/libmtp-rhel-7.5/ $ yum --enablerepo=* whatprovides simple-mtpfs ...| 2.6 kB 00:00 simple-mtpfs-0.2-3.el7.nux.x86_64 : Fuse-based MTP driver Repo: nux-dextop # yum --enablerepo=* install simple-mtpfs libmtp-examples One time: # mkdir /mnt/mtp # chmod 2777 /mnt/mtp Mount: # mtp-detect # sudo simple-mtpfs -o allow_other,direct_io /mnt/mtp Unmount: # fusermount -u /mnt/mtp
Re: mtp???
On Fri, Oct 6, 2017 at 6:13 PM, ToddAndMargowrote: > The weird part is that Thunar sees and operates the thing perfectly! > Thunar has a lot fewer moving parts and uses libmtp directly. Krusader likely relies on a lot of extra KDE IPC goop implementing a virtual filesystem layer sitting between the mtp library and the file manager, that might not be working well together for some reason, possibly version skew. (Gnome and Mate also do that, and on my system neither mtp nor smb work reliably through gnome-vfs.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
Re: mtp???
On 10/06/2017 03:06 PM, Brandon Allbery wrote: On Fri, Oct 6, 2017 at 5:53 PM, ToddAndMargo> wrote: I would like to write a backup program to backup up my wife's files. Question: how do I access mtp://[usb:002,010] from both the command line and from Perl 6? No MTP support module for Perl 6 as yet. There's a suite of command line utilities, but they're *fugly*. (The package is called mtp-tools on debian-derived systems; I don't know what rhel/fedora call it.) Use 'mtp-files' to get a listing of files and their ids, and then 'mtp-getfile' to copy a file by its id (not name, at least not in the version of mtp-tools I have). So to grab a backup settings file from my old phone (whose mtp implementation doesn't work with current linux file managers that speak mtp) I ended up doing: mtp-files >5x.txt grep -B1 -F k9s 5x.txt (this reported file id 4325 for the settings file) mtp-getfile 4325 settings.k9s (this retrieves file 4325 and saves it locally as settings.k9s) You may need to use mtp-connect to discover the tablet and find out what settings are needed to make it the default device for mtp operations. Thank you! The weird part is that Thunar sees and operates the thing perfectly!