You are not logged in.

#1 2017-12-15 13:20:17

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Mounting/Sharing files with Andriod device

My wife's phone is Android 5.  How can I transfer files from there to the computer and back again?

Have looked at mtp-tools another cryptic program with a man page as helpful as teats on a bull.

MTP-TOOLS(1)                                    [FIXME: manual]                                    MTP-TOOLS(1)



NAME
       mtp-tools - tools for communicating with Media Transfer Protocol (MTP) devices

SYNOPSIS
       mtp-albumart [args]

       mtp-albums

       mtp-connect [args]

       mtp-delfile [args]

       mtp-detect

       mtp-emptyfolders

       mtp-files

       mtp-filetree

       mtp-folders

       mtp-format

       mtp-getfile [args]

       mtp-getplaylist [args]

       mtp-hotplug [args]

       mtp-newfolder [args]

       mtp-newplaylist [args]

       mtp-playlists

       mtp-sendfile [args]

       mtp-sendtr [args]

       mtp-thumb [args]

       mtp-tracks

       mtp-trexist [args]

DESCRIPTION
       This manual page documents briefly the commands distributed with the libmtp package, collectively called
       mtp-tools.

       This manual page was written for the Debian distribution because the original programs do not have
       manual pages. Concise synopsis can be obtained by giving -h to the commands.

SEE ALSO
       http://libmtp.sourceforge.net

AUTHOR
       This manual page was written by Rafael Laboissiere <rafael@debian.org> for the Debian system (but may be
       used by others). Permission is granted to copy, distribute and/or modify this document under the terms
       of the GNU General Public License, Version 2 any later version published by the Free Software
       Foundation.

       On Debian systems, the complete text of the GNU General Public License can be found in
       /usr/share/common-licenses/GPL.

AUTHOR
       Rafael Laboissiere
           Author.

COPYRIGHT
       Copyright © 2007 Rafael Laboissiere



[FIXME: source]                                    2007-02-01                                      MTP-TOOLS(1)

Any help helping me help my wife would be appreciated.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2 2017-12-15 17:20:33

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Mounting/Sharing files with Andriod device

Hmmm using Debian with openbox ... no ked no arch.

Guess it's going to be a tough ride with BL.  sad


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3 2017-12-15 17:36:46

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,649

Re: Mounting/Sharing files with Andriod device

Hello, my friend,  smile
yes, with kde would be the solution, but you don't...

What I found in a hurry:

apt-cache policy go-mtpfs
go-mtpfs:
  Installiert:           (keine)
  Installationskandidat: 0.0~git20150917.0.bc7c0f7-1+b2
  Versionstabelle:
     0.0~git20150917.0.bc7c0f7-1+b2 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages
aptitude show go-mtpfs
Paket: go-mtpfs                                 
Version: 0.0~git20150917.0.bc7c0f7-1+b2
Zustand: nicht installiert
Priorität: optional
Bereich: devel
Verwalter: Julian Gilbey <jdg@debian.org>
Architektur: i386
Unkomprimierte Größe: 2.635 k
Hängt ab von: libc6 (>= 2.3.6-6~), libusb-1.0-0 (>= 2:1.0.9)
Beschreibung: Mount MTP devices over FUSE
 Go-mtpfs is a simple FUSE filesystem for mounting Android devices as an MTP
 device. 
 
 It will expose all storage areas of a device in the mount, and only reads file
 metadata as needed, making it mount quickly. It uses Android extensions to
 read/write partial data, so manipulating large files requires no extra space in
 /tmp.
Homepage: https://github.com/hanwen/go-mtpfs

should be good, because faster and more stable than mtpfs (unfortunately only in unstable?)


If you do have to access mtpfs, a current german manual and the translator (better than google)
https://linuxwelt.blogspot.de/2015/10/a … linux.html
https://www.deepl.com/translator

https://linuxundich.de/android/mit-go-m … zugreifen/

Last edited by unklar (2017-12-15 18:05:29)

Offline

#4 2017-12-15 18:09:25

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Mounting/Sharing files with Andriod device

Arch no thanks.  And of course no it SID to..

Please close this.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#5 2017-12-15 18:27:24

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,649

Re: Mounting/Sharing files with Andriod device

2017-12-15-19-24-16_scrot.th.png

Offline

#6 2017-12-15 22:55:16

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: Mounting/Sharing files with Andriod device

Sector11 wrote:

Please close this

No! tongue

