Ask / Submit
0

How to transfer files from and to my SailfishOS device without developer mode enabled? [answered]

asked 2018-02-27 16:04:48 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-03-12 00:38:23 +0300

olf gravatar image

Since it is very simple to enable developer mode and use ssh swiss as swiss army knife for everything, it seems to me as rather hard task to upload my media files to Sailfish X device without this. What I found so far:

  • MTP - it is read only on my Debian (may be it is RW on Windows, havn't tested)
  • ssh - possible in developer mode only
  • CIFS - N/A
  • USB Mass storage - N/A
  • switch device OFF, remove SD, put it to PC, etc ... - last resort :)

have I missed something?

Edit (@olf):

Bluetooth file transfer (flaky), with a file-manager via Cloud storage (e.g. CargoDock), but also by starting an FTP-server on the phone (FTP Server by dipesh in OpenRepos or various FTP servers under AlienDalvik from F-Droid, e.g. primitive ftpd), SendToPhone (by mikol in Jolla Store), FishNetMount (various protocols; by korppi in OpenRepos), HTTP share folder (by schturman in OpenRepos), Dukto (Android, Linux, Windows, MacOS, bbOS 10) etc.

But IMO one should use the best tool for this purpose (rsync), either at the GUI with "Simple & quick file backup" or alternatively at the CLI (but then needs "Developer mode" enabled) as user nemo (just examples, needs to be adapted for your use case):

rsync -vvhhe ssh Documents/myDoc.txt nemo@<IP address>:Documents/  # Omit the "e ssh", if you do not want to use encrypted transfers

or

rsync -auvvhhe ssh Documents nemo@<IP address>:Documents  # See flags "a", "u" and others in rsync's man page.

To check that the data has been transferred and written correctly, one can use:

rsync -nc -auvvhhe ssh <src> <dest> | grep -vF " is uptodate"  # Should result in *total: matches=0  hash_hits=0  false_alarms=0 data=0*
edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by olf
close date 2018-03-12 00:38:52.280661

Comments

1

I use MTP (on Windows, yes it is RW).

Edz ( 2018-02-27 16:33:43 +0300 )edit
1

I use syncthing (syncdings on fdroid) and it's the best!

krisko ( 2018-02-27 16:59:47 +0300 )edit
1

Hi, MTP works fine on Windows and on Ubuntu 16.04, in both directions. Keeping media files in an SD card is not a bad idea, as Sailfish apps (Gallery, Mediaplayer) will find them in there.

jovirkku ( 2018-02-27 17:15:22 +0300 )edit
1

In my Debian MTP actually works alright, no complaints. You can also try FTP on PC and use the Midnight Commander built-in client to access it.

figgis-diggis ( 2018-02-27 20:50:36 +0300 )edit
1

MTP works just fine on my Ubuntu, so try to setup your Debian properly :)

coderus ( 2018-02-27 21:20:34 +0300 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2018-03-11 22:34:16 +0300

fanda gravatar image

After all investigations I'm using sshfs with developer mode enabled as the best solution. It wold be nice if I can have ssh access to media files without dev mode on, but I can live with this. Thank all for the answers.

edit flag offensive delete publish link more

Comments

It is definitely the best solution. Dev mode is not inherently bad in and of itself.

ScumCoder ( 2018-03-12 08:40:28 +0300 )edit
-1

answered 2018-02-27 22:35:27 +0300

ApB gravatar image

Everything sucks. Deal with it. There have been some webserver/browser over the air approaches but devs let them rot.

edit flag offensive delete publish link more

Question tools

Follow
3 followers

Stats

Asked: 2018-02-27 16:04:48 +0300

Seen: 825 times

Last updated: Mar 12 '18