Re: classic snap fails to find libraries

2017-01-23 Thread Dan Kegel
I dunno if there's a bug open for it, but I mentioned another workaround earlier this month: https://lists.ubuntu.com/archives/snapcraft/2017-January/002307.html On Mon, Jan 23, 2017 at 7:49 PM, Leo Arias wrote: > After reading the other thread about a similar issue, I moved my > libraries to sta

Re: opengl on ubuntu core 16 on artik 10?

2017-01-10 Thread Dan Kegel
://plus.google.com/+KevinGunnCanonical/posts/KPfVvfTU3f6 > [3] https://plus.google.com/+KevinGunnCanonical/posts/3SDJjqCz3S9 > > > On Tue, Jan 10, 2017 at 10:36 AM, Dan Kegel wrote: >> >> > Did you run the oxide-eglfs-snap example on Pi? If so, do you still need >>

Re: opengl on ubuntu core 16 on artik 10?

2017-01-10 Thread Dan Kegel
> Did you run the oxide-eglfs-snap example on Pi? If so, do you still need > other platform to run opengl on ubuntu core? Thank you for the links! The Pi is awesome as a starting point for users, but is underpowered for some of our applications. It's attractive to have a faster/fatter alternative

Re: classic mode slow, taking up one full core with apparmor logging

2017-01-06 Thread Dan Kegel
10 AM, Dan Kegel wrote: > When building a c++ app on a raspberry pi 3 in classic mode, > I noticed two things that hurt performance substantially. > > 1) the obvious: if you crank config.txt's gpu_mem up above the > default, life is bad :-) Don't do that on build machi

classic mode slow, taking up one full core with apparmor logging

2017-01-06 Thread Dan Kegel
When building a c++ app on a raspberry pi 3 in classic mode, I noticed two things that hurt performance substantially. 1) the obvious: if you crank config.txt's gpu_mem up above the default, life is bad :-) Don't do that on build machines. 2) the not so obvious: apparmor is keeping systemctl's j

Re: snapd 2.20 release available in {xenial,yakkety}-updates

2017-01-05 Thread Dan Kegel
Can you say a few words about classic confinement? I didn't see doc... (Like the fact that you're supporting 14.04. Some large customers are stuck on that version still, could be handy.) On Thu, Jan 5, 2017 at 2:13 PM, Michael Vogt wrote: > Hi, > > > the new snapd version 2.20 is now available

Re: opengl on ubuntu core 16 on artik 10?

2017-01-05 Thread Dan Kegel
I crossposted the question to https://developer.artik.io/forums/t/opengl-on-ubuntu-core-16-on-artik-10/2234 including a link to the userspace driver library that someone mentioned. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/

Re: opengl on ubuntu core 16 on artik 10?

2017-01-05 Thread Dan Kegel
On Thu, Jan 5, 2017 at 10:50 AM, Zygmunt Krynicki wrote: >> has anyone tried artik 10 with ubuntu core 16, >> and what's the story with opengl there? > > I don't have access to that hardware so I don't know personally. If the > kernel and userspace contain the relevant code it should be OK in devm

opengl on ubuntu core 16 on artik 10?

2017-01-05 Thread Dan Kegel
Hi all, has anyone tried artik 10 with ubuntu core 16, and what's the story with opengl there? -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Snap portability between different boards?

2017-01-05 Thread Dan Kegel
Hi all, can snaps built on the pi run on the artik, and vice versa? A compatibility matrix might be handy. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

snappy core: "reboot scheduled to update the system"

2017-01-05 Thread Dan Kegel
Just noticed this message "reboot scheduled to update the system" during a long-running build. Fortunately I was there and could do shutdown -c. Presumably this is the gadget snap (raspberry pi 3), and a real appliance would control this so it doesn't happen during critical operations. Where can

snappy swap redux

2017-01-04 Thread Dan Kegel
Hi all, the ol' oom killer is getting me down. What's the kosher way of setting up swap in ubuntu core 16 (on raspberry pi)? https://lists.ubuntu.com/archives/snappy-devel/2016-March/001632.html mentions it should be done in a gadget. Is there a gadget tutorial? https://lists.snapcraft.io/archives

/snap/bin not on PATH for noninteractive ssh?

2017-01-04 Thread Dan Kegel
Does /etc/profile.d/apps-bin-path.sh not fire on noninteractive logins? Evidently not: $ ssh pi3 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games Workaround #1: make it fire, dammit: --- .bashrc.orig 2017-01-04 19:55:33.105726685 + +++ .bas

Re: Thinking of installing snap on Debian due to scarcity of snap packages for armhf

2017-01-03 Thread Dan Kegel
On Tue, Jan 3, 2017 at 9:49 AM, Leo Arias wrote: >> - Debian + snaps via snap > > This will give you a complete traditional system. Everything you > learned in debian and ubuntu before will just work. So it could be a > softer transition while you learn about snaps and your dependencies > are ship

Re: gnu screen does not work in classic?

2017-01-02 Thread Dan Kegel
That sounds handy. tmux works fine, though. On Mon, Jan 2, 2017 at 4:46 PM, Nick Moffitt wrote: > Dan Kegel: >> I tried to use 'screen' as usual to start a long-running job >> inside classic, but it failed because /proc/self/fd/0 was >> owned by root: > >

gnu screen does not work in classic?

2017-01-02 Thread Dan Kegel
I tried to use 'screen' as usual to start a long-running job inside classic, but it failed because /proc/self/fd/0 was owned by root: $ ssh user@host Welcome to Ubuntu Core 16 (GNU/Linux 4.4.0-1030-raspi2 armv7l) * Documentation: https://help.ubuntu.com * Management: https://landscape.cano

lxc not working in classic on pi?

2017-01-02 Thread Dan Kegel
I have a script from a classic ubuntu environment that wants to be able to create lxc containers on the fly. I tried running it on ubuntu core on the pi3, in the classic environment, but it failed: (classic)user@localhost:~$ sudo apt install lxc ... (classic)user@localhost:~$ sudo lxc-create -n f

Ubuntu core update corresponding to Zesty?

2016-12-16 Thread Dan Kegel
I need a newer gstreamer than is shipped in Ubuntu Core 16 (gst-omx doesn't build against 1.8, but does against 1.10). I can build the whole gstreamer stack from source, but going forward would like to avoid that. Is there a Ubuntu Core daily somewhere corresponding to Zesty? Or when Zesty's alpha

Re: opengl on ubuntu core on pi3?

2016-12-15 Thread Dan Kegel
On Thu, Dec 15, 2016 at 11:42 AM, Penk Chen wrote: > Maybe a bit off-topic, but I've got OpenGLES working on RPi2/3 with Qt, > using the eglfs_brcm backend from Broadcom's dispmanx/EGL driver. > > Here's a digital signage demo using it: > https://github.com/penk/oxide-eglfs-snap/tree/rpi2 Not off

Re: opengl on ubuntu core on pi3?

2016-12-15 Thread Dan Kegel
On Thu, Dec 15, 2016 at 10:34 AM, Stephen M. Webb wrote: >>> GLES is what I'm after. >>> but there are still some kernel issues to be solved to make the driver work properly. probably paolo pisati, kevin gunn or thomas voss can chime in here, these three are currently acti

Re: opengl on ubuntu core on pi3?

2016-12-15 Thread Dan Kegel
On Thu, Dec 15, 2016 at 9:44 AM, Dan Kegel wrote: > GLES is what I'm after. > >> but there are still >> some kernel issues to be solved to make the driver work properly. >> >> probably paolo pisati, kevin gunn or thomas voss can chime in here, >> these t

Re: opengl on ubuntu core on pi3?

2016-12-15 Thread Dan Kegel
On Thu, Dec 15, 2016 at 9:49 AM, Oliver Grawert wrote: >> way to test what they've got (what's the snap equivalent of a ppa?). > > a snap ;) Or, I suppose, a snap store... -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman

Re: opengl on ubuntu core on pi3?

2016-12-15 Thread Dan Kegel
On Thu, Dec 15, 2016 at 9:34 AM, Oliver Grawert wrote: > what is being worked on is GLES I was speaking loosely. GLES is what I'm after. (I would like to try testing it by running piglit and maybe glmark, using gles rather than plain old opengl.) > but there are still > some kernel issues to be

opengl on ubuntu core on pi3?

2016-12-15 Thread Dan Kegel
So, I installed ubuntu core 16 on my pi and verified that with classic I was able to build my little world. Next step: run an opengl program. So I created a local password, logged into the console, and ... what? startx isn't there, and even in classic, there's nothing in apt that looks especially

Re: Development environment for debs and snaps for raspberry pi 3?

2016-12-15 Thread Dan Kegel
On Thu, Dec 15, 2016 at 2:47 AM, Oliver Grawert wrote: > http://pad.lv/1650207 Thanks. I added a comment there asking for /etc/issue to be classic-ized, too. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/sna

Re: Development environment for debs and snaps for raspberry pi 3?

2016-12-14 Thread Dan Kegel
Trying the classic snap now. First hitch: /etc/lsb-release is not very classic, my scripts choke because it doesn't match normal ubuntu. I guess I can try special-casing them to pretend they see xenial there. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at

Re: can't log in on ubuntu core console via sso...

2016-12-14 Thread Dan Kegel
On Wed, Dec 14, 2016 at 11:21 AM, Michael Hudson-Doyle wrote: > Oh wait, I haven't made a subiquity release with that change yet. Sorry! > (Blame baby brain) All's well that ends well, thanks for the update! -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe a

Re: can't log in on ubuntu core console via sso...

2016-12-14 Thread Dan Kegel
On Wed, Dec 14, 2016 at 10:47 AM, Michael Hudson-Doyle wrote: >> i think we should show some info text so people are aware that they >> need to use the ssh login to create a password first to actually enable >> the console based login. > > That's exactly what I implemented. Do you not get it with

Re: can't log in on ubuntu core console via sso...

2016-12-13 Thread Dan Kegel
'5. Login'. Thanks for clarifying. - Dan On Tue, Dec 13, 2016 at 4:40 PM, Mark Shuttleworth wrote: > On 13/12/16 19:35, Dan Kegel wrote: >> I'm very confused. You have SSO. You tell people to create an SSO >> account to use the device. Yet SSO can't be

Re: can't log in on ubuntu core console via sso...

2016-12-13 Thread Dan Kegel
il you set a password. > > Cheers, > mwh > > sent from my phone, please excuse brevity > > On 14 Dec 2016 09:47, "Dan Kegel" wrote: > > Trying ubuntu core on the pi3 for the first time. Install went fine, > and I can ssh to the box just fine, > and I can do &

Re: can't log in on ubuntu core console via sso...

2016-12-13 Thread Dan Kegel
I agree. Hit it myself. > > --Greg > > On Tue, Dec 13, 2016 at 2:46 PM, Dan Kegel wrote: >> >> Trying ubuntu core on the pi3 for the first time. Install went fine, >> and I can ssh to the box just fine, >> and I can do 'sudo snap login myemail' ok,

Re: Development environment for debs and snaps for raspberry pi 3?

2016-12-13 Thread Dan Kegel
On Tue, Dec 13, 2016 at 11:52 AM, David Callé wrote: > An easy way to achieve this is to install the "classic" snap Ah, yeah, I'd forgotten about that, thanks. - Dan -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listi

can't log in on ubuntu core console via sso...

2016-12-13 Thread Dan Kegel
Trying ubuntu core on the pi3 for the first time. Install went fine, and I can ssh to the box just fine, and I can do 'sudo snap login myemail' ok, but I can't log in on the console. It doesn't seem to accept my launchpad userid and password :-( Is that related to http://askubuntu.com/question

Development environment for debs and snaps for raspberry pi 3?

2016-12-13 Thread Dan Kegel
Hi, I'm building debs and snaps for a raspberry pi 3. Questions: 1) when last I did this, https://ubuntu-pi-flavour-maker.org/ was the best place to get real ubuntu for the pi 3 (the one listed on the ubuntu wiki didn't boot reliably). Is that still true? What do other folks use? 2) if one were t

Re: Shared content example - ubuntu-app-platform

2016-11-30 Thread Dan Kegel
On Fri, Nov 11, 2016 at 6:46 AM, Timo Jyrinki wrote: > I hinted at this earlier but 'ubuntu-app-platform' (name bikeshedded a > few times) is now there offering a huge amount of libraries via > content interface. We're using it for some builds of for example > Calculator, Calendar and other apps,

Re: [NEWS] Ubuntu built with Qt

