all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Pierre Neidhardt <pe.neidhardt@googlemail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: MTP & Guix
Date: Fri, 06 Jul 2018 23:57:44 -0400	[thread overview]
Message-ID: <87lgank893.fsf@gmail.com> (raw)
In-Reply-To: <877empbn1e.fsf@gmail.com> (Pierre Neidhardt's message of "Sat, 23 Jun 2018 16:22:21 +0200")

Hello,

Pierre Neidhardt <pe.neidhardt@googlemail.com> writes:

> Hi there!
>
> Do you people have recommendations when it comes to MTP (file sharing
> with mobile devices) support on GuixSD?
>
> Ideally I'd like something as straightforward as an auto-mounted folder
> which I can browse with my favourite file browser.
>
> I see Guix offers a few options:
>
> - jmtpgs
> - gmtp
> - libmtp
>
> What's your setup, people?

This is one of the things you'd think "must be dead simple" and then
loose a couple evenings trying to make work... eh!

I think the best option might be to have a running OpenSSH server on
your phone and use Emacs (tramp) to browse the files there (C-x f
/ssh:user@host:), but this probably requires to have rooted your phone.

Recently after finding that the Emacs builtin FTP browsing support
didn't work well with libre FTP servers (available on F-Droid) for
Android [0], someone suggested I could use Emacs with ADB (there is ADB
support in Tramp).  I just tried it now; works as well as any Dired
buffer :). It's documented in the chapter 5.3 External methods of the
Tramp manual.

Basically, add this to your ~/.emacs if you want it to connect
automatically to your device:

--8<---------------cut here---------------start------------->8---
(setq tramp-adb-connect-if-not-connected t)
--8<---------------cut here---------------end--------------->8---

And then fire it up using C-x C-f /adb::.

You need the cable for the initial adb connection, but after you
continue the connection over TCP/IP wirelessly, by doing [2]:

> adb shell ip -f inet addr show wlan0   # Find your phone's IP address
> adb tcpip 5555
> adb connect <your-device-ip>:5555

HTH :)

Maxim

[0]  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31691
[1]  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31691#14
[2]  https://stackoverflow.com/a/3623727/2896799

  parent reply	other threads:[~2018-07-07  3:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-23 14:22 MTP & Guix Pierre Neidhardt
2018-06-23 17:53 ` Ricardo Wurmus
2018-06-23 17:59 ` Thompson, David
2018-06-23 18:02   ` Pierre Neidhardt
2018-06-23 18:03     ` Thompson, David
2018-06-23 19:59       ` swedebugia
2018-06-23 20:25         ` Pierre Neidhardt
2018-06-24  9:30           ` Ricardo Wurmus
2018-06-24 10:01             ` Ricardo Wurmus
2018-06-24 15:12               ` Marius Bakke
2018-06-28 13:08                 ` GNOME updates (was: MTP & Guix) Ricardo Wurmus
2018-07-05 10:31   ` MTP & Guix Chris Marusich
2018-07-07  3:57 ` Maxim Cournoyer [this message]
2018-07-07  7:25   ` Pierre Neidhardt
2018-07-08 16:30     ` Maxim Cournoyer
2018-07-08 19:51       ` Pierre Neidhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lgank893.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=pe.neidhardt@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.