Re: network namespaces

2017-02-22 Thread Luca Dionisi
The workaround did the job. Thanks. On Tue, Feb 21, 2017 at 6:53 PM, Jamie Strandboge <ja...@canonical.com> wrote: > On Tue, 2017-02-21 at 12:39 +0100, Luca Dionisi wrote: >> Are network namespaces supported in snaps? >> >> In my RaspberryPi3 I have a snap which has be

network namespaces

2017-02-21 Thread Luca Dionisi
Are network namespaces supported in snaps? In my RaspberryPi3 I have a snap which has been installed with --devmode. Inside the snap I have exposed the command 'bash'. I exec that bash as root. Then I try to create a network namespace. It fails. $ sudo myapp.bash # ip netns add ns0

Re: After last "snap refresh" problem with contents of /writable/system-data/etc/iproute2.

2017-02-17 Thread Luca Dionisi
Ok. Thanks. On Fri, Feb 17, 2017 at 3:49 PM, Oliver Grawert <o...@ubuntu.com> wrote: > hi, > Am Freitag, den 17.02.2017, 15:30 +0100 schrieb Luca Dionisi: >> Hi all >> >> I was in need to modify the file /etc/iproute2/rt_tables, but it was >> read-only on

Re: tcpdump armhf

2017-02-13 Thread Luca Dionisi
Yes, classic. Thanks for the reminder. --Luca On Mon, Feb 13, 2017 at 12:48 PM, Alan Pope <alan.p...@canonical.com> wrote: > Hi Luca, > > On 13 February 2017 at 11:34, Luca Dionisi <luca.dion...@gmail.com> wrote: >> This tool is not installed in the "core"

tcpdump armhf

2017-02-13 Thread Luca Dionisi
For debugging my app, I need to run "tcpdump" on my Ubuntu Core based Raspberry Pi. This tool is not installed in the "core" snap. A run of "snap find tcpdump" returns 0 results. What's my best move? Make a snap on my own and use launchpad snap-builders to produce the one for armhf? --Luca --

Re: Where to save stuff (in snap-agnostic way)

2017-02-06 Thread Luca Dionisi
On Mon, Feb 6, 2017 at 6:19 PM, Jamie Strandboge <ja...@canonical.com> wrote: > On Sat, 2017-02-04 at 15:53 +0100, Luca Dionisi wrote: >> Although I wouldn't spend too much on this IPC issue (the IPC task is >> needed only for a testing tool that I won't deploy anywhere) in o

Re: Where to save stuff (in snap-agnostic way)

2017-02-04 Thread Luca Dionisi
The results are the very same (apart for "namespace") on a real machine, so the LXD container shouldn't be the cause. On Sat, Feb 4, 2017 at 12:14 PM, Luca Dionisi <luca.dion...@gmail.com> wrote: > More in context: > > In a classic Ubuntu (but inside a LXD container) I ru

Re: Where to save stuff (in snap-agnostic way)

2017-02-04 Thread Luca Dionisi
On Sat, Feb 4, 2017 at 11:43 AM, Oliver Grawert <o...@ubuntu.com> wrote: > hi, > Am Freitag, den 03.02.2017, 21:04 +0100 schrieb Luca Dionisi: >> What is the best place to write (and read) a temporary FIFO file from >> a confined snap application? >> This is for

Re: Where to save stuff (in snap-agnostic way)

2017-02-04 Thread Luca Dionisi
Thanks all for the answer. There's a catch, though. I just checked in a classic Ubuntu what the XDG_RUNTIME_DIR env is set to for root. And, surprise, it's not set. So, since my app has to run as root, it seems that I'll have to check this possibility too. --Luca On Sat, Feb 4, 2017 at 3:47 AM,

Where to save stuff (in snap-agnostic way)

2017-02-03 Thread Luca Dionisi
What is the best place to write (and read) a temporary FIFO file from a confined snap application? This is for simple IPC between 2 processes of the same snap. Before attempting to snap the application I was using a fixed filename in /tmp. Admittedly poor solution. The solution should be usable

Re: Unable to ssh to RPi3 after initial configuration of Ubuntu Core

2017-02-03 Thread Luca Dionisi
Just a couple of hints. 1. Double check username. It might be different than that of the email you use to signon at Ubuntu. E.g. my mail is luca.dion...@gmail.com while user on my RPi is luca-dionisi. 2. Try flag "-v" with ssh. Check the id_rsa* files that it tries with. On Fri, F

Re: Vala and Snapcraft. Issues with a library part in Vala.

