Re: How do I access mtp from the command line?

2017-10-08 Thread Paul Robert Marino

Mtp is a barely a protocol, its implementation actually differs widely for each 
device that uses it. I remember years ago I needed it for a old hard drive mp3 
player I had and it was always annoying to get working to say the least. That 
said if you need support for a recent device that uses it you should always get 
the latest from source because no two devices implement it the same way, so 
it's a race between the hardware manufacturers and the maintainers of libmtp 
which the maintainers can never really win but they do their best to keep up.

  Original Message  
From: toddandma...@zoho.com
Sent: October 7, 2017 3:57 AM
To: SCIENTIFIC-LINUX-USERS@fnal.gov
Subject: Re: How do I access mtp from the command line?

On 10/07/2017 12:27 AM, Jos Vos wrote:
> On Fri, Oct 06, 2017 at 03:44:51PM -0700, ToddAndMargo wrote:
> 
>> With a lot of help from Vladimir, 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/
> 
> EPEL has ready-to-use libmtp packages, as well ass jmtpfs (FUSE
> and libmtp based filesystem).  Never used it myself.
> 
> Sounds like a much simpler way to go.
> 


The current libmtp did not recognize my wife's tablet.
Red Hat fixed that and posted it on the link I gave.  See

https://bugzilla.redhat.com/show_bug.cgi?id=1356288


Re: How do I access mtp from the command line?

2017-10-07 Thread ToddAndMargo

On 10/07/2017 12:27 AM, Jos Vos wrote:

On Fri, Oct 06, 2017 at 03:44:51PM -0700, ToddAndMargo wrote:


With a lot of help from Vladimir, 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/


EPEL has ready-to-use libmtp packages, as well ass jmtpfs (FUSE
and libmtp based filesystem).  Never used it myself.

Sounds like a much simpler way to go.




The current libmtp did not recognize my wife's tablet.
Red Hat fixed that and posted it on the link I gave.  See

https://bugzilla.redhat.com/show_bug.cgi?id=1356288


Re: How do I access mtp from the command line?

2017-10-06 Thread ToddAndMargo

On 10/06/2017 03:17 PM, ToddAndMargo wrote:

On 10/06/2017 03:11 PM, Vladimir Mosgalin wrote:

ou can use fuse-based mtp implementation; it will allow you to mount
your device into filesystem and use whatever tools you like. E.g.
simple-mtpfs works (you can rebuilt srpm from Fedora or get it straight
from sourcehttps://github.com/phatina/simple-mtpfs). Install
libmpt-examples (for mpt-detect) and simple-mtpfs and do something like



Nux! has it!

$ dnf --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

Yippee!


I should note that I have a link from dnf to yum in SL
and a link from yum to dnf in Fedora, as I am always
mixing them up.

I do not do SL server anymore due to
https://bugzilla.redhat.com/show_bug.cgi?id=1353423

I instead have switched to Fedora Servers.  Both have their
issues.  I find Fedora Servers more stable.  And if RHEL
won't run on a C236 chipset, then it beside the point
which is better.

And RH refuses to help.  I get it.  Open Source's economic
model is to give the software away for free and charge for
the maintenance.  And since I can not put them on my payroll,
it is a no win situation.


Re: How do I access mtp from the command line?

2017-10-06 Thread ToddAndMargo

On 10/06/2017 03:11 PM, Vladimir Mosgalin wrote:

ou can use fuse-based mtp implementation; it will allow you to mount
your device into filesystem and use whatever tools you like. E.g.
simple-mtpfs works (you can rebuilt srpm from Fedora or get it straight
from sourcehttps://github.com/phatina/simple-mtpfs). Install
libmpt-examples (for mpt-detect) and simple-mtpfs and do something like



Nux! has it!

$ dnf --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

Yippee!


Re: How do I access mtp from the command line?

2017-10-06 Thread ToddAndMargo

On 10/06/2017 03:11 PM, Vladimir Mosgalin wrote:

Hi ToddAndMargo!

  On 2017.10.06 at 14:51:30 -0700, ToddAndMargo wrote next:


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]

Question: how do I access mtp://[usb:002,010] from
the command line?


You can use fuse-based mtp implementation; it will allow you to mount
your device into filesystem and use whatever tools you like. E.g.
simple-mtpfs works (you can rebuilt srpm from Fedora or get it straight
from source https://github.com/phatina/simple-mtpfs). Install
libmpt-examples (for mpt-detect) and simple-mtpfs and do something like

sudo mtp-detect
sudo simple-mtpfs -o allow_other,direct_io /home/user/Kindle

after you're done, unmount with "fusermount -u /home/user/Kindle"

If you are going to read/write huge files like movies, make sure you got
plenty of space in /tmp or redefine TMPDIR, otherwise the operation will
fail (MPT doesn't operate on whole files so it needs space to store
chunks which will be assembled to real files).




Thank you!