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

# Using network file shares: smbclient in Mer repository and compiling?

A difficult title, but an urgent question... I really need to access CIFS (aka SMB or Windows) file shares through WiFi/WLAN. Those are typically server shares, so there is no way to install additional software on those, the solutions I need has to support the official protocols. I don't mind doing this through the command line, but there is no smbmount (kernel) or smbclient (samba) available on Jolla and I didn't found samba packages in the Mer repository at http://releases.sailfishos.org/sdk/latest/mer-tools/builds/armv7hl/packages/armv7hl/

Did someone manage to compile samba or at least smbclient? Any hints for doing this? Could someone eventually add this package for Arm to the Mer repository? And yes, this question is somehow related to https://together.jolla.com/question/2618/support-for-network-file-sharing-aka-samba/ but more specific.

edit retag close delete

If your need is urgent, use ES File Explorer (Android app). I have suggested this as a partial answer to the other question as well.

( 2014-02-17 21:09:56 +0300 )edit

Thank you. And yes, I do like and use ES File Explorer on my Android phone already, it's quite a good app indeed. Nevertheless, I'd expect to have for this requirement a native Sailfish OS, and a start with a command line version would be a first great step. I have to admit, that for real business use I still use my Android device, sad, but that's how things are.

( 2014-02-17 23:47:08 +0300 )edit
4

cd to /home/nemo/Downloads Download cifs-utils source code (latest 6.3).here or

wget ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-6.3.tar.bz2


then

pkcon install gcc
pkcon install make


Extract source with tar xvjf cifs-utils-6.3.tar.bz2 Then navigate to cifs-utils-6.3 (cd /home/nemo/Downloads/cifs-utils-6.3) and issue:

./configure

make

make install


Now you can mount your cifs (samba) shares wherever you want. ;)

Regards,

( 2014-02-19 05:10:07 +0300 )edit
1

@J4ZZ Thanks! Great hint, and installing gcc + make and compiling cifs-utils was an easy thing. First I tried to connect and mount (as root user) a share with mount -t cifs -o user= ... but it didn't work, because the user name was taken from the USER environment variable.

In fact, the correct command to use is mount.cifs -o = ... , like on the following command line

mount.cifs -o username=myname,password=mypass //server.my.domain/sharename /mnt


working perfectly now, just filenames with non ansi characters in the name may pose some problems. This seems to be related to some specific utf-8 library missing.

( 2014-02-28 16:02:35 +0300 )edit

Sort by » oldest newest most voted

Hello,

I would like to install smbclient on Jolla X. it seems it not on pkcon. can sources be download (from were) and installed as explained upper ? or is it going to break down sailfish.

thanks for any help.

more

2

Hi @clementb, just read the comments in the OP above. You will find a link to sources and a description how to compile, install and configure.

( 2017-11-17 22:00:59 +0300 )edit

Moi @lakutalo, thanks for help (:-) New to Sfos, i was thinking MER is on PC with app dev SDK (so once install on SKD, it will be installed on target with your app). Now i understand it's also on phone = back on trail. so, i have got gcc & make installed. it seems wget is not install & not on pkcon repo. but git is working and cifs-utils now available from : https://wiki.samba.org/index.php/LinuxCIFS_utils#Download with git clone git://git.samba.org/cifs-utils.git.

Is source correct ? (check before runing install, i wouldn't like to break Sfos X).

pleased to have been helped. have a nice day.

( 2017-11-22 23:37:41 +0300 )edit