MTPconnect 0.9

Filemanagers, partitioning tools, etc.
Message
Author
slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#16 Post by slavvo67 »

I see. So it was probably the go-mtpfs that did something in the root. No worries. I'm just glad it works!

Best,

Slavvo67

gcmartin

#17 Post by gcmartin »

slavvo67 wrote:...something in the root. ...
Hi @Slavvo67,

You could alway create a relative link of the /mnt/Kindle in your root folder. That, I'm sure, will achieve your needs, too.

Hope this helps

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#18 Post by Ted Dog »

bump to top for Raj to find MTP :D

can8v
Posts: 586
Joined: Sat 15 Jul 2006, 08:20
Location: Yuba City, CA
Contact:

#19 Post by can8v »

slavvo67 wrote:I see. So it was probably the go-mtpfs that did something in the root. No worries. I'm just glad it works!

Best,

Slavvo67
That is a possibility, I know the first go-mtpfs that Tempestuous put out creates a folder /root/MTP (or similar, just going off memory). The new one creates /mnt/MTPdevice. MTPconnect however, doesn't use either of those directories. I decided two things a little late in the development cycle:
1.) That the mount point should include the device name reported by the device in the directory name.
2.) As soon as the device is disconnected the mount point should be cleaned up and the directory removed completely.
The reason for number 2 above that noncomputer savvy users or even nonlinux savvy users my see the empty directory after the device is disconnected and assume the computer think the device is still connected. Since most of these devices are WiFi enabled it entirely possible for people to even think the device is somehow still connected. They could even put files in that folder, then when MTPconnect would try to remount the device the next time they plug it in, it wouldn't work because there is a safety feature to keep you from mounting to a nonempty drive. This process of only have the mount point exist as long as the device is connected solved all of those problems.
Though I am wondering if your file manager is opening to the mount point of your device when you plug it in or if you are having to manually open it. Also which file manager are you using. I included support for most of the filemanagers in the Puppy landscape, but if it doesn't automatically open to the correct folder for your device then I may missed one.

can8v
Posts: 586
Joined: Sat 15 Jul 2006, 08:20
Location: Yuba City, CA
Contact:

#20 Post by can8v »

gcmartin wrote:
slavvo67 wrote:...something in the root. ...
Hi @Slavvo67,

You could alway create a relative link of the /mnt/Kindle in your root folder. That, I'm sure, will achieve your needs, too.

Hope this helps
This is a good point. I put the mount point under /mnt so it would be where all the other hard drives, CDs, DVDs, Blu-Rays, SD cards, Flash Drives, External drives, Cameras, etc. are mounted. I personally thought it made since to keep it together, but I know of at least one other person that als prefers it under root. I personally removed many of the folders in root and moved them outside the save file, so I no longer have to worry about it filling up all the time or constantly moving files, so it doesn't fill up. Also on my system any scripts that I write I keep outside of the save file, and symlink them into the /root/my-applications/bin directory or Startup directory, so that they not only don't take up space in my save file, but also are available to every pupppy I have installed (currently three of them). Sym linking things to your /root directory can be very beneficial.

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#21 Post by slavvo67 »

That sounds like a cool option for me. Thanks to all for your answers on this. Again, this is a great tool.

Best,

Slavvo67

flamingo
Posts: 4
Joined: Wed 04 Jun 2014, 23:00

Re: MTPconnect 0.9

#22 Post by flamingo »

