Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-22 Thread Kyle Fazzari
On 03/22/2016 08:08 AM, tflidd wrote:
> Is there a way to run this image in a virtual environment?

Actually yes, but I wouldn't use this image. I suggest you grab the base
amd64 16.04 image from [1] and get it up and running in the virtual
environment of your choice, log into it with ubuntu/ubuntu, and install
the ownCloud snap with:

sudo snappy install owncloud

That should be equivalent to the rpi2 image, but be on amd64 instead.

[1]: http://people.canonical.com/~mvo/all-snaps/amd64-all-snap.img.xz

--
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
[email protected]



signature.asc
Description: OpenPGP digital signature
___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-22 Thread tflidd
Is there a way to run this image in a virtual environment?
___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-22 Thread interfaSys sàrl
> 
> 
> On 03/21/2016 07:22 PM, interfaSys sàrl wrote:
>> I've noticed both occ and php are now in the bin folder, but none of
>> them work.
>> 
>> ubuntu at localhost:~$ ./occ
>> occ: 5:
>> /writable/system-data/snaps/owncloud.canonical/9.0.0ubuntu1/bin/occ:
>> php: not found
>> ubuntu at localhost:~$./php
>> php: error while loading shared libraries: libmcrypt.so.4: cannot open
>> shared object file: No such file or directory
> 
> Ah, right, I forgot to mention that in my rather hurried email, my
> apologies. Try running:
> 
> sudo owncloud.occ

Ah, thanks, that works well :).
One step closer to a usable image :)


> 
> Exporting a binary in Snappy generates some wrapper scripts which are
> placed in /snaps/bin (such as owncloud.occ) with the environment
> correctly setup. Services are the same way, but for systemd units.
> 
> --
> Kyle Fazzari (kyrofa)
> Software Engineer
> Canonical Ltd.
> kyle at canonical.com


___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-21 Thread Kyle Fazzari
Hey Jos,

On 03/21/2016 01:39 PM, Jos Poortvliet wrote:
> Hi all,
> 
> So we tried to figure out what PHP modules were installed, but Snappy 
> confounded us ;-)
> 
> SSH-ing into the Pi and typing "php" gets you command not found, same with 
> any 
> of the other things we know are running underneath the ownCloud which works 
> just fine...

One of the main overarching differences between snaps and, say, debs, is
that snaps contain all their dependencies. Apache, PHP, MySQL, etc. is
all bundled into this single snap. We control the entire chain of
dependencies. This is a little confusing off the bat though, because it
means none of these things are available system-wide. For example, there
is no /var/www where all the web applications are. There is no
/etc/apache containing the configs. You can't even run php scripts
directly, because php is nested inside the snap-- not actually available
to call without some terminal gymnastics.

> Clearly, a 'snappy for dummies' is needed, I couldn't really find answers to 
> my 
> questions on the intarwebz either. I might write a blog for starters once 
> I've 
> learned about it :D
> 
> In the mean time, looking at the code in 
> https://github.com/kyrofa/owncloud-snap in the rolling branch (that's where 
> our image lives for now) I can't 
> really figure out how things work there, either.

Yeah that's probably not the best package to begin learning, either. You
can see some work in other branches to simplify things, but none of them
have landed quite yet. When we meet I'll take you through some simpler
examples so the basic concepts are more clear :) .

> Kyle, would you be able to give a quick rundown of the repo, what file does 
> what and where? For example, I found where ownCloud's config.php is but when 
> I 
> tried to see what PHP modules are included and how to modify that, I got 
> stuck 
> rather quickly. The only place I found PHP was in snapcraft.yaml but that 
> seems to be sparse build instructions or so? Or does this pull in deb's from 
> the repo? If debs, I see no php modules, in what section could we add "php-
> apcu"?

All the main dependencies are built from source. So including PHP
modules (assuming they're distributed in the PHP source) is usually as
simple as adding an --enable in [1] somewhere. Also, since PHP is an
apache module it's built in the same part as apache, thus the lack of
explicit PHP part (checkout the apache Makefile). APCu seems to be a
PECL package, and I haven't tried including any of those in a snap just
yet. Feel free to give it a try!

> If ok with you, I'll give you a call tomorrow to walk through this a bit and 
> I'll try and help document it ;-)

Tomorrow I have a beta freeze I really need to hit, but I can meet after
that.

[1]:
https://github.com/kyrofa/owncloud-snap/blob/rolling/src/apache/Makefile#L51

--
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
[email protected]



signature.asc
Description: OpenPGP digital signature
___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-21 Thread Kyle Fazzari
On 03/21/2016 07:22 PM, interfaSys sàrl wrote:
> I've noticed both occ and php are now in the bin folder, but none of
> them work.
> 
> ubuntu@localhost:~$ ./occ
> occ: 5:
> /writable/system-data/snaps/owncloud.canonical/9.0.0ubuntu1/bin/occ:
> php: not found
> ubuntu@localhost:~$./php
> php: error while loading shared libraries: libmcrypt.so.4: cannot open
> shared object file: No such file or directory

Ah, right, I forgot to mention that in my rather hurried email, my
apologies. Try running:

sudo owncloud.occ

Exporting a binary in Snappy generates some wrapper scripts which are
placed in /snaps/bin (such as owncloud.occ) with the environment
correctly setup. Services are the same way, but for systemd units.

--
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
[email protected]



signature.asc
Description: OpenPGP digital signature
___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-21 Thread interfaSys sàrl


> On 03/19/2016 09:43 AM, Jos Poortvliet wrote:
>> Hey Kyle,
>> 
>> We've been playing with the box at the Chemnitzer Linux Tage conf. A few 
>> things we noticed:
>> * it's ownCloud 8.2.2, any chance we can get it to 9.0?
> 
> Done. I had some issues with the upgrade, but sorted them today, so
> 9.0.0 has been released. Your device should automatically update (though
> you can make it happen faster via `sudo snappy update`).


Thanks!
I'm still experiencing huge issues though. As soon as I sync a folder
using the desktop client, the device stops responding to requests and
becomes totally unresponsive.
The only solution is a reset. Seems to be MySQL related and doesn't
always require a sync because I think the scanner triggers the same problem.


> 
>> * it has some issues, like with images previews and some other things, I am 
>> guessing (no, I know) some PHP modules are missing. Would be good to add 
>> those, we're currently trying to figure out which ones are missing. Snappy 
>> is new for us so that might take a bit ;-)
> 
> Yeah, imagick isn't in there. It isn't included in php7, so I haven't
> taken the time to get it included in the snap just yet. Thumbnail
> generation is mad slow on the rpi2 anyway, you might consider leaving it
> off for better performance ;) . Not a problem if you want it, though.

It's actually not that slow in my tests for the types which work (PNG,
gif), but some basic modules are missing.
Here is the list of what we need:
https://doc.owncloud.org/server/9.0/admin_manual/installation/source_installation.html#prerequisites

The imagick PECL extension is not required, but nice to have so that
people who want to have previews for more types can. It's only the 1st
thumbnail which takes a little bit of time to generate with some formats.


I've noticed both occ and php are now in the bin folder, but none of
them work.

ubuntu@localhost:~$ ./occ
occ: 5:
/writable/system-data/snaps/owncloud.canonical/9.0.0ubuntu1/bin/occ:
php: not found
ubuntu@localhost:~$./php
php: error while loading shared libraries: libmcrypt.so.4: cannot open
shared object file: No such file or directory


> 
>> Aside from that, we have performance work to do but honestly, it's not that 
>> bad. And just adding caching (apc) will already make a huge difference so 
>> I'm quite optimistic... And there's lots more on 
>> https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/performance_tuning.html
>>  we can do, so anybody on this list should feel very welcome to look over 
>> that and do a pull request that implements one or more of them ;-)
> 

The first step for current users is to turn off file-locking, until
Redis is added. I couldn't find a snap with it. Actually it's still
impossible to install any other snaps.

> Excellent! Indeed, the snap is a little bare-bones when it comes to
> performance tweaks, but they're pretty easy to add.

I agree, once Redis is in and occ works, we can tweak things with
scripts and apps

> 
> --
> Kyle Fazzari (kyrofa)
> Software Engineer
> Canonical Ltd.
> kyle at canonical.com

Cheers,

Olivier

___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-21 Thread Kyle Fazzari

On 03/19/2016 09:43 AM, Jos Poortvliet wrote:
> Hey Kyle,
> 
> We've been playing with the box at the Chemnitzer Linux Tage conf. A few 
> things we noticed:
> * it's ownCloud 8.2.2, any chance we can get it to 9.0?

Done. I had some issues with the upgrade, but sorted them today, so
9.0.0 has been released. Your device should automatically update (though
you can make it happen faster via `sudo snappy update`).

> * it has some issues, like with images previews and some other things, I am 
> guessing (no, I know) some PHP modules are missing. Would be good to add 
> those, we're currently trying to figure out which ones are missing. Snappy is 
> new for us so that might take a bit ;-)

Yeah, imagick isn't in there. It isn't included in php7, so I haven't
taken the time to get it included in the snap just yet. Thumbnail
generation is mad slow on the rpi2 anyway, you might consider leaving it
off for better performance ;) . Not a problem if you want it, though.

> Aside from that, we have performance work to do but honestly, it's not that 
> bad. And just adding caching (apc) will already make a huge difference so I'm 
> quite optimistic... And there's lots more on 
> https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/performance_tuning.html
>  we can do, so anybody on this list should feel very welcome to look over 
> that and do a pull request that implements one or more of them ;-)

Excellent! Indeed, the snap is a little bare-bones when it comes to
performance tweaks, but they're pretty easy to add.

--
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
[email protected]



signature.asc
Description: OpenPGP digital signature
___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-21 Thread Jos Poortvliet
Hi all,

So we tried to figure out what PHP modules were installed, but Snappy 
confounded us ;-)

SSH-ing into the Pi and typing "php" gets you command not found, same with any 
of the other things we know are running underneath the ownCloud which works 
just fine...

Clearly, a 'snappy for dummies' is needed, I couldn't really find answers to my 
questions on the intarwebz either. I might write a blog for starters once I've 
learned about it :D

In the mean time, looking at the code in 
https://github.com/kyrofa/owncloud-snap in the rolling branch (that's where our 
image lives for now) I can't 
really figure out how things work there, either.

Kyle, would you be able to give a quick rundown of the repo, what file does 
what and where? For example, I found where ownCloud's config.php is but when I 
tried to see what PHP modules are included and how to modify that, I got stuck 
rather quickly. The only place I found PHP was in snapcraft.yaml but that 
seems to be sparse build instructions or so? Or does this pull in deb's from 
the repo? If debs, I see no php modules, in what section could we add "php-
apcu"?

If ok with you, I'll give you a call tomorrow to walk through this a bit and 
I'll try and help document it ;-)

@everybody else: snappy's a brave new world, as it makes very clear the first 
time you log in over SSH. Go and play with it, it's fun. Then report back ;-)

Cheers,
Jos

On zaterdag 19 maart 2016 14:43:38 CET Jos Poortvliet wrote:
> On Thursday, March 17, 2016 4:11:57 PM CET Kyle Fazzari wrote:
> > Hey everyone.
> > 
> > Jos, Daniel and I have been working hard on an ownCloud Pi device
> > solution based on Snappy Ubuntu Core[1]. We're finally to the point
> > where we have something to share!
> > 
> > This solution is based on Snappy Ubuntu Core 16.04, which the astute
> > reader will notice is not yet released. Both Ubuntu Core and this
> > solution are in beta, but they're also both usable and we'd love to get
> > some people testing them!
> > 
> > So the ownCloud Pi device consists of a Raspberry Pi 2 and an external
> > hard drive. This solution provides two images-- one for the SD card, and
> > one for the external hard drive. The SD card is then used to boot, while
> > the hard drive is used for the writable stuff (including hosting the
> > ownCloud data, of course).
> > 
> > These images are located here:
> > http://people.canonical.com/~kyrofa/owncloud-pi/
> > 
> > Note that the images are compressed-- use unxz to decompress (or xzcat
> > if you want to do it on the fly while using `dd`). The `bootable.img`
> > should be flashed to the SD card, and the `writable.img` to the hard
> > drive. For a quick walkthrough of how to do that, or if you want to
> > 
> > generate your own images, go here:
> > https://github.com/owncloud/pi-image/tree/master/image-creation-tools
> > 
> > You'll notice there are actually three images there. The
> > `owncloud-pi.img` is for those of you who don't have an external drive
> > but would still like to test this out on your Raspberry Pi 2. In that
> > case, just flash that image to your SD card and away you go. Your
> > ownCloud data will simply go on the SD card with everything else.
> > 
> > After you've flashed both the SD card and the hard drive, you should be
> > able to insert the SD card, connect the hard drive, connect it to your
> > router via an ethernet cable, apply power, and (once it's up) visit
> > `owncloud.local`, where it'll ask you to create an admin account. The
> > rest should look familiar :) .
> > 
> > Note that you can also SSH to the device using `owncloud.local`; the
> > username/password is ubuntu/ubuntu. Keep in mind that this uses Snappy--
> > no apt-get, no .debs.
> > 
> > Again, this is in beta, and it could use some good testing if you're
> > willing. There are also many features we'd like to add if you want to
> > help, which is where I'll turn it over to Jos: the Man with the Vision.
> > Please let me know if you have any questions!
> 
> Hey Kyle,
> 
> We've been playing with the box at the Chemnitzer Linux Tage conf. A few
> things we noticed: * it's ownCloud 8.2.2, any chance we can get it to 9.0?
> * it has some issues, like with images previews and some other things, I am
> guessing (no, I know) some PHP modules are missing. Would be good to add
> those, we're currently trying to figure out which ones are missing. Snappy
> is new for us so that might take a bit ;-)
> 
> Aside from that, we have performance work to do but honestly, it's not that
> bad. And just adding caching (apc) will already make a huge difference so
> I'm quite optimistic... And there's lots more on
> https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/perfo
> rmance_tuning.html we can do, so anybody on this list should feel very
> welcome to look over that and do a pull request that implements one or more
> of them ;-)
> 
> We have to send a 'final' image to WD on Monday so any help is welcome!
> 
> Seriously, if you 

[owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-19 Thread Kyle Fazzari
Hey everyone.

Jos, Daniel and I have been working hard on an ownCloud Pi device
solution based on Snappy Ubuntu Core[1]. We're finally to the point
where we have something to share!

This solution is based on Snappy Ubuntu Core 16.04, which the astute
reader will notice is not yet released. Both Ubuntu Core and this
solution are in beta, but they're also both usable and we'd love to get
some people testing them!

So the ownCloud Pi device consists of a Raspberry Pi 2 and an external
hard drive. This solution provides two images-- one for the SD card, and
one for the external hard drive. The SD card is then used to boot, while
the hard drive is used for the writable stuff (including hosting the
ownCloud data, of course).

These images are located here:

http://people.canonical.com/~kyrofa/owncloud-pi/

Note that the images are compressed-- use unxz to decompress (or xzcat
if you want to do it on the fly while using `dd`). The `bootable.img`
should be flashed to the SD card, and the `writable.img` to the hard
drive. For a quick walkthrough of how to do that, or if you want to
generate your own images, go here:

https://github.com/owncloud/pi-image/tree/master/image-creation-tools

You'll notice there are actually three images there. The
`owncloud-pi.img` is for those of you who don't have an external drive
but would still like to test this out on your Raspberry Pi 2. In that
case, just flash that image to your SD card and away you go. Your
ownCloud data will simply go on the SD card with everything else.

After you've flashed both the SD card and the hard drive, you should be
able to insert the SD card, connect the hard drive, connect it to your
router via an ethernet cable, apply power, and (once it's up) visit
`owncloud.local`, where it'll ask you to create an admin account. The
rest should look familiar :) .

Note that you can also SSH to the device using `owncloud.local`; the
username/password is ubuntu/ubuntu. Keep in mind that this uses Snappy--
no apt-get, no .debs.

Again, this is in beta, and it could use some good testing if you're
willing. There are also many features we'd like to add if you want to
help, which is where I'll turn it over to Jos: the Man with the Vision.
Please let me know if you have any questions!

[1]: https://developer.ubuntu.com/en/snappy/

--
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
[email protected]



signature.asc
Description: OpenPGP digital signature
___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] ownCloud Pi Device: Snappy Ubuntu Core images available

2016-03-19 Thread Jos Poortvliet
On Thursday, March 17, 2016 4:11:57 PM CET Kyle Fazzari wrote:
> Hey everyone.
> 
> Jos, Daniel and I have been working hard on an ownCloud Pi device
> solution based on Snappy Ubuntu Core[1]. We're finally to the point
> where we have something to share!
> 
> This solution is based on Snappy Ubuntu Core 16.04, which the astute
> reader will notice is not yet released. Both Ubuntu Core and this
> solution are in beta, but they're also both usable and we'd love to get
> some people testing them!
> 
> So the ownCloud Pi device consists of a Raspberry Pi 2 and an external
> hard drive. This solution provides two images-- one for the SD card, and
> one for the external hard drive. The SD card is then used to boot, while
> the hard drive is used for the writable stuff (including hosting the
> ownCloud data, of course).
> 
> These images are located here:
> 
> http://people.canonical.com/~kyrofa/owncloud-pi/
> 
> Note that the images are compressed-- use unxz to decompress (or xzcat
> if you want to do it on the fly while using `dd`). The `bootable.img`
> should be flashed to the SD card, and the `writable.img` to the hard
> drive. For a quick walkthrough of how to do that, or if you want to
> generate your own images, go here:
> 
> https://github.com/owncloud/pi-image/tree/master/image-creation-tools
> 
> You'll notice there are actually three images there. The
> `owncloud-pi.img` is for those of you who don't have an external drive
> but would still like to test this out on your Raspberry Pi 2. In that
> case, just flash that image to your SD card and away you go. Your
> ownCloud data will simply go on the SD card with everything else.
> 
> After you've flashed both the SD card and the hard drive, you should be
> able to insert the SD card, connect the hard drive, connect it to your
> router via an ethernet cable, apply power, and (once it's up) visit
> `owncloud.local`, where it'll ask you to create an admin account. The
> rest should look familiar :) .
> 
> Note that you can also SSH to the device using `owncloud.local`; the
> username/password is ubuntu/ubuntu. Keep in mind that this uses Snappy--
> no apt-get, no .debs.
> 
> Again, this is in beta, and it could use some good testing if you're
> willing. There are also many features we'd like to add if you want to
> help, which is where I'll turn it over to Jos: the Man with the Vision.
> Please let me know if you have any questions!

Hey Kyle,

We've been playing with the box at the Chemnitzer Linux Tage conf. A few things 
we noticed:
* it's ownCloud 8.2.2, any chance we can get it to 9.0?
* it has some issues, like with images previews and some other things, I am 
guessing (no, I know) some PHP modules are missing. Would be good to add those, 
we're currently trying to figure out which ones are missing. Snappy is new for 
us so that might take a bit ;-)

Aside from that, we have performance work to do but honestly, it's not that 
bad. And just adding caching (apc) will already make a huge difference so I'm 
quite optimistic... And there's lots more on 
https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/performance_tuning.html
 we can do, so anybody on this list should feel very welcome to look over that 
and do a pull request that implements one or more of them ;-)

We have to send a 'final' image to WD on Monday so any help is welcome!

Seriously, if you got a pi drive earlier this year (or end of last year) - or 
not but want to help anyway - this is the time to help test and improve!

> [1]: https://developer.ubuntu.com/en/snappy/
> 
> --
> Kyle Fazzari (kyrofa)
> Software Engineer
> Canonical Ltd.
> [email protected]
> 
> 



signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel