SlackwareThis Forum is for the discussion of Slackware 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.
Anyone got MTP up & running? I have Slackware-14.0, with Xfce and detest relearning GUIs so I'd like to stay with it. MTP is some data transfer protocol. It's now part of PTP (for Digital Cameras).
It's all a PITA to me. I can do bluetooth, but that's messy too. What is the laziest way into this in Slackware?
I have been using MTP on my Olympus camera and my older Nikon for several years. On both cameras I had to go into the setup for USB, adn select MTP. Once that was done, I simply plug the camera into what ever system ( currently Slack 14_64 ) and run digiKam. I can transfer 1 pic, or the entire contents of the memory card to the system.
Brain dead simple.
Only problem is if the camera doesn't support MTP. Then you will be stuck with removing the memory card, and using a usb to memory card device, available from most camera stores. Some laptops come with built in ones.
Mtp is installed in Slackware, but I think automatic connection say in Thunar is not there, but specific apps like music(amarok) and photo(gwenview, digikam) apps made the connections. Traditionally music players and cameras used mtp, and phones used syncing apps, or better, Mass Storage device(MSC).
Now the latest versions of Android are using MTP instead of MSC, supposedly because they wanted a unified file system. Unfortunately this can be pretty hit or miss with working in linux, becuase Android is exporting a large and complex filesystem, which mtp wasn't really designed for, and android instituted a very short timeout, and linux mtp defaulted to reading the whole file system hierarchy at first connection, which then Android timesout before it is finished.
I think there are several attempts at fixing this, in the latest gvfs for gnome, though at some point thunar could also use this but it isn't yet. KDE has mtp kio-slave added not until in 4.10 that can work with android with dolphin file manager. Alienbob site has updated packages for slackware 14 to 4.10, you could install that and then use dolphin through XFCE. I don't have an Android device but I could access my filesystem for my creative zen in dolphin on 4.10, it worked well, except that since they implemeted Googles silly requirement, it has to read the device as you display lower levels of the hieracrchy. My personal opinion is that linux's mtp behavior was fine and Androids timeout is what was stupid.
You could also try compiling go-mtpfs which should also work on Androids, and then mount it manually, and then use Thunar.
Another options is to use sshfs over the network instead of usb.
Use a card reader. It is a lot faster than PTP/MTP, and works without tweaking anything. The only "trick" is that your user must be in the plugdev group.
Alternatively, if your phone is running Android, then you can use an app called 3CX which allows you to connect to the phone via WiFi: https://play.google.com/store/apps/d...et.xdevelop.rm. It works through a browser, so your client platform can be anything... even other Android devices. It also has an FTP server, which is what I tend to use more than the browser because I find it less 'clunky'.
As I suspected everyone has had this sorted already. SSH - don't I need root on the Android? I mean to root the thing, but it's low on the priorities. Card Reader I have, and even bluetooth. Bluetooth is handy for getting files from PC, less convenient for sending to - maybe it's just my applications. Also, I have to know what the file is - how do you back up the phone book?
I believe, everything you need to do is to add udev rule, matching your device. In my case - I have HTC One X, Nexus 7 and Transformer Pad Infinity. I added following three strings:
To find out which idVendor corresponds to your device, just plug it in and as root issue
Code:
dmesg
command. For Example for HTC One X outpus is something like this:
Code:
usb 1-1.2: new high-speed USB device number 20 using ehci-pci
[ 7774.305645] usb 1-1.2: New USB device found, idVendor=0bb4, idProduct=0c02
[ 7774.305648] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 7774.305650] usb 1-1.2: Product: HTC
[ 7774.305651] usb 1-1.2: Manufacturer: HTC
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.