2016-11-11 Thread Dan Kegel
Hrmf. Seems like Qt and snappy should be listed in http://dfkoz.com/iot-landscape/ I say this because the people at my company looking for IoT frameworks are looking at that page. On Thu, Nov 3, 2016 at 9:45 PM, Zoltán Balogh wrote: > Hi, > > nice news about the synergy between Qt and Ubuntu: >

Re: Client authentication for private snap stores?

2016-11-01 Thread Dan Kegel
t; >> In the Ubuntu store, IIRC we support several approaches you can take >> advantage of: >> >> - snaps scoped to a specific device >> - snaps priced for purchase (like a phone app store) >> >> ... and combinations of those, where prices can be set fo

Client authentication for private snap stores?

2016-11-01 Thread Dan Kegel
We might like to have snap stores which require a client to have a certain certificate to be able to connect and download packages, just as one can do with apt. I think the way go works, the word 'Certificates' would be in the source tree for snapd if this were already supported but I don't se

Re: Configuring apparmor / seccomp for a snap to allow sendmsg and mkfifo?

2016-10-25 Thread Dan Kegel
On Tue, Oct 25, 2016 at 6:33 AM, Jamie Strandboge wrote: > Instead of using an abstract or anonymous socket, use a named socket and put > in > SNAP_DATA Sounds very doable, I'll try. > It is planned to allow snaps via > seccomp arg filtering policy the ability to create S_IFIFO and S_IFREG file

Re: "path must be relative" in filesets is holdover convention from debian packaging, causes grief

2016-10-24 Thread Dan Kegel
On Mon, Oct 24, 2016 at 11:21 PM, Didier Roche wrote: > You have the parts//install directory, which is your target > for your parts installation. All files are there (and DESTDIR is set to > there). It sounds then normal to not rely on absolute path, but only > relative one to reference those, an

Configuring apparmor / seccomp for a snap to allow sendmsg and mkfifo?

2016-10-24 Thread Dan Kegel
I'm trying to snap a largish package; works fine in devmode, but as the app likes to use unix sockets and fifos, it fails in confined mode with $ sudo /snap/bin/snappy-debug.security scanlog = AppArmor = Time: Oct 24 11:41:09 Log: apparmor="DENIED" operation="sendmsg" profile="snap.foo" pid=8536 c

"path must be relative" in filesets is holdover convention from debian packaging, causes grief

2016-10-24 Thread Dan Kegel
Hi! When generating snapcraft.yaml from e.g. CMakeLists.txt for a large project, I wanted to exclude some dev files which live at a configuration-dependent location, e.g. filesets: dev: - -@FOO@/include - -@FOO@/lib/*.a - -usr/share/doc Can you spot the usabilit

Re: add-apt-repository and snapcraft cleanbuild?

2016-10-16 Thread Dan Kegel
Thanks! (Though to restate the obvious, just referencing ppa's isn't quite enough, also need to be able to reference private apt servers.) On Sun, Oct 16, 2016 at 9:36 AM, Leo Arias wrote: > FWIW, here's the bug: https://bugs.launchpad.net/snapcraft/+bug/1493081 > You can subscribe there to get

Re: Variables in snapcraft.yaml?

2016-10-15 Thread Dan Kegel
=foo, and support ${joe-bob} and ${billyjoe}, or whatever variables the author cares to define. On Sat, Oct 15, 2016 at 3:29 PM, Leo Arias wrote: > On Sat, Oct 15, 2016 at 12:49 PM, Dan Kegel wrote: >> >> Thoughts? > > > I would like to hear yours instead :) > &g

Variables in snapcraft.yaml?

2016-10-15 Thread Dan Kegel
I'm snapping an app that uses a library. The library has its major number in its package name and directories, as is customary. I'd like to use the same snapcraft.yaml even when the major number of the library changes (we build several versions all the time), except perhaps for changing a variable

add-apt-repository and snapcraft cleanbuild?

2016-10-15 Thread Dan Kegel
Hey all, Day 3 of using snapcraft, and I've managed to get both piglit and a proprietary app snapped and running. Snapcraft's learning curve is not too steep, kudos. Problem: I can't do 'snapcraft cleanbuild' on my proprietary apps because they depend on packages in a ppa and/or a private apt repo