Owncloud Plugin guide

Status
Not open for further replies.
Joined
Oct 27, 2015
Messages
2
Hello all

Disclaimer: I am a complete FreeNAS noob.

I have just gotten my first FreeNAS box up and running and it's working beautifully on my home network. I would like to free myself from the shackles of dropbox and get Owncloud up and running. However, I can't find a good guide to setting up the Owncloud plugin on FreeNAS 9.3. That may be because it is self-explanatory to most users but it's not to me :)

I have found DrKK's and Joshua Parker's guides. However, they seem to focus on manual configuration of Owncloud and is likely overkill for my needs. I just want Owncloud up and running with the plugin.

I hope you can help or point me in the right direction.

Kind regards
SB
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
just select owncloud and press install on the Plugins tab. then click the link to your owncloud in the left panel of the freenas webui under plugins. put in your admin credentials and now its setup.
 

kdbaumann

Explorer
Joined
Mar 19, 2013
Messages
50
Fast question. What are the admin credentials for this? Ie; I have the plugin installed and I can get to the webpage for the jail, but I can't find a way to create admin credentials. How do I create those? Or are their default ones?

I created a user, by ssh'ing into the jail and creating a user. But that doesn't let me do admin on the service.

Thanks in advance. I have spent the last two hours looking and can't seem to find the answer.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
When you install the owncloud plugin and first browse to that jail, it will ask you to create an admin account. Enter an id and password you want to use for that account, and then click the Finish Setup button. I don't know what authentication backend the plugin is using, but I'd be surprised if it were other than its own internal account database.
 

kdbaumann

Explorer
Joined
Mar 19, 2013
Messages
50
Yes.

So I had to delete this Jail because the button failed to grab my attention the first time around and there is NO way to create an admin account after that without having intimate knowledge of UNIX. But I got it fixed. Thanks!
 

MontyD

Explorer
Joined
Apr 17, 2016
Messages
76
How do you mount your storage from your freenas box to the ownncloud?
 
Joined
Dec 2, 2015
Messages
730

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Also, don't mount it under /media. owncloud uses this for more than just files, it also keeps its database and metadata here.
I recommend moutning it somewhere like /mnt/files, then use the owncloud's "external storage support" app to make this folder available to your owncloud user(s)/group(s).
 
Joined
Dec 2, 2015
Messages
730
Also, don't mount it under /media. owncloud uses this for more than just files, it also keeps its database and metadata here.
I recommend moutning it somewhere like /mnt/files, then use the owncloud's "external storage support" app to make this folder available to your owncloud user(s)/group(s).
What is the advantage to using the "external storage support" app? Why not add the /mnt/files dataset to the owncloud jail? Adding the dataset to the owncloud jail avoids the need to configure the "external storage support" app.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
What is the advantage to using the "external storage support" app? Why not add the /mnt/files dataset to the owncloud jail? Adding the dataset to the owncloud jail avoids the need to configure the "external storage support" app.
You still need to mount the desired dataset as you stated.

The reason for the "external storage app" is to access files not in owncloud's data-directory. You shouldn't modify files under /media directly as owncloud will not know of your changes. By using the app I mentioned, you can set a rescan interval, owncloud knows these mountpoints (not the same as Jails > Storage mounts) are actually modified by other protocols. Which could be CIFS/NFS/whatever.

https://doc.owncloud.org/server/9.0...files/external_storage_configuration_gui.html
 

ovizii

Patron
Joined
Jun 30, 2014
Messages
435
OK, so now I have owncloud, mounted a dataset into /mnt/files added access to it via external storage support BUT:
- how do I stop users simply uploading into the jail and not into this mounted storage?
- if I have multiple users, can I mount multiple datasets and limit each users access just to the correct dataset?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
OK, so now I have owncloud, mounted a dataset into /mnt/files added access to it via external storage support BUT:
- how do I stop users simply uploading into the jail and not into this mounted storage?
- if I have multiple users, can I mount multiple datasets and limit each users access just to the correct dataset?
* You can maker a user's "/" a location on that dataset, then they can't upload anywhere else.
* yes
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Any hint on how that is done? The manual doesn't yield anything:
https://doc.owncloud.org/server/9.0...r/user_configuration.html#creating-a-new-user
there's no mention of that in users area because its not a standard thing. it's only applicable to the "external storage support" app. here's where it's covered.
https://doc.owncloud.org/server/9.0/admin_manual/configuration_files/external_storage/local.html

I think a folder name of "/" is what you're trying to do.
 

ovizii

Patron
Joined
Jun 30, 2014
Messages
435
ah, thanks, I see but unfortunately it seems you can not save that external storage once you set the folder name to "/" - with any other name it works. So I guess this will not work or has anyone successfully done this before?
Using ownCloud 9.0.1 (stable)

###edit### => https://forum.owncloud.org/viewtopic.php?t=24226
all I can find is a thread about owncloud 7 explaining you can mount to some local folder name, save, then manually edit the mount.json file and redact the local folder name to point to "/"
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ah, thanks, I see but unfortunately it seems you can not save that external storage once you set the folder name to "/" - with any other name it works. So I guess this will not work or has anyone successfully done this before?
Using ownCloud 9.0.1 (stable)

###edit### => https://forum.owncloud.org/viewtopic.php?t=24226
all I can find is a thread about owncloud 7 explaining you can mount to some local folder name, save, then manually edit the mount.json file and redact the local folder name to point to "/"
I used '/' in testing with version 6.0 but haven't used the "external storage app" since then.

You may want to look at this
https://doc.owncloud.org/server/9.0...ion_files/external_storage_configuration.html
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes, looks like it doesn't work anymore with OC 9
I foudn some documentation for editing the config.php https://doc.owncloud.org/server/9.0...tion_server/config_sample_php_parameters.html to globally change the data path and a forum thread helping: https://forum.owncloud.org/viewtopic.php?f=37&t=7118

I guess I'll give this a try, thanks for your support!
editing the data-directory path is probably not what you intend to do. You do not what to edit files under sabnzbd's data-directory from any protocol other than through owncloud.
If all you want is owncloud's data-direcotry to reside on a dedicated dataset you can snapshot/backup that shouldn't be too difficult.

But if you need to modify files other than through owncloud, that's when you should be using the external storage app.
 

ovizii

Patron
Joined
Jun 30, 2014
Messages
435
hm, then that is a conundrum :-(

The situation is quite simple:
A family is sharing a NAS, each person has its own folder and is using it via a CIFS share.
I now want to add the possibility to access it and sync via OC.
So basically, each user account in OC only needs access to his own folder/share whatever is easier.
The problem though is that I cannot set a folder/share as the users root /

Do you see any solution to this situation?

btw. I can't seem to get the command line tools to work with OC 9 (installed via this plugin) as explained here: https://doc.owncloud.org/server/9.0..._server/occ_command.html#files-external-label (yes my external storage app is active)
 
Status
Not open for further replies.
Top