[SOLVED] Debian 8 + Xfce, Thunar mount MTP (Android) device
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
With the result that my phone and its external memory card shows up in Thunar (obviously as well as being accessible via the terminal).
But, still I wonder why I can't get the blasted thing to automount in Thunar, I am not all that interested in installing a different file manager, and I have tried installing gvfs-backends but that amounted to no change at all regarding this behaviour.
Like I said, this is no biggie since I can access my phone, but if anyone knows the proper solution to this I am curious to hear about it.
Thanks for reading.
Last edited by HMW; 06-14-2015 at 01:41 PM.
Reason: Spelling
I've been working on the same thing over the last few days. My better half has an Android phone and I needed to get her photos backed up to RAID 1 (OpenBSD box). I took the easy route and installed Debian jessie (with systemd) and KDE and use gwenview to transfer all of the photos to an ext2 partition (read/writeable by OpenBSD) . I couldn't even get normal usb mass storage to mount in thunar, so didn't even bother trying anything else.
I didn't really look into jmptpfs that much, so your post has inspired me to give that another go. Thanks.
i think it's rather a question of optional dependencies for gvfs (gvfs-gphoto2 gvfs-mtp) and setting it up correctly.
at least pcmanfm uses that, i guess thunar is no different.
i have to admit, i don't own a modern android phone, but this has solved the issue for my camera.
i think it's rather a question of optional dependencies for gvfs (gvfs-gphoto2 gvfs-mtp) and setting it up correctly.
at least pcmanfm uses that, i guess thunar is no different.
i have to admit, i don't own a modern android phone, but this has solved the issue for my camera.
Hi there!
I actually read somewhere that some users switched to pcmanfm from Thunar just because pcmanfm could handle mtp devices whilst Thunar could not. But, again, I am perfectly happy with Thunar, and this is a mild annoyance, nothing more.
However, if you have clear directions on how to set up gvfs-mtp etcetera to get it working in Thunar, I would be interested.
I don't have gvfs-mtp, and it doesn't seem available in the Debian (stable) repos either.
According to the wiki page I have linked above, this should be covered by the gvfs-backends package.
I am absolutely certain I could mount & browse my smartphone under Debian sid using the GNOME (3.14) desktop (I used Debian to install CyanogenMod on it) so it is at least possible...
EDIT: Update:
I can mount the phone in thunar in the GNOME desktop (started from GDM) in Debian sid:
i really think it's independent of the file manager; one has to get the underlying structures right.
gvfs, and then permissions, i remember i installed lxsession for this because it provides lxpolkit.
something with dbus getting started when you log in (there's a shells cript for that somewhere in /etc/X11, you'll know it when you see it).
but if you have a desktop environment, these things should be taken care of.
everything can be found in archwiki, good instructions, not sure how they carry over to debian.
if you want to solve it, maybe provide some hard info, maybe dmesg output (just the bit that comes when you plug the phone into the computer), maybe something more...
everything can be found in archwiki, good instructions, not sure how they carry over to debian.
This is the problem -- in Arch there are scripts to start the dbus session correctly in /etc/X11/xinit/xinitrc.d which are run by the example script in /etc/X11/xinit/xinitrc which is copied to ~/.xinitrc and modified for use with console log-ins and pure window manager environments. https://wiki.archlinux.org/index.php/Xinitrc
In Debian, there is no folder at /etc/X11/xinit/xinitrc.d so it is not clear exactly how to achieve a similar set up.
I will try copying the Arch files to Debian (they are just scripts and both use systemd so they should be transferable) and see if that allows thunar to browse my smartphone in a pure window manager environment.
As I said above, it all works just fine under GNOME/GDM in Debian.
I have managed to get this working in dwm with a console log-in and no display manager.
Add this snippet to the start of ~/.xinitrc (sid) or ~/.xsession (jessie) to start the dbus session:
Code:
#!/bin/bash
if [ -z "${DBUS_SESSION_BUS_ADDRESS-}" ] && type dbus-launch >/dev/null; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
Note that the shebang needs to specify /bin/bash as the script uses BASHisms and /bin/sh is symlinked to DASH in Debian.
With this, thunar mounts & browses my Samsung Galaxy SIII i9300 with thunar-volman & gvfs-backends installed even in a bare-bones window manager environment using a console log-in.
This will also work with display managers that parse ~/.xinitrc
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
What Android phone are you using.
We have Samsung here and it requires the package;
Code:
bitpim
to work.
Thunar has no problem accessing my phone (G3) or the wifes G4.
When first plugged in Thunar does give me the message that the CD has been mounted which is fun. After a few seconds it changes the entry in the left pane to "SAMSUNG Android". That, I think has to do with some of the crap Verison puts on the thing, undoubtedly as a service I desperately need.
Many device manufacturers and service providers add stuff to the phones. The best thing to do is run something like;
Code:
ac search <company that built the phone>
Mine;
Code:
sam@lounge:~$ ac search samsung
bitpim - utility to communicate with many CDMA phones
bitpim-lib - architecture-dependent helper files for BitPim
heimdall-flash - tool for flashing firmware on Samsung Galaxy S devices
heimdall-flash-frontend - tool for flashing firmware on Samsung Galaxy S devices - Qt GUI
libimage-exiftool-perl - library and program to read and write meta information in multimedia files
madwimax - user-space driver for mWiMAX equipment based on Samsung CMC-730
pkpgcounter - computes number of pages or quantity of ink needed to print documents
skyeye - Embedded Hardware Simulation
printer-driver-splix - Driver for Samsung and Xerox SPL2 and SPLc laser printers
firmware-samsung - Binary firmware for Samsung MFC video codecs
There is a phone management package for Motorola phones.
Ok, this is seriously odd. I reinstalled gvfs-backends, rebooted, and now the phone pops up in Thunar as a, eh, network device:
Code:
mtp://[usb:002,004]/
I am not familiar with this kind of ”mounting”, and the device is not listed at all if you do a
Code:
mount -l
But I really don't care at the moment. This was the behaviour I was looking for, and it makes it possible for me to access the phone without fiddling in a terminal. Not that it was much of an issue, I like fiddling in terminals, in fact that's what I prefer to do!
Anyway, I digress... thank you all for your replies and efforts. Much appreciated!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.