2017-02-02 Thread Luca Dionisi
BX_VAPIDIR) On Thu, Feb 2, 2017 at 6:52 PM, Luca Dionisi <luca.dion...@gmail.com> wrote: > On Thu, Feb 2, 2017 at 4:55 PM, Sergio Schvezov > <sergio.schve...@canonical.com> wrote: >> Does your configure have something like >> >> ./configure --with

Re: Vala and Snapcraft. Issues with a library part in Vala.

2017-02-02 Thread Luca Dionisi
On Thu, Feb 2, 2017 at 4:55 PM, Sergio Schvezov wrote: > Does your configure have something like > > ./configure --with-extra-vapi-dir > > ? > > If so, try doing > > parts: > my-part: > source: ... > plugin: autotools > configflags: >

Re: Vala and Snapcraft. Issues with a library part in Vala.

2017-02-02 Thread Luca Dionisi
tory /usr/share/vala/vapi is searched by default by valac, the lack of this line was not a problem until now. I need some trial and error test now. I'll keep you posted on progress. On Wed, Feb 1, 2017 at 11:29 PM, Luca Dionisi <luca.dion...@gmail.com> wrote: > I am already doing "aft

Re: Vala and Snapcraft. Issues with a library part in Vala.

2017-02-01 Thread Luca Dionisi
mylib-x: > ... > mylib-y: > ... > after: [mylib-x] > > This will include both mylib-x and mylib-y in your snap and ensure > that mylib-x is built before mylib-y is. > > Joe > > On Wed, Feb 1, 2017 at 10:01 AM, Luca Dionisi <luca.dion...@gmail.com> wro

Re: Vala and Snapcraft. Issues with a library part in Vala.

2017-02-01 Thread Luca Dionisi
This is another solution that I thought of. I want to put the library mylib-y (the one that is needed by mylib-x) both in the ./stage tree and in the /usr/ prefix of the host system where I prepare the snap. Is there a way to tell snapcraft to do so? It should be similar to the way one can use

Re: Vala and Snapcraft. Issues with a library part in Vala.

2017-01-31 Thread Luca Dionisi
Sadly the CMakeLists look to me like a mess. Do you know of any example snap of a dependency on a vala library using autotools? -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Re: Vala and Snapcraft. Issues with a library part in Vala.

2017-01-31 Thread Luca Dionisi
On Tue, Jan 31, 2017 at 4:49 PM, Michael Hall wrote: > The compiler should automatically look for it in ./stage/ but you need > to make sure that your library is listed in the after: [] stanza on your > application part, so that it will be built and staged for your app to

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: Ubuntu Core: how the file-system works

2017-01-23 Thread Luca Dionisi
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 using > rt_tables so I can repeat tham and make sure they are

Re: Ubuntu Core: how the file-system works

2017-01-23 Thread Luca Dionisi
On Mon, Jan 23, 2017 at 5:26 PM, Gustavo Niemeyer wrote: > It's definitely possible. It's just not very convenient yet. > > For tests, easiest might be to bind mount your modifications at runtime. Ok, thanks. bind mount. -- Snapcraft mailing list

Re: Ubuntu Core: how the file-system works

2017-01-23 Thread Luca Dionisi
Hi all I see that the issue has been taken care of. I will immediately download a daily-build image and check that the file rt_tables is writeable. I haven't built a snap for my app yet, so I cannot test for the moment if my needs are all already fitted in the builtin interfaces. I will try as

Re: Ubuntu Core: how the file-system works

2017-01-21 Thread Luca Dionisi
On Fri, Jan 20, 2017 at 6:43 PM, Oliver Grawert wrote: > yes, please start by filing it under the snappy umbrella [1] project > and we'll add the necessary bug tasks for all bits and pieces involved > then. Done. While I wait for it to be fixed, is there a way to build a custom

Re: Ubuntu Core: how the file-system works

2017-01-20 Thread Luca Dionisi
On Fri, Jan 20, 2017 at 5:33 PM, Mark Shuttleworth <m...@ubuntu.com> wrote: > On 20/01/17 08:03, Luca Dionisi wrote: >> If I understand it correctly, an unconfined app will be able in the >> system >> to do whatever my standard user would be able to. For instance, if

Ubuntu Core: how the file-system works

2017-01-20 Thread Luca Dionisi
Hi all, I am planning to build a raspberry-based gadget and I would rather use Ubuntu Core on it. So I am right now using it on a KVM in order to see how it works. First of all I need to understand how the file-system works. Because I need to edit some system files. My first question to the