Can you please help me debug this? I got referred to your link but I can not solve my problem. Am completely green.
I have installed these 3 files ( http://murga-linux.com/puppy/viewtopic. ... 018#777018) but as I am also completely unfamiliar with the linux Wary software I don't know how to find a file and uninstall it if I have to. Got this installed from a friend instead of Windows XP as that one was expiring.
Now I have a ZTE Blade G.
At least my computer detects now that there is a phone connected to it, There is a window showing that. But on my phone turning on MTP shows and empty ROX display. But if I turn on PTP for camera at least I get 3 different links. ( In earnest I don't even know what those acronyms mean). But when I open those links the window is all empty. It doesn't show any more items.

Can you please help?

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#23 Post by Flash »

I'll take a shot, though I don't know anything about MTP so all I can do is ask stupid questions. Still, one of them might get a useful answer. :)
First, are you sure there is actually something in the directory? Maybe the directory is showing empty because there is nothing in it. What happens if you try to copy a mp3 or jpeg file to the directory from Puppy? (Just drag the file from wherever you can find it to the empty MTP directory.)

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#24 Post by slavvo67 »

I'll try to help...

First, with MTP Connect, I initially couldn't tell it was working, either. Click on one of your drive icons sda2, sdb1, etc. and it will open up Roxfiler. Then go to the top left and click the green arrow-up. Now, you should see a list of mounted (and unmounted) drives. You should be able to pick out your phone or camera from that list. For example, my Kindle Fire was actually named kindle. So click on that and you should see your files.

To uninstall, you can usually use the Puppy Package Manager (or PPM). It's usually an icon with a little box and a dog's head sticking out. The word "Pet" is on the box. Be patient for a minute while it opens.

Now you are in the puppy package manager (which is somewhat of an auto installer of programs). On the bottom right should be a list of items identified as installed. If you identify the names of the 3 packages, you can click each one and have the Puppy Package Manager (PPM) uninstall.

If you are running Puppy from a CD, you can just shut down and choose not to save your changes. The items you manually installed will no longer be there when you reboot.

I hope this helps.

Best,

Slavvo67

nipotastro
Posts: 5
Joined: Wed 08 Oct 2008, 10:17

#25 Post by nipotastro »

:D

just tried on lupu with my sII.. it works fine!

thanks to all !

(lupu on hd - p4 2600 512 mb ram- Samsung SII standard)

User avatar
Anniekin
Posts: 246
Joined: Wed 25 Feb 2009, 00:15

#26 Post by Anniekin »

Nice! Works in alphaOS with simple-mtpfs instead with a little adjustment to the script (go-mtpfs in Arch depends on "go" from Google which is huge). Just one question, when do you consider all files as being closed and safe to unplug, does having the /mnt/phone directory open in the file manager count?

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#27 Post by vtpup »

Looks great, but unfortunately isn't working for me:

Acer Aspire 5349 laptop
Tahrpup 6.0
go-mtpfs-20130628
MTPconnect_0.9

Acer A1-830 tablet
Android 4.2.2

Go-mtpfs seems to work fine. But MTPConnect doesn't do anything when I connect the tablet via USB. In terminal I can type:

go-mtpfs MTPdevice and I get:

Code: Select all

2015/04/24 12:39:48 starting FUSE 70ad1f3 (2013-02-24 20:42:03 +0100)
And I can then open directories on the tablet in /mnt/MTPDevice/. But there is no auto connection when plugging in. Thanks in advance for any help!
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#28 Post by watchdog »

vtpup wrote:Looks great, but unfortunately isn't working for me:


Go-mtpfs seems to work fine. But MTPConnect doesn't do anything when I connect the tablet via USB.
The following post by 01micko was useful to me:

http://www.murga-linux.com/puppy/viewto ... 617#803617

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#29 Post by vtpup »

watchdog, do you mean use mtp_detect-0.15-noarch.pet as a replacement for MTPConnect.pet? I'm guessing they aren't compatible (from comments earlier in this thread).
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

MTPconnect 0.9

#30 Post by L18L »

watchdog wrote:The following post by 01micko was useful to me:

http://www.murga-linux.com/puppy/viewto ... 617#803617
Also for me, simply this:
01micko wrote:On some phones with 4.4 you may have to unlock the screen before plugging. I believe it's a security feature to protect from offline attack.

android 4.2.2
Thank you all.

EDIT
fix for rox:

Code: Select all

sed -i 's/type fox/type rox/' /root/Startup/MTPconnect.sh

User avatar
nubc
Posts: 2062
Joined: Tue 23 Jan 2007, 18:41
Location: USA

#31 Post by nubc »

Procedure to mount and unmount smartphone
________________________________________________________________________

1 cd /mnt

2 go-mtpfs MTPdevice
[After successful mounting, there is no command prompt available.]

3 After finishing work, Terminate 'go-mtpfs MTPdevice' in Pprocess
[After terminating process, command prompt becomes available again.]

4 fusermount -u MTPdevice
________________________________________________________________________

I tested and found that step 4 is necessary, After step 4 I can mount the device again (starting at step 2) without an issue and without rebooting, which is the goal.

If after a few days you try and find that the device won't mount, run step 4, fusermount -u MTPdevice, then start over. Reboot is not necessary.

april

#32 Post by april »

Running Precise 5.7.1 I tried installing these two pets which all seemed to go properly .

On reboot I do not have any menu entries I can see and when I plug in my Android 4 phone brings up a rox filer window which is empty . Putting files into it does not write the file to the phone.

Delving in it creates a directory I can see for the phone but there is nothing in it . lsusb shows it connected of course.

Using above post I can see the ZTE dierectory but get

Code: Select all

# cd ZTE
# ls
Phone storage  SD card
# cd "SD card"
# ls
ls: cannot open directory .: Input/output error
# cd "Phone storage"
bash: cd: Phone storage: Input/output error
Any help appreciated

I managed to get gmtp to run properly albeit slowly by installing a binary from here
http://packages.ubuntu.com/precise/i386/gmtp/download

EDIT Came back to get this again but it has disappeared as has everything "precise"
Last edited by april on Sun 04 Jun 2017, 02:02, edited 6 times in total.


Post Reply