Ask / Submit

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

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

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 +0200

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


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



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

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

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

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

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 +0200 )edit

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 +0200 )edit

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

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

2 Answers

Sort by » oldest newest most voted

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

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


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

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

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

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



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

Seen: 660 times

Last updated: Mar 12 '18