Datasets available via OwnCloud and CIFS?

Status
Not open for further replies.

oguruma

Patron
Joined
Jan 2, 2016
Messages
226
I have owncloud setup using the DrKK instructions using lighttpd and sqlite. I have one striped ZFS drive , and 2 drives in ZFS Mirror.

I am interested in being able to share everything on the FreeNAS via Owncloud, and still have the CIFS shares mapped as normal. Basically, I want to be able to use the CIFS shares on my PCs, but the Owncloud App on my mobile devices.

Is this feasible? Or is it intended so that the stuff uploaded via owncloud is completely separate from your normal datasets?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
yes.
the proper way to do this is to use the External Storage owncloud app.
either...
* mount the dataset into your jail, and use a local mount to make it accessible for your specified users/groups
* install the needed smbclient, and use a CIFS mount to make it accessible for your specified users/groups
 

zoomzoom

Guru
Joined
Sep 6, 2015
Messages
677
Out of curiosity, is the PC running Windows and do you want to access CIFS shares as normal due to the convenience of integration within explorer? If it's the latter, attached is a registry file to add ownCloud to the nav tree in explorer, directly above "This PC".
  • Lines 29 & 45 will need to point to the ownCloud folder path
 

Attachments

  • Add-OwnCloud-to-Explorer.reg.txt
    2 KB · Views: 295

oguruma

Patron
Joined
Jan 2, 2016
Messages
226
I basically want to use CIFS for the Windows PCs, and then the OwnCloud virtual file system for android/IOS devices (since these obviously lack CIFS support).
 

zoomzoom

Guru
Joined
Sep 6, 2015
Messages
677
I basically want to use CIFS for the Windows PCs, and then the OwnCloud virtual file system for android/IOS devices (since these obviously lack CIFS support).
Android supports CIFS... I use ES File Manager (they also offer a Pro version).
  • It includes a lot of features I don't use, however the network shares management is top notch. The app is also security conscious, allowing you to password protect the network management tab, preventing access unless a password is entered (actual password, not pin).

Sent from my Nexus 6 using Tapatalk
 
Last edited:
Joined
May 10, 2016
Messages
6
yes.
the proper way to do this is to use the External Storage owncloud app.
either...
* mount the dataset into your jail, and use a local mount to make it accessible for your specified users/groups
* install the needed smbclient, and use a CIFS mount to make it accessible for your specified users/groups
Being completely new to this environment, could you be a bit more specific?
Is mounting the dataset the same as add storage dialog which I gather maps the new dataset to the existing data?

While I guess I should be embarrassed to ask how does one install an smbclient? I downloaded one as suggested on the OwnCloud site, but don't have a clude how to install it. I'm new to Linux. I see there is a Shell dialog on the plugin page. Is there a command to use? The plug in I downloaded went to the windows computer. was there another way?

While I'm at it could you point to specific instructions on how, for a newbie like me, to change the access to the ownCloud portal to https? And how do I get a certificate ?

Sorry to be so ignorant, but trying.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Being completely new to this environment, could you be a bit more specific?
Is mounting the dataset the same as add storage dialog which I gather maps the new dataset to the existing data?

While I guess I should be embarrassed to ask how does one install an smbclient? I downloaded one as suggested on the OwnCloud site, but don't have a clude how to install it. I'm new to Linux. I see there is a Shell dialog on the plugin page. Is there a command to use? The plug in I downloaded went to the windows computer. was there another way?

While I'm at it could you point to specific instructions on how, for a newbie like me, to change the access to the ownCloud portal to https? And how do I get a certificate ?

Sorry to be so ignorant, but trying.
the first mount I am referring to is the freenas add storage dialog, the second is in the external storage mounts specific settings in the admin settings of owncloud.

as for the smbclinet (which is the leff efficient solution) i think this should work, but I've never tried this way
'pkg install pecl-smbclient'
freenas isn't Linux =P

the plugin comes with https already working using a self signed certificates. just browse to https://JAIL_IP instead of http://JAIL_IP
if you want to use a different certificate you would need to generate this somehow, there's dozens of guides of how to do this for free or cheap. then replace the Apache's certificate and key at /usr/pbi/owncloud-amd64/etc/apache24/
 
Joined
May 10, 2016
Messages
6
the first mount I am referring to is the freenas add storage dialog, the second is in the external storage mounts specific settings in the admin settings of owncloud.

as for the smbclinet (which is the leff efficient solution) i think this should work, but I've never tried this way
'pkg install pecl-smbclient'
freenas isn't Linux =P

the plugin comes with https already working using a self signed certificates. just browse to https://JAIL_IP instead of http://JAIL_IP
if you want to use a different certificate you would need to generate this somehow, there's dozens of guides of how to do this for free or cheap. then replace the Apache's certificate and key at /usr/pbi/owncloud-amd64/etc/apache24/
 
Joined
May 10, 2016
Messages
6
Many thanks for the quick response. I guess I'm really lost.

I entered the command and a whole stream of messages and commands followed. When I go back to the External Storage dialog (after restarting owncloud it still says:
External Storage

Note: "smbclient" is not installed. Mounting of SMB / CIFS, SMB / CIFS using OC login is not possible. Please ask your system administrator to install it.
Folder name External storage Authentication Configuration

My objective is to simply use the plug in to enable me to access the files on the FreeNas server remotely. (So far, nothing much has worked with this plug-in except literally copying files via drag and drop to the ownCloud files surface. The desktop client said it had synched, but the data never show up in the ui. ) But I really don't want to copy the data, just have an external path so when I'm away I can access my files over the internet. Am I taking the wrong approach?

Here is the storage in the Freenas Jails screen:
upload_2016-5-20_20-19-45.png
upload_2016-5-20_20-19-45.png


Thanks again for the help. BTW, sorry I now know FreeBSD is a Unix version. :)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
when I made that post you first referenced, I thought it was clear that there were two solutions. one uses smbclient, the other uses the Jail > Add Storage. you are trying to do both which doesn't make sense.

Let's try the Add Storage method.
you have the storage mounted in the jail, now use the settings in ownclouds admin page.
use a 'local' mount from a users folder to /CloudData
https://doc.owncloud.org/server/9.0/admin_manual/configuration_files/external_storage/local.html
 
Joined
May 10, 2016
Messages
6
when I made that post you first referenced, I thought it was clear that there were two solutions. one uses smbclient, the other uses the Jail > Add Storage. you are trying to do both which doesn't make sense.

Let's try the Add Storage method.
you have the storage mounted in the jail, now use the settings in ownclouds admin page.
use a 'local' mount from a users folder to /CloudData
https://doc.owncloud.org/server/9.0/admin_manual/configuration_files/external_storage/local.html
Many Thanks! You are correct that I misunderstood your original post.
I tried your suggestion, and after a tries, have succeeded! Interestingly, this configuration does not allow me to modify the data or folders from my owncloud server access , but does allow me to upload to them from the Android app.

Now, all I need to do is securely set it up so I can access this cloud from the internet and I'm all set.

Thanks again for your help and patience with a true newbie to this environment.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Many Thanks! You are correct that I misunderstood your original post.
I tried your suggestion, and after a tries, have succeeded! Interestingly, this configuration does not allow me to modify the data or folders from my owncloud server access , but does allow me to upload to them from the Android app.

Now, all I need to do is securely set it up so I can access this cloud from the internet and I'm all set.

Thanks again for your help and patience with a true newbie to this environment.
By android app, do you mean an owncloud app or CIFS app?
If the owncloud webinterface isn't working for upload/modification it's probably permission related.
owncloud's user 'www' (UID=80) needs write permissions on those folders.
 
Status
Not open for further replies.
Top