LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-04-2013, 02:37 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
MTP for Poser Phones?


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?
 
Old 06-04-2013, 04:42 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.
 
Old 06-04-2013, 06:35 PM   #3
pataphysician
Member
 
Registered: Oct 2012
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 06-04-2013, 07:00 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by business_kid View Post
What is the laziest way into this in Slackware?
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'.

Last edited by rkelsen; 06-04-2013 at 07:10 PM.
 
Old 06-04-2013, 08:04 PM   #5
pataphysician
Member
 
Registered: Oct 2012
Posts: 77

Rep: Reputation: Disabled
Another option I just came across is gmtp and someone has a build for Slackware 14 and it seems to work with android, unlike mtpfs

http://www.ghettonet.org/2012/10/sam...le-access.html

http://gmtp.sourceforge.net/
 
Old 06-05-2013, 03:36 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Thanks, Guys.

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'll certainly try 3CX. Thanks to all.
 
Old 06-05-2013, 09:54 AM   #7
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Rep: Reputation: 60
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:
Code:
bash-4.2$ cat /etc/udev/rules.d/51-android.rules 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev"
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
 
Old 06-05-2013, 10:15 AM   #8
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 132

Rep: Reputation: 39
Somthing like:
Code:
# Google Nexus 7 MTP mode under JB 4.2+ : automatic mount & umount when plugged (USB debug on & off)
ENV{ID_MODEL}=="Nexus_7", ENV{ID_MODEL_ID}=="4e41", ACTION=="add", RUN+="/usr/bin/sudo -b -u <username> /usr/local/sbin/go-mtpfs -allow-other=true /media/Nexus7"
ENV{ID_MODEL}=="Nexus_7", ENV{ID_MODEL_ID}=="4e42", ACTION=="add", RUN+="/usr/bin/sudo -b -u <username> /usr/local/sbin/go-mtpfs -allow-other=true /media/Nexus7"
in the udev rules.d folder (in file 51-android.rules) once the go-mtpfs in installed should mount it (adjust the above
Code:
ENV{ID_MODEL}=="Nexus_7", ENV{ID_MODEL_ID}=="4e42"
for your device and <username> for your user)
 
Old 06-05-2013, 01:45 PM   #9
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
I use Airdroid on my Nexus 4 and avoid the MTP mess altogether.
 
Old 06-06-2013, 04:05 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by chess View Post
I use Airdroid on my Nexus 4 and avoid the MTP mess altogether.
Way to go. It looks good, but how do you send from pc --> phone? Am I missing something?
 
Old 06-06-2013, 05:57 AM   #11
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by business_kid View Post
Way to go. It looks good, but how do you send from pc --> phone? Am I missing something?
Airdroid lets you upload files.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pros and cons of Android phones, iPhones and Blackberry phones? puppymagic General 21 11-23-2010 07:33 AM
MTP Rao423 Linux - Embedded & Single-board computer 6 06-18-2010 04:02 AM
On slack-current: /usr/bin/mtp-getfile -> /tmp/package-libmtp/usr/bin/mtp-connect ? LuckyCyborg Slackware 3 05-03-2010 01:13 PM
Something like Poser 6 for Linux vvkozmenko Linux - Desktop 1 09-04-2006 05:09 AM
Poser!HP DVD burner cdrw mylothshipper Linux - Hardware 7 11-15-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration