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.
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.
gcobb ( 2014-02-17 21:09:56 +0200 )editThank 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.
melg01 ( 2014-02-17 23:47:08 +0200 )editcd to
/home/nemo/Downloads
Download cifs-utils source code (latest 6.3).here orthen
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:Now you can mount your cifs (samba) shares wherever you want. ;)
Regards,
J4ZZ ( 2014-02-19 05:10:07 +0200 )edit@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 lineworking 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.
melg01 ( 2014-02-28 16:02:35 +0200 )edit