I am getting a new Android (8) phone tomorrow and I know that won't work with BL/thunar/gvfs so I'm going to install https://f-droid.org/en/ (in the phone) and use that to get https://f-droid.org/packages/be.ppareit.swiftp_free/

I will post again after I have actually tried it but it should be as simple as starting the application on your phone then navigating to it in thunar (via the "Network" icon, or whatever it is).

I'll be back neutral

Offline

#7 2017-12-16 02:40:00

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Mounting/Sharing files with Andriod device

For sharing files it's an easy way to use a cloud storage like Nextcloud, Owncloud or Seafile (Syncthing offers free storage - obviously it only works if there is internet available). It's good to have the content encrypted with something like cryptomator.

Last edited by martix (2017-12-16 02:49:02)

Offline

#8 2017-12-16 20:28:15

tynman
Member
Registered: 2015-10-13
Posts: 93

Re: Mounting/Sharing files with Andriod device

I've never found a solution to this, i.e. connecting between a Linux computer and my Android phone (Samsung Galaxy S7 - Android 7.0). Until today. When I saw unklar's suggestion above to use go-mtpfs, I checked it out. It is mentioned in the Arch wiki (https://wiki.archlinux.org/index.php/MTP#go-mtpfs) . I have tried a few of the methods discussed in that wiki, but I had overlooked go-mtpfs - maybe the name was too dorky for me.

I tried go-mtpfs today, and it worked good to update ("sync") my phone with music mp3 files. My PC is running Debian Stretch with Openbox - not BunsenLabs, but close smile.

# apt install go-mtpfs
# mkdir /mnt/phone
# chown root:staff /mnt/phone
# chmod 775 /mnt/phone
> go-mtpfs -android /mnt/phone

Popup Message on phone: “Allow Access to Device Data” – Reply “Allow”

> go-mtpfs -android /mnt/phone
2017/12/16 12:48:46 FUSE mounted

Terminal will now be blocked until the go-mtpfs program completes.
Open a second “terminal”

> cd /001/music/mp3
> rsync -vah --progress --no-perms --inplace --ignore-existing --delete-after . /mnt/phone/Card/Music/mp3/
> fusermount -u /mnt/phone

The fusermount command causes the go-mtpfs command to end (and unmounts the phone). The original terminal will un-block.

Offline

#9 2017-12-16 20:48:34

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,614

Re: Mounting/Sharing files with Andriod device

@S11 - is spaceFM still in the repos? I never had an issue with it to get photos and other files off our Android phones; it just worked. I actually kept it installed just to get pictures off my phone.


You must unlearn what you have learned.
    -- yoda

Offline

#10 2017-12-17 01:25:20

qcgxr
Member
Registered: 2016-08-31
Posts: 29

Re: Mounting/Sharing files with Andriod device

Syncthing works well on Android. No server needed. Just syncs to the desktop client (or wherever else you've installed it). Also Syncopoli is essentially rsync for Android. Both are on F-droid. If neither of those work, adb, as others have suggested, works well enough.

Offline

#11 2017-12-17 08:45:29

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Mounting/Sharing files with Andriod device

Sector11 wrote:

Arch no thanks.  And of course no it SID to..

Please close this.

don't get frustrated!
i will add my 5ct regardless...

if 'adb' is in your PATH, enter this in a terminal:

adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
XXXXXXXXXXXXXXXX    device

the last line is the most important, it shows that the system can SEE your device.
with that working, you are 90% there!

you can use the adb command as previously described, copy, move , even un/install software etc.
or get a shell with 'adb shell'.

if youi want a graphical filemanager go here: https://github.com/sole/aafm
and download or clone the repo.
now i THINK it's enough to simply execute ./aafm in the current directory, or then maybe you should use the setup.py script; maybe like this:

python2 setup.py install --optimize=1

Last edited by ohnonot (2017-12-17 08:46:09)

Offline

#12 2017-12-17 08:57:32

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Mounting/Sharing files with Andriod device

Me-->> takes external sd mem card out of phone, inserts into computer with a fancy usb3.0 card adapter/reader, does transfer inbound or outbound --> Complete.

That is how i do it, i have a 32 GB card that has most photos, video etc on that and hardly any on the internal phone device itself.

Offline

#13 2017-12-17 18:01:40

ututo
Member
Registered: 2015-09-29
Posts: 326

Re: Mounting/Sharing files with Andriod device

Me-->> using BL Hydrogen with openbox + KDEConnect + Device with Android v5.0.1

Screenshot---12172017---013808-PM.th.png

  1. Installed kdeconnect app via google play store

  2. Installed kdeconnect... (with a lot of kde dependencies, yeah...)

  3. Installed indicator-kdeconnect... (and some extra dependencies)

  4. Then added this to my autostart

    ## KDE Servicies
    (sleep 5; kdeinit4) &
    
    ## KDE Connect
    (sleep 6; qdbus org.kde.kded /kded loadModule kdeconnect) &
    (sleep 7; kbuildsycoca4 -noincremental) &
    (sleep 10; indicator-kdeconnect --gapplication-service) &
  5. And last but not least...I added this custom action to pcmanfm

    [Desktop Entry]
    Type=Action
    Name=KDEconnect Send To
    Icon=kdeconnect
    Profiles=profile-zero;
    
    [X-Action-Profile profile-zero]
    Exec=kdeconnect-send %f
    Name=KDEconnect Send To

    in ~/.local/share/file-manager/actions

kdepcman.th.png

I hope these links could help you
indicator-kdeconnect
LIGNUX - Instalando KDEConnect en Debian XFCE

The downside:

  • the amount of dependencies

  • it doesn't have all the features you find in KDEConnect +KDE environment+Dolphin+applets

  • i can't find a way to customize the indicator-kdeconnect icon in the tint2 systray, so you see a black spot in the first screenshot (actually, it is a black phone icon)

Last edited by ututo (2017-12-17 18:07:26)


BunsenLabs on deviantArt
Don't touch my git!

Offline

#14 2017-12-17 18:18:20

ututo
Member
Registered: 2015-09-29
Posts: 326

Re: Mounting/Sharing files with Andriod device

...and this is my Plan B:

pen-drive-kingston-micro-duo-16gb-otg-usb-smartphone-tablet-1456.jpg

a microduo flash-drive with both connectors


BunsenLabs on deviantArt
Don't touch my git!

Offline

#15 2017-12-18 11:28:37

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,649

Re: Mounting/Sharing files with Andriod device

^ tynman

do you know termux ?

termux-setup-storage

Code  smile

Offline

#16 2017-12-19 06:14:12

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Mounting/Sharing files with Andriod device

unklar wrote:

^ tynman

do you know termux ?

termux-setup-storage

Code  smile

wow!
didn't know this existed.
installing it right now.

Offline

#17 2017-12-21 08:44:12

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: Mounting/Sharing files with Andriod device

Head_on_a_Stick wrote:

I'll be back neutral

Sorry for the delay, Amazon shafted me hmm

Anyway, I've now got my Android 8 device and my "quick-fix" fileshare solution is to install Google's GDrive on the phone and use that along with the web client in my other systems; this allows me to share files across Android, Linux, OpenBSD and Windows, all without having to find the correct cable.

This is lame (obviously) so I will be investigating a better solution when I have time.

Offline

#18 2017-12-21 09:33:07

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,741

Re: Mounting/Sharing files with Andriod device

1. Cable way

My very old post http://paste.debian.net/plain/1001786

Mostly about:
- Use jmtpfs,
- Use correct cable (that the usb cable you are using is one that is used for transferring data and not just one for charging the device! Some cheap tablets and mobiles for instance only have a charging cable! To the uninitiated, they both look the same!)

2. Use something that can connect to ssh on android (The easy way). EZ commander is what I think I used.

Last edited by brontosaurusrex (2017-12-21 09:59:42)

Offline

#19 2017-12-22 03:16:09

garnet&gold
Member
Registered: 2017-12-22
Posts: 10

Re: Mounting/Sharing files with Andriod device

the android device should connect without issue.  You may need to toggle "usb debugging" under developer options in the phone's settings.  If developer options is not displayed under settings/system, then go to settings/system/about phone/ scroll to the bottom of the display, click on "build number" 7 times, a pop up will tell you developer options is active, go back one screen and select it, then scroll down to toggle usb debugging.  When you connect your phone by usb you will have to slide down the notification shade on the phone, about midway down the shade, you will see "Android system - USB Charging this device" click on it, one of the options on the pop up will be transfer files.  When you are done transferring what you want unmount thephone in thunar and unplug.

Offline

#20 2017-12-22 12:50:55

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: Mounting/Sharing files with Andriod device

See D219's post here for a udev-based solution that should work with BL-H:

https://forums.bunsenlabs.org/viewtopic … 614#p65614

Offline

Board footer

Powered by FluxBB