[...] I was trying to install NextCloud into a Qubes R3.2 machine [...]
[...] I wanted to test it out for internal Qubes sharing among AppVMs. I think
an external VPS NextCloud install might be a next step for sharing
between networks. That seems like it would be a bit easier to setup, but it would be a somewhat different use case. [...]
Looking through past messages here it seems that others have gotOwnCloud and NextCloud working. I wonder if they were able to do thiswith bind-dirs, or whether they had to use a StandaloneVM.
There are some other aspects of NextCloud aside from the file sharinglike Calendar, Contacts, Notes and others that might also me nice tohave internally.
I am doing/have mostly finished doing the same thing. Installing Nextcloud in Qubes was a huge pain for me, the version on the fedora repository is version 10 and its up to version 14 now. So you can either manually install it, which was difficult, or follow the instructions provided by the fedora documentation and manually upgrade it one step at a time(painfully slow, but what I ended up doing).
To get data persistance you will need to make the data folder to some spot in /rw (which is saved in an appvm between boots). I chose /rw/nextcloud/data and also added /rw/nextcloud/apps because version 13/14 has that folder too. There are discussions in the nextcloud forums how to get nextcloud to like the change. But note, I could not get it to work outside of version 13 on up, probably due to Qubes being Qubes.
https://help.nextcloud.com/t/howto-change-move-data-directory-after-installation/17170/3
To get user configurations to work between reboots, and also kind of a bonus in security, you have to go in the templatevm of nextcloud, open a terminal as root, and manually add users. The users will show up in the AppVM of nextcloud and for the most part it seems everything works fine.
I also have set up a secondary storage pool with a NAS drive attached and installed the nextcloud appvm there. https://www.qubes-os.org/doc/secondary-storage/
I am still sorting out how to get it accessible remotely without punching a big hole in Qubes' security but have some other obligations holding me back for now.
So effectively I think we are looking at doing the same things here but its been a pretty uphill battle for me so I hope these links help. I wasnt going to bother writing anything up yet since its not really finished/I have no clue what I am doing most of the time.
On 2018-11-25 13:35, 799 wrote:
[...]
> I was also interesting in sharing be specific files between AppVMs
> without the need to use qvm-copy.
> I am currently using a combination of sshfs and encfs or cryfs. This
> allows me to mount specific folders from one AppVM. This data is
> encrypted in the "Storage-"AppVM and can only be decrypted in the
> AppVM which mounts the data.
[...]
That Storage AppVM idea sounds quite interesting. I'll be interested to
take a look at those docs when it's ready.