We have moved to a new Sailfish OS Forum. Please start new discussions there.

Support for network file sharing, aka samba

asked 2013-12-26 14:36:53 +0300

onion gravatar image

updated 2013-12-26 14:40:23 +0300

Kontio gravatar image

Support for network sharing using samba over WiFi (and why not using USB networking too).

No need for a USB cable for sharing files and also much more reliable than the current USB MTP support (that for some reason Linux desktops always seem to have problems with) connection and it would be very easy to connect from any system that supports SMB network shares.

Could be done with a simple samba package with no system integration but obviously integration with the device would be much nicer, for example bringing up/down the sharing service when network is up/down. Or for example enable sharing on home/work WiFi only.

edit retag flag offensive close delete


Well, SMB protocols comes with security risk, now think of connecting to public WiFi with SMB shares you forgot to disable ( I know AP isolation should hiide you rpresence to others, tho on certain APs i've been able to connect toother PC shares even if AP isolation was on). On the other hand I miss bluetooth filesharing.

Xeno_PL ( 2014-02-19 21:31:39 +0300 )edit

You can do the share over a USB network connection only. That is secure enough imho.

onion ( 2014-03-13 11:51:42 +0300 )edit

3 Answers

Sort by » oldest newest most voted

answered 2015-06-23 00:01:27 +0300

V10lator gravatar image

updated 2015-06-26 05:40:27 +0300

Now available on OpenRepos.net: https://openrepos.net/content/v10lator/samba :)

In case you installed the rpm from my Dropbox before remove it (pkcon remove samba) before installing the OpenRepos.net version!

edit flag offensive delete publish link more


Hey V10lator, great work. I'll try it out as soon as possible. But first I want to hear if your phone DOES explode or not :-)

Question: Do you put in a default smb.conf in /etc/smbd or does it have to be added manually?

Another Question: What about memory footprint?

Larswad ( 2015-06-23 12:01:44 +0300 )edit

The phone doesn't explode, no. :) Anyway, I would love if somebody with more skills could have a look at the rpm to confirm it's correct.

1st release is ready, just waiting for a place to release it to (openrepos isn't fast in adding new publishers it seems). Newest screenshots:

image descriptionimage description

Please note that what you see there isn't included in the rpm linked before.

V10lator ( 2015-06-23 12:20:59 +0300 )edit

V10lator: It looks.absolutely bada$$! Downloading and testing now...I'll be back. Please let me know if you need help with translation into Swedish on GUI part.

Larswad ( 2015-06-23 23:34:15 +0300 )edit

V10lator: Please correct me if i'm wrong but should'nt this be started as a systemd service using systemctl?

Larswad ( 2015-06-23 23:46:28 +0300 )edit

V10lator: Two things: Tried the command line version. Seems to work just fine. Since you are not able yet to put up on openrepos, could you put up a new rpm with the GUI in it? Secondly, see if you can use -O3 for optimization in the build and whether it reduces size even more.

Larswad ( 2015-06-24 11:34:58 +0300 )edit

answered 2013-12-26 14:44:37 +0300

pnuu gravatar image

In Linux (maybe with OSX, too?) it is possible to use sshfs for mounting the phone, eg. the home directory:

sshfs nemo@<phone-ip-address>:/home/nemo/ /your/local/mount/point/

This isn't a real cross-platform solution, and also requires that the developer mode is enabled, but might be useful for some.

edit flag offensive delete publish link more


Yes, I've used ssh myself, but need to think about non-developers and Windows people too. Samba would be a more generic solution.

onion ( 2013-12-26 14:47:01 +0300 )edit

Yes, generic and easy-to-use solution should be developed.

I think that it should support autodiscovery of available shares (e.g. avahi/bonjour style), but it could also include a possibility to create smb-share from your Jolla device also.

What do you think?

LaruX ( 2013-12-26 14:52:44 +0300 )edit

Also SSH uses encryption by default - while this is nice on an untrusted WiFi network, there is some performance penalty, that could be avoided when using a secure network/USB networking.

On the other hand anyone knows how samba handles encryption, it at all ? :)

MartinK ( 2013-12-26 15:19:21 +0300 )edit

I tried win-sshfs and it seems to work. Only there is bug when connection is lost, might need to unmount/mount manually.

kimmoli ( 2014-01-10 13:25:08 +0300 )edit

answered 2014-02-17 21:07:54 +0300

gcobb gravatar image

This is only a partial answer, but note that ES File Explorer (an Android app that can be downloaded from many app stores) is a good option for SMB access on Jolla (and a good many other file-related things). Of course, as an Android app, it only sees the contents of /data/sdcard but it can still be used to move files using two steps.

In any case, this is something I would expect to see in an app, not in the core Jolla environment. I suggest adding the app-request tag and removing feature-request.

edit flag offensive delete publish link more


samba is a native unix/linux solution. It is a core sharing feature of my BlacKBerry Z10. Why should a pretty basic linux system feature be app based ?

onion ( 2014-02-18 10:16:11 +0300 )edit

@onion. In my mind, whether something is a core feature of the OS is irrelevant to whether it should be a core feature of the phone. I don't want Jolla spending valuable developer cycles implementing something that could be done by an app, unless it is a core capability needed by everyone. I would much rather Jolla improved the email app considerably than tried (and failed) to beat ES File Explorer at its game. If they could persuade that developer to port that app to a native app they would do much more for us than implementing a limited smb sharing option.

gcobb ( 2014-02-18 14:06:11 +0300 )edit

@gcobb: What is intended here is a samba server, not a samba client. Besides, an android based one is out of the question when this already is a common linux package.

Larswad ( 2015-06-23 12:05:53 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2013-12-26 14:36:53 +0300

Seen: 2,301 times

Last updated: Jun 26 '15