Re: CUPS in a snap: Using content interface to connect printer driver snaps

2017-01-25 Thread Alberto Mardegan
On 25/01/2017 21:29, Till Kamppeter wrote: > So CUPS needs to provide a slot to take these files somehow and this > slot needs to accept any printer driver snap and any number of printer > driver snaps. > > Can one do this with the "content" interface? And if yes, how? Note: snapd developers are

Creating a snap using make or autotools

2017-01-25 Thread Luther Goh Lu Feng
This probably isn't the right place to ask, but I thought I should ask in case it does matter in the context of snapping: when creating a snap of say, a hello world program in C[1], should I use the make or autotools plugin? Is one better than the other when it comes to snap creation? A quick

Re: Relationship between snaps and containers, if any

2017-01-25 Thread Luther Goh Lu Feng
Thanks Mark, your explanation is clear. But I am also thinking along similar lines to Gustavo's suggestion of running a snap multiple times, and wondering if that is the same as having multiple docker processes. -- Luther On Wednesday, January 25, 2017 10:13 PM, Gustavo Niemeyer

Re: Version numbers for snap packages

2017-01-25 Thread Spencer
I totally disagree. Use Gaussian integers for your major version number and transcendental numbers for the minor. The product of these must not lie in the range between a pair of twin primes, unless your using the ratio of a circle's circumference to its diameter, the base of the natural

Re: Version numbers for snap packages

2017-01-25 Thread Kyle Fazzari
On 01/25/2017 03:56 PM, Joseph Rushton Wakeling wrote: > Hello all, > > Quick question about version numbering (as in, the `version:` field of > `snapcraft.yaml`). The logical choice here is to use the version of the > app being packaged, but what's the recommended way to handle changes to >

Version numbers for snap packages

2017-01-25 Thread Joseph Rushton Wakeling
Hello all, Quick question about version numbering (as in, the `version:` field of `snapcraft.yaml`). The logical choice here is to use the version of the app being packaged, but what's the recommended way to handle changes to the snap package alone that don't change the version of the

Re: CUPS in a snap: avahi-daemon needed

2017-01-25 Thread Till Kamppeter
On 01/25/2017 05:18 PM, Sergio Schvezov wrote: snapweb uses a small mdns implementation written in go; avahi is much more than that. That said, the original versions of snapweb, formerlly known as webdm did have a full blown avahi-daemon inside, but it is really cumbersome if not needed.

Re: CUPS in a snap: avahi-daemon needed

2017-01-25 Thread Sergio Schvezov
On Wed, 25 Jan 2017 13:43:43 -0500, Jim Hodapp wrote: > I'm not exactly sure how functional it is in the snapweb package, but you > can see that snapweb does package and use avahi to provide the ability to > type a mdns address into a browser to get to the snapweb store by default: > >

Re: CUPS in a snap: avahi-daemon needed

2017-01-25 Thread Till Kamppeter
On 01/25/2017 04:52 PM, Kyle Fazzari wrote: Well there's a difference between using avahi and just broadcasting mDNS yourself, which is what I believe snapweb does, correct? CUPS is not able to broadcast shared printers by itself. It registers them at avahi-daemon and avahi-daemon broadcasts

Re: CUPS in a snap: avahi-daemon needed

2017-01-25 Thread Kyle Fazzari
Well there's a difference between using avahi and just broadcasting mDNS yourself, which is what I believe snapweb does, correct? On 01/25/2017 10:43 AM, Jim Hodapp wrote: > I'm not exactly sure how functional it is in the snapweb package, but > you can see that snapweb does package and use avahi

Re: CUPS in a snap: avahi-daemon needed

2017-01-25 Thread Jim Hodapp
I'm not exactly sure how functional it is in the snapweb package, but you can see that snapweb does package and use avahi to provide the ability to type a mdns address into a browser to get to the snapweb store by default: https://github.com/snapcore/snapweb On Wed, Jan 25, 2017 at 12:29 PM,

CUPS in a snap: Using content interface to connect printer driver snaps

2017-01-25 Thread Till Kamppeter
Hi, I am currently snapping CUPS (both for server and for desktop/phone printing needs) and testing it on Ubuntu Core. Another reason to put CUPS into a snap is that one could also snap printer drivers to have them in a distribution-independent package format (so that manufacturers need to

CUPS in a snap: Need to create system group "lpadmin"

2017-01-25 Thread Till Kamppeter
Hi, I am currently snapping CUPS (both for server and for desktop/phone printing needs) and testing it on Ubuntu Core. Here I have found out that there is no "lpadmin" system group. Now I want to know how to create system groups and users out of a snap, so that they get created on

CUPS in a snap: avahi-daemon needed

2017-01-25 Thread Till Kamppeter
Hi, I am currently snapping CUPS (both for server and for desktop/phone printing needs) and testing it on Ubuntu Core. Here I have found out that there is no avahi-daemon (which CUPS needs for sharing local printers and for discovering remote network printers. Now I want to know what I

Re: Ubuntu Core: how the file-system works

2017-01-25 Thread Luca Dionisi
On Wed, Jan 25, 2017 at 3:16 PM, Jamie Strandboge wrote: > The security policy changes are merged in master and you will be able to > manipulate rt_tables by connecting the network-control interface in the > upcoming > snapd 2.22. Wooohooo! -- Snapcraft mailing list

Re: Relationship between snaps and containers, if any

2017-01-25 Thread Gustavo Niemeyer
Interesting.. I actually don't see that line between snaps and Docker. Just like you can run "docker run mysql" several times, one may run "mysnap.mysql" several times. In both cases the daemon will be visible to the external world via a separate port of the local host's public IP address. In both

Re: Ubuntu Core: how the file-system works

2017-01-25 Thread Jamie Strandboge
On Mon, 2017-01-23 at 21:30 +0100, Luca Dionisi wrote: > On Mon, Jan 23, 2017 at 6:28 PM, Jamie Strandboge wrote: > > > > I will be looking at the security policy side of this so if you can, please > > comment in the bug what specific commands you are using in your snap for

Re: DHCP and /etc/resolv.conf

2017-01-25 Thread Jamie Strandboge
On Mon, 2017-01-16 at 21:39 +, Joe Coates wrote: > I'm snapping an app which includes a DHCP client replacement.   Ultimately it > wants to update/replace /etc/resolv.conf. My snap is connected to all the > "network" interfaces available in my ubuntu-core, but none seem to allow write >

Re: Relationship between snaps and containers, if any

2017-01-25 Thread Mark Shuttleworth
The best way to think of this is to know that snaps are GREAT when you have a precise 1:1 relationship between "machines" and "running instances". And Docker is GREAT when you want an elastic relationship. So for example, if you want a MySQL "appliance" on a device, there will only ever be 1

Re: Configuring snapd on ubuntu core for a web proxy

2017-01-25 Thread Gustavo Niemeyer
*the local snapd On Jan 23, 2017 8:04 PM, "Gustavo Niemeyer" wrote: > Indeed, that smells like a bug, certainly because snap download doesn't > use the local snaps to actually download the file. That should be > transparent to the CLI though. > > Can you please file an

Re: Relationship between snaps and containers, if any

2017-01-25 Thread Loïc Minier
Hi Luther! Docker containers and snaps are different but sometimes overlap in solving certain classes of technical problems. For instance, "software distribution" as a broad problem is addressed by both snaps and Docker containers, but with very different implementations. First of all, yes you

Re: Snap install issues upon hard kill with Ctrl + c

2017-01-25 Thread Luther Goh Lu Feng
Indeed, the issue is resolved with a more updated version of snapd. Thanks! -- Luther On Wednesday, January 25, 2017 5:10 PM, Pawel Stolowski wrote: Hi, The ctrl+c behavior (bug #1596077 mentioned by Kyle) on snap install was fixed in December and released

Re: Snap install issues upon hard kill with Ctrl + c

2017-01-25 Thread Pawel Stolowski
Hi, The ctrl+c behavior (bug #1596077 mentioned by Kyle) on snap install was fixed in December and released shortly afterwards, at least in Ubuntu. The current version of snapd (2.20.1) in ubuntu should work - hitting ctrl+c now aborts the installation as expected: $ sudo snap install

Re: Yet more issues snapping

2017-01-25 Thread gareth . france
On 2017-01-23 21:44, Leo Arias wrote: On Wed, Jan 18, 2017 at 2:53 AM, wrote: It is ok now thank you. I have had some excellent help and can use what I now have to aid me going forward. It is those first few steps that seem impossible. Hey Gareth, I'm happy to