[00:44] https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/1472829 [00:44] Ubuntu bug 1472829 in goget-ubuntu-touch (Ubuntu) "ubuntu-device-flash fails to flash latest image: /tmp/diskimage890136169/assets/vmlinu?-*: no such file or directory" [Undecided,New] [03:14] balloons === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === erkules_ is now known as erkules [06:47] good morning [07:10] good morning [07:17] Good morning o/ [07:19] hey fgimenez and davidcalle, good morning! [08:08] Saviq, err ... looking at bug 1472788 ... dont you need to pipe something into snappys stdin ? [08:08] bug 1472788 in Snappy "snappy config does not work from stdin" [Undecided,New] https://launchpad.net/bugs/1472788 [08:09] ogra_, maybe, but shouldn't it just wait for me to type? [08:10] ogra_, sry, that's what "stdin" means to me ;) [08:10] didn't try piping, but that might very well be [08:10] note that i dont know if it works :) but thats what stdin means to me [08:16] ogra_, btw, I noticed uboot's env has a eth hwaddr set, should we (could we?) use that? [08:16] Saviq, http://paste.ubuntu.com/11846901/ [08:16] (that was UTC before) [08:16] ogra_, was it not Europe/Berlin before? ;) [08:17] right [08:17] ogra_, maybe it's just a doc issue then, or maybe it's a PEBKAC on my side [08:18] for what do you want to use hwaddr ? [08:20] ogra_, to set eth0 MAC [08:20] why do you want to set it ? [08:20] (instead f using the one the device has imprinted) [08:21] ok well, the latter would be fine for me, too [08:21] just noticed it there [08:21] wasn't sure if it was imprinted elsewhere [08:21] yeah, i have a fix for that pending ... [08:22] the MAC comes from the blob (who is the only one able to actually read it from the board) ... i have code here that hands it over to uboot [08:22] next image will have that [08:23] ok coolz === conyoo is now known as conyoo|AW [09:02] Good morning all; happy Sugar Cookie Day! 😃 === conyoo|AW is now known as conyoo [09:35] Saviq: “snappy config ubuntu-core -- -” works [09:36] Chipaca, that waits for you to type? looks undocumented then :) [09:37] Saviq: yes [10:05] ogra_: you around? [10:05] yes, but i try to get thinner [10:06] (bad joke, i know) [10:06] http://instantrimshot.com/ [10:06] ogra_: https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/1472829 [10:07] :) [10:07] Ubuntu bug 1472829 in livecd-rootfs (Ubuntu) "ubuntu-device-flash fails to flash latest image: /tmp/diskimage890136169/assets/vmlinu?-*: no such file or directory" [Undecided,New] === dholbach_ is now known as dholbach [10:07] Chipaca, that should be fixed already [10:07] oooh [10:07] ogra_: already where/how? [10:07] i'm getting that bug right now, 's blocking me [10:08] hmm, vivid ? [10:08] me? wily [10:08] ah [10:08] weird [10:08] weird werewolf works too [10:09] ogra_: 2.329? [10:09] aha [10:10] there was a quoting error in sergiusens MP ... i thought i fixed all occurences ... seems there is another one [10:10] sure, blame sergiusens today that he's not here :) [10:11] he uses globbing in variable content ... but later quotes the vars when using them ... the quoting suppresses the globbing [10:12] http://paste.ubuntu.com/11847452/ === greyback__ is now known as greyback [10:13] lel [10:14] uploaded [10:14] i'll trigger a new build once everything migrated [10:14] ogra_: thanks. any idea how long that'll take? [10:14] the publisher can take 30min ... [10:14] plus build time then [10:15] (image build time that is) [10:15] 1h or so i guess ... or a bit more [10:16] * Chipaca thinks of the xkcd comic about compiling [10:17] ogra_: ext2 is fragile in the face of abrupt power loss; fat32 is usually already there because a lot of SoCs will read the SPL from the first bootable fat partition or similar [10:18] lool, well, i have the unfounded feeling that vfat causes many of our issues ... [10:18] ogra_: in general, we dont particularly insist on the latest u-boot, we just need specific features to be supported and turned on, such as HUSH (more advanced commands than defaults), fat write support and such [10:18] lool: surely fat32 is just as fragile wrt power loss as ext2? [10:19] right ... the fatwrite bit still scares me here ... hush support is years old [10:19] maybe more so? i don't remember it having back up tables [10:20] Chipaca: fat32 does have backup table and simpler format; there is no recovery process in fat32 but usually the data is still there while with ext2, a typical fsck after an unclean shutdown will result in missing or empty files [10:20] u-boot doesn't support any kind of journal like ext3 or ext4 [10:20] well, and you usually dont need it [10:20] so it becomes a critical moment to write to the ext2 fs, while fat32 is less so IMO [10:20] though usually people also dont write files from uboot to the fat [10:21] but then again I dont even if u-boot has write support for ext2 [10:21] ogra_: we do, we write the stamp file [10:21] lool, people :) ... i know what *we* do ;) [10:22] but frankly we're discussing two equally half good options [10:22] and it scares me that we every now and then seem to end up with file or filesystem corruption ... even though we already try to do everything to avoid that [10:22] ogra_: yes we break stuff right? === chihchun_afk is now known as chihchun [11:28] Chipaca, building ... https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/wily/ubuntu-core-system-image [11:28] ogra_: wee :) [11:39] Chipaca, and ready ... looking at the log it should be fine now ... let me know if it isnt [11:45] ogra_: now i'm back to getting the double map panic === chihchun is now known as chihchun_afk [12:05] Chipaca, well, thats a udf thing i fear [12:05] the hardware.yaml should at least be fine now [12:06] ogra_, snappy upgrade still fails to boot the new partition with today image, was the fix supposed to be in the new image? [12:07] or does it require to have some new bits in the snappy install from the system-a disk? [12:07] seb128, it was supposed in the image from ~30min ago [12:07] +to be [12:08] the one before had an issue [12:08] why? [12:08] because there was wrong quoting in the MP [12:08] oh, there was another quoting bug [12:08] right [12:08] yeah, I saw your fix [12:08] but that was yesterday [12:08] I didn't see there was another round [12:09] there was an upload today too [12:09] need to rekick personal as well [12:09] or did you do that? [12:09] no, but you dont have the code yet [12:09] sergiusens said "after we confirmed it works" ... which we havent yet [12:10] and while this particular issue is fixed nopw, there seems to be something else still [12:10] shrug [12:10] see Chipaca above [12:10] k [12:10] I'm unsure it makes sense to "test on core before doing the change on personal" [12:10] imho having it on both allows to stay in sync and do extra testing [12:10] but oh well [12:10] do you prefer having both broken instead ? [12:11] personal is currently buggy anyway [12:11] upgrade boots to a systemd recovery [12:11] ok, confirmed, hardware.yaml and the assets dir match now [12:12] * ogra_ closes the bug [12:36] Chipaca, looks all fine here http://paste.ubuntu.com/11848094/ [12:36] yeah, this thing is weird and intermittent (but right now i'm stuck with it) [12:37] ah, heh, but i end up at a grub prompt [12:38] i assume grub also needs to learn about versioned kernel and initrd now [12:48] hmm, how do i debug that [12:49] ogra_: um [12:49] ogra_: wait 3 seconds? [12:50] seb128, yesterday after your EOD we discovered that the snappy scope doesn't really fit into the the snap packaging architecture so well... so we've gone back to making it a .deb [12:51] Chipaca, and then ? [12:51] kyrofa, ok, just curious but what's the issue with snaps? [12:51] seb128, do you anticipate having it set up in the CI somehow so I can land packages in there through the train? [12:51] was it discussed on this channel? [12:51] (just to know if I should read the irclog) [12:51] ogra_: and then it just boots [12:52] kyrofa, yeah, having it in CI would be nice [12:52] Chipaca, "grub>_" .... thats all i get here [12:52] seb128, indeed it was-- look for the last mention of my nick yesterday [12:52] seb128, but I can give you a quick overview [12:52] blinking cursor [12:52] kyrofa, thanks, but I'm going to read the log first and I might ping you for extra details then ;-) [12:53] seb128, sounds good [12:53] seb128, so the scope is already in CI, it's jut not going through the train (just autolanding) [12:57] Chipaca, that doesnt look like udf creates a proper grub.cfg http://paste.ubuntu.com/11848214/ [12:57] * ogra_ sees no entries at all for any kernel/initrd [12:57] ogra_: it worked here :-/ [12:57] ogra_: that's not grub.cfg [12:57] Chipaca, you mean with the current image ? [12:58] ogra@anubis:~/datengrab/kvm$ pastebinit /mnt/EFI/ubuntu/grub/grub.cfg [12:58] http://paste.ubuntu.com/11848214/ [12:58] i mean i used udf just now and finally got a wily rolling thing working [12:58] thats grub.cfg :) [12:58] weird [12:58] * ogra_ re-runs udf [12:58] ogra_: http://pastebin.ubuntu.com/11848223/ [12:59] yeah, definitely not whats in my image [13:01] ogra@anubis:~/datengrab/kvm$ ubuntu-device-flash --version [13:01] unknown flag `version' [13:01] oh ... come on ! [13:01] ogra_: heh, patches welcome! [13:02] * ogra_ has 0.25-0ubuntu1 [13:03] ogra_: 0.26 [13:03] 0ubuntu1wtfbbqftw [13:03] bah, so someone didnt update the trusty version in the PPA [13:03] ogra_: you're using software so old it's starting to red-shift [13:04] i'm using supported SW on my production systems :P [13:04] wow [13:04] https://launchpad.net/~snappy-dev/+archive/ubuntu/tools [13:04] the PPA is even at 0.23 [13:04] niiice [13:04] let's blame rsalveti [13:04] yeah [13:04] at least he's here today [13:04] * ogra_ blames [13:05] we only update tools when we do a release [13:05] so once we release the stable update we'll migrate thhe packages from tools-proposed [13:05] what is happening? :-) [13:05] more breakages from sergiusens ? [13:05] * rsalveti reads backlog [13:05] rsalveti, cant build amd64 kvm images on trusty anymore [13:08] yay ... works with 0.26 [13:09] hmm, doesnt find webdm [13:12] aha, doesnt bring up the interface ... fun [13:12] even though there is a /e/n/interfaces.d file for it [13:15] hmm, installing mir just spits out an error [13:15] ogra_, I'm so glad I'm not the only one using trusty :P [13:22] ogra_: what is the issue you're having? [13:23] ogra_: and would assume only rolling [13:23] rsalveti, there was another quoting issue in the MP ... i fixed that ... and just tried to test the new image [13:23] or you can't even with 15.04? [13:23] that was rolling ... [13:23] with 0.25 i ended up at a grub prompt [13:24] 0.26 is fine now [13:24] (udf that is) [13:25] right, cool [13:26] we'll migrate the new packages to tools tomorrow [13:26] if all goes well [13:26] good [13:26] ogra_: elopio: fgimenez: and how is 15.04 looking? [13:26] i didnt really spend much time with it yet due to the other issue with rolling (and failing images etc) [13:27] but i havent heard anything beyond what we knew yesterday [13:27] ogra_: you said there was the duplicated initrd and kernel, right? [13:27] or is that only with rolling? [13:28] * rsalveti looks [13:28] no, that was 15.04 [13:28] armhf [13:28] ogra_: right, so guess that's something we still need to fix [13:28] i'm not sure what to do though ... i dont want to break the image the last minute just to save some space [13:28] right, not critical but good to have [13:29] yeah ... [13:33] guess we just need to properly validate the update from the sunday's image to the latest [13:33] and make sure the new kernel is indeed in place [13:33] fgimenez: can you take a look at that one? === howefield is now known as howefield_afk [13:41] oh, and that needs o happen on a bbb [13:43] * ogra_ goes to have some afternoon brunch [13:59] rsalveti, ok i'll take a look === vrruiz_ is now known as rvr [14:03] rsalveti, it would be 111 to 121, right? [14:03] fgimenez: hm, don't know the number exactly, but would guess so [14:03] just check the kernel version [14:03] rsalveti, ok [14:36] ogra_: care to review https://code.launchpad.net/~sergiusens/livecd-rootfs/eth0Not/+merge/263812 ? [14:39] rsalveti, looks fine, want me to merge it ? [14:40] ogra_: if you can do the landing dance would be nice :-) [14:40] sure === soee_ is now known as soee === charles_ is now known as charles [14:55] rsalveti, ogra_, was there any reason you didn't apply that change to personal as well? [14:56] seb128: *code duplication *mumble* *hrmf* *code duplication* [14:56] ;) [14:56] mvo, patches are welcome ;-) [14:56] seb128, only that i wanted to do a "personal" sync later today that also includes the versioned kernel stuff etc [14:56] ogra_, k, good ;-) [14:56] I can do that if you want [14:57] mvo, teach live-build about smylinks for build hooks :P [14:57] * mvo nods [14:57] seb128, yeah, if you feel like ... i have a meeting now and would earliest do it in 1h [14:58] ogra_, k, can do [14:58] thanks ! [14:58] yw! [15:13] seb128: you around? [15:14] Chipaca, yes [15:15] seb128: you're running personal in kvm and getting past the login, yes? [15:15] Chipaca, no, I'm using virt-manager [15:15] but I guess kvm should be the same [15:15] need to use qxl video and spice [15:15] seb128: so you're not on wily? [15:15] I'm on wily [15:16] how does virt-manager work for you on wily? [15:16] it completely fails to work here [15:17] seb128: to me, i tell it to use an image, it chowns it to root, and then tries to read it as me [15:18] s/read/use/ [15:18] Chipaca, wfm [15:18] I didn't do anything [15:23] seb128: can you walk me through what you did?\ [15:27] Chipaca, [15:27] - start virt-manager [15:27] - click on the first icon in the toolbar [15:27] mvo: if you got some time left https://code.launchpad.net/~snappy-dev/snapcraft/core/+activereviews [15:27] - select the first option (iso or CD) [15:27] otherwise will try to get to it later today as well [15:27] - next [15:28] - select the snappy image [15:28] - select os type ubuntu [15:28] - next, next, done [15:28] in the preferences select qxn/spice as described on http://unity.ubuntu.com/mir/setup_kvm_for_mir.html [15:28] Chipaca, ^ [15:28] or I'm using qcow images, unsure if that makes a difference [15:29] qemu-img convert -O qcow2 wily.img new.img [15:29] seb128: i get “Could not open '/var/tmp/personal_copy.img': Permission denied [15:29] '” [15:29] where that img is the snappy file [15:29] Chipaca, are other users allowed to read that location? [15:30] seb128: "others"? [15:30] seb128: o [15:30] seb128: i've made it 0666 [15:30] seb128: same error [15:30] it chowns it [15:31] Chipaca, I think the vm uses its own user [15:31] to libvirt-qemu:kvm if used as cdrom, to root:root if used as raw image [15:31] and then gets permission denied [15:31] is your user in the libvirtd group? [15:31] yes [15:32] k, I don' tknow then, sorry [15:33] maybe it's trying to do something silly and the sticky directory gives it an error it isn't expecting? [15:33] * Chipaca tries [15:34] that ... worked [15:34] /o\ [15:34] so it was a permission issue? [15:35] apparently? [15:35] mterry: created https://trello.com/c/IK3aJj2d/170-documentation-for-snapcraft [15:36] mterry: this is the one you want to get done soon as well, right? https://trello.com/c/i3C75NVD/152-be-able-to-create-snap-just-from-snapcraft-yaml [15:36] rsalveti, yeah that too [15:36] rsalveti, and local-plugin [15:36] right [16:03] seb128, wow, awesome ! [16:03] * ogra_ just booted the last personal image [16:03] now how do i get past the intro ? i cant swipe the launcher in it seems [16:04] Chipaca, sudo ubuntu-device-flash personal rolling --channel edge -o personal_x86.img --developer-mode [16:04] Chipaca, kvm -m 2048 -vga qxl personal_x86.img [16:04] that gets me going here [16:04] ogra_, why can't you? [16:04] ah, i just tried to click on the wrong thing :P [16:05] now i got it out of the way [16:05] good :-) [16:05] mir is still pretty laggy in this setup [16:06] indeed it is [16:06] but at least it loads [16:06] yup, looks very nice already [16:09] hmm, interesting, browser doesnt start from the dash ... only from the launcher [16:09] leaving, nice evening everyone === jkridner|work is now known as jkridner [16:10] ogra_, it does from the launcher? [16:10] ogra_, I though it was bug #1466012 [16:10] Bug #1466012: Browser crashes on launch on Unity8 Desktop [16:10] bug 1457458 in Oxide 1.8 "duplicate for #1466012 "No suitable EGL configs found" on desktop-next" [Medium,Triaged] https://launchpad.net/bugs/1457458 [16:11] might be, i dont have a console currently ... just clicking around a bit [16:11] hmm, i havent set up networking it seems [16:13] that should work out of the box [16:13] it's annoying that you can't vt switch with mir [16:14] but you can log out from the unity8 session, that goes back to lightdm, then you can go to a vt and do command line things [16:14] yeah, i could probably ssh, havent tried with any -redir options yet [16:14] i did build with --developer-mode [16:15] well, no cloud-init, so no ssh key.... [16:15] sigh .. the alt key doesnt work, now i have all windows with their top bar hidden behind the panel :P [16:15] no way to move them anymore [16:15] how did you get them there? [16:16] just dragging them to the very top [16:16] ogra_, if you happen to have a touch screen, tap three fingers on the window [16:17] davidcalle, none of my three monitors has touch on this machine :) [16:19] ogra_, grab the bottom edge and reduce the size while holding shift [16:20] nope, only lets me scroll inside the window [16:20] cant resize windows [16:21] You have weirds window, for me it brings down the top edge symmetrically :) [16:21] under unity8 personal ? [16:22] ogra_, hah, no, Unity7 [16:22] aaah ! [16:22] ogra_, but maybe mzanetti can do a quick fix for that and you can update :p [16:23] [Critical] Alt key not working, need new Unity release [16:23] INPROGRESS [16:24] :) [16:24] damn, i cant log in to my U1 account to install apps [16:26] well, that wouldn't work anyway [16:26] we don't have click support on that image [16:26] details :P [16:29] hmm, is log out supposed to get me lightdm back ? [16:30] (it doesnt) [16:31] oh, interesting ... doin a snappy serch on cmdline gets me a lot of uninteresting stuff [16:43] ogra_, logout works for me [16:44] I get lightdm unity-greeter [16:46] strange, i didnt [17:09] hello [17:09] I'm sorry I'm late. No internet access this morning. [17:16] elopio: hey :-) [17:16] rsalveti: hi! [17:16] elopio: do you mind if I move our sync two hours later today? [17:17] rsalveti: not at all. [17:17] got a doctor appointment in 30 mins [17:17] great, thanks :-) [17:17] holly cow! snappy personal desktop! [17:17] gg [17:35] doesn't work for me :( [17:42] never mind.. it does work :D i'm stupid :( === kickinz1 is now known as kickinz1|eod === kickinz1|eod is now known as kickinz1 [19:29] mterry, https://github.com/mikix/deb2snap looks pretty formidable, is there a way to install emacs24 on 'ubuntu-core/15.04/stable' in a more direct way? 'snappy search emacs' doesn't find anything. [19:30] * carif won't learn vi (yet) [19:36] carif: if you make a snap for emacs24, I'll use it extensively :) [19:37] lol [19:37] * carif knows barry has one somewhere [19:37] ... he's just holding out [19:38] that's a nice example to highlight some of the subjects that are being discussed now. [19:38] for example, I would like to extend the emacs snap you provide by adding my favorite modules. [19:39] do I have to repackage the snap with the modules included, or will there be a way to extend install snap extensions? [19:40] carif, hello! [19:40] dude! [19:40] carif, no, deb2snap would probably be the most direct way currently [19:41] sudo snappy install emacs24 # or some variant? [19:42] mterry, ^^^ # lost like in olden days... [19:43] carif, that would work if someone had made an emacs24 snap already [19:43] carif, but if you want to make one, deb2snap is probably the fastest [19:44] currently [19:44] carif: ha :) i wish! [19:44] ok, are you available for consulting services ## ... as in olden days ... [19:47] as I make my way through the snappy tutorial (in a snappy fashion) do snaps "stack"? So suppose there was indeed an emacs24 snap and I installed it, where would it actually land? [19:57] carif, heyo [19:57] carif, got distracted [19:57] carif, if there was an emacs24 snap, it would install into something like /apps/carif.emacs24/VERSION/ (assuming 'carif' was the account that uploaded it to the store) [19:58] and there would be a symlink at /apps/carif.emacs24/current and a wrapper script installed at /apps/bin/carif.emacs24 that would launch the executable inside your snap [19:58] ah, so the installed stuff winds up in /apps/${app}/${version}/ and /apps/bin "points" to the right one ... you beat me to it [20:02] mterry, vg, who's user 'clickpkg' and what's /apps/${app}/${version}/ .click/info/${app}.manifest? Is click the old name for snap? [20:05] carif, yeah, click is predecessor to snap [20:06] carif, I thought we got rid of most references, but looks like we still have some :) [20:06] mterry, vg, so the plan-o-record is to evenually use snappkg and .snap? ## Captain Obvious returns [20:08] is there a way to tell my RPi2 my wifi credentials via USB like I could with the phone? [20:08] trying snappy on it for the first time [20:09] carif, I don't know about that specifically -- it may be too much bother to rename those specific things at this point? Not my area of expertise [20:18] asac: ^^ can you help me get started with snappy? [20:20] mhall119: unlikely, because thats a vertical specific logic i am quite sure ... but tell me how you do it with the phone [20:22] asac: phablet-network command could copy the data over (via adb I assume) [20:24] asac: could a custom overlay or snap, built locally on my laptop, be used to install that automagically onto the device? [20:26] mhall119: so core itself does not make a choice about what network mgmt stack you want to use. configuring wifi or network in general would depend on making such choice. what we include is wpasupplicant, but how to use that is up to you... or someone making a wifi mgmt framework. [20:26] mhall119: and yes, you could make a very basic network mgmt solution that just takes a config that you can set and brute force connects to the AP you configured [20:27] and snap that up :) [20:27] so far folks have done the networking code in their main snaps [20:28] mhall119: do you know how to use wpasupplicant raw? [20:28] mhall119: what phablet-network does is to use adb to get into the phone, and then execute nmcli [20:30] asac: nope [20:31] so I dd'd the rp1 disk image to my SD card, and it appears to have booted my device, but I have no way of connecting to it via ssh or http [20:32] oh, no, wait, I have ssh now, but I had to connect it to ethernet *and* find the actual IP address from my router's admin [20:32] mhall119: yes, what i do is usually plug eth in my desktop [20:32] setup NM to share connection [20:33] mhall119: if you have webdm installed you can find it with webdm.local [20:33] mhall119: yes, that's what I'm doing. You can also connect through serial. [20:33] or if you changed hostname its hostname.local [20:33] mhall119: i think our default images have that [20:33] I haven't changed hostname [20:33] so try ping webdm.local :) [20:33] and webdm.local didn't work [20:33] ogra_: no webdm on pi2 image? [20:33] it's there, but the domain resolution didn't work [20:34] feels like a problem with your router/network topology i guess then [20:34] could be, using the IP address works though [20:34] if you can pluyg eth in your desktop you can for sure do it [20:34] what port does webdm listen on? [20:34] mhall119: well, ssh should be up [20:34] on normal port [20:34] it is, I can ssh in [20:34] ssh webdm.local -lubuntu ? [20:35] what does that do? [20:35] ssh into the machine that claims the webdm.local name [20:35] which should be your pi2 if its on the same subnet etc. [20:35] mhall119: webdm is port 4200 [20:35] huh, that worked, but ssh ubuntu@webdm.local didn't [20:35] maybe took a while for the name to propagate [20:36] elopio: thanks! [20:38] alright, I have access to the store now [20:38] what fun things can I try? [20:40] mhall119: hello-world :) [20:41] already installed it, how do I use it? [20:41] mhall119: type hello :) [20:41] and see what it has to offer [20:42] * asac wonders if we added all the seccomp stuff needed for hello-world.shell [20:42] jdstrand: you remember [20:42] ? [20:43] there's a jdstrand fork of hello-world [20:44] mhall119: chatroom. [20:44] asac: why do snaps install into /apps/ rather than /opt/${store}/${app}/ ? [20:44] mhall119: but also the offical one right? [20:44] asac: yes, I installed the official one [20:45] mhall119: next you could learn how to side load local snaps using the snappy-remote command ... wget http://people.canonical.com/~asac/tmp/hello-world_1.0.16_all.snap [20:45] and then use snappy-remove --url ssh://webdm.local install hel*snap [20:45] err [20:45] and then use snappy-remote --url ssh://webdm.local install hel*snap [20:45] mhall119: if you have that tell me what happens if you run hello-world.shell [20:46] that should drop you into a shell where you see the world exactly from an app perspective [20:46] e.g. a nice isolated place where you feel kinda trapped but maybe also secure :) [20:47] I don't have snappy-remote [20:47] install snappy-tools [20:47] thats your meta package for basic dev tools [20:47] from the official tools ppa [20:47] which ppa? [20:48] https://developer.ubuntu.com/en/snappy/ [20:48] -> get started [20:48] right on top there :) [20:48] thanks [20:49] asac, indeed webdm on pi image [20:52] asac: re hello-world.shell-- iirc it depended on the shell. one of them wanted to setuid or something and we don't allow that cause we don't a) have seccomp arg filtering yet and b) have a uid to change to [20:52] jdstrand: one of them, but not both, right? [20:52] so either busy works or dash [20:52] lets see [20:52] yes [20:53] mhall119: if shell doesnt work let me know :) [20:53] I can't remember which otoh [20:53] i wil give you a different variant that should work [20:53] iirc, there were a couple of other syscalls, but I'm pretty sure I added those [20:53] right. lets see :) [20:53] .shell is cool for sure [20:53] asac: hello-world.sh exists with the store-installed version [20:53] but not hello-world.shell [20:53] mhall119: oh right ... i think its sh [20:54] hmm shouldnt [20:54] wait let me see if someone pushed something to bzr without telling me :) [20:54] mhall119: does it work? [20:55] e.g. do you end up in a shell or get a weird error>? [20:55] $ hello-world.sh [20:55] Launching a shell inside the default app confinement [20:55] $ [20:55] it seems to work [20:56] jdstrand: env | grep SNAPPY :) [20:56] ubuntu-core/15.04/edge r120 on amd64 [20:56] should be good [20:56] or SNAP [20:56] * asac not a hacker [20:56] asac: it works [20:56] cool. so use env to see what env is set [20:56] and try to write to dangaerious places like /home/ubuntu/evil.txt [20:57] echo "hallo" > /home/ubuntu/evil.txt [20:57] echo "hallo" > $HOME/good.txt [20:57] echo "hallo" > $TMPDIR/good.txt [20:57] echo "hallo" > /tmp/evil.txt [20:57] evil should bail [20:57] good should work i hope [20:57] mhall119, try chatroom ;) (needs chromium though but gives you in-house hangouts on webdm.local:6565 ) [20:58] try echo "Hallo" > /dev/tty0 [20:58] then ssh in from other terminal [20:58] $ echo "hello" > /tmp/bad.txt [20:58] $ ls /tmp [20:58] bad.txt [20:58] do snappy hw-assign /dev/tty0 hello-world [20:58] then you should be able to poke it [20:59] hmm [20:59] mhall119: sure you are in the shell? [20:59] env | grep SNAP [20:59] if that thing has no hit you are not there [20:59] asac: yup, when I exit the shell I don't see bad.txt in /tmp/ [20:59] run hello-world.sh again [20:59] interesting [20:59] yes, snaps have their own tmpdir [20:59] oh maybe we do more magic with containers and tmp now [21:00] the /tmp handling changed [21:00] because too many apps are hard coding /tmp path [21:00] right [21:00] so guess try the /home/ubuntu one [21:00] and the tty0 one [21:00] hehe [21:00] /tmp/ok is now allowed within the app's process [21:00] so /tmp/ and ~/ are both okay to use by snap apps, but they don't point to unsafe places [21:00] but that ends up in /tmp/somewhere/ok [21:01] where 'somewhere' is something I can't recall otoh [21:01] not sure if we did same for home [21:01] but would assume yes :) [21:01] didnt know we did that for /tmp tbh [21:01] that happened after 15.04 was released [21:01] ok, this is pretty cool, now I need to make a snap app [21:01] jdstrand: do we still set the TMPDIR etc. ? [21:01] i hope not :) [21:01] mhall119: sure the limit is the sky [21:01] $ env|grep TMP [21:01] TMPDIR=/tmp [21:01] SNAP_APP_TMPDIR=/tmp [21:01] SNAPP_APP_TMPDIR=/tmp [21:01] just include everyting you need in your snap [21:02] $ env|grep HOME [21:02] HOME=/home/ubuntu/apps/hello-world.canonical/1.0.18 [21:02] what's the difference between SNAP_ and SNAPP_ ? [21:02] we are not bind mounting HOME [21:02] mhall119: branch these to learn: https://code.launchpad.net/~snappy-dev/snappy-hub/snappy-examples [21:02] jdstrand: legacy and new [21:02] err [21:02] mhall119: ^^ [21:02] we had SNAPP in the beginning, but changed our mind and kept the old one because we had apps that used it [21:02] legacy? how do we have legacy stuff already? [21:02] use SNAP_ [21:03] snappy is ancinet already :) [21:03] *ancient [21:03] mhall119: well, remember that we have big industry player adoptions that did snaps [21:03] most snaps are just not in the store :P [21:03] but almost all big companies have snaps already :D [21:04] $ sudo find /tmp -name ok [21:04] /tmp/snap.1000_hello-world.canonical_zYPh54/tmp/ok [21:04] those guys hate it if they go to a roadshow and their awesome app is broken :) [21:05] asac: why aren't they in the store? [21:10] fyi, I noticed the /tmp handling is a little weird: https://bugs.launchpad.net/snappy/+bug/1473218 [21:10] Ubuntu bug 1473218 in Snappy "TMPDIRs are not cleaned out/are not correctly preserved across app invocations" [Undecided,New] [21:11] mhall119: think about it :) i am sure you can come up with the right answers [21:13] mhall119, dont listen to him, dont waste time to think about it, just produce snaps ! [21:13] ;) [21:13] lol [21:13] heh [21:13] ok, now what's the easiest way to convert a source deb to a snap? [21:13] mhall119: source deb? why not a binary deb :)? [21:14] there is deb2snap .... and yeah, you want binaries ... no need to compile stuff :) [21:14] we have the awesome innovation by mterry called deb2snap [21:14] which works for many cases [21:14] asac: can I run deb2snap on an armhf deb from my i386 laptop? [21:15] mhall119, err... not really. maybe you can multiarch stuff by specifying libfoo:armhf [21:15] mhall119, but in general, it's just meant to grab what's on your machine [21:15] hey, i am the guy most detached from reality :P ... lets try to find out [21:15] https://launchpad.net/deb2snap [21:15] is what google tells me might be one place [21:16] found http://bazaar.launchpad.net/~mterry/deb2snap/trunk/view/head:/README.md [21:17] mterry: if you hate all those nasty cross arch dev challenges you could try to be smart and install docker on your pi2 [21:17] snappy install docker [21:17] * ogra_ needs to do a writeup how to use deb2snap in an armhf chroot then ;) [21:17] and then use some magic cli to get a ubuntu env [21:17] hmmm, doesn't look like an armhf binary exists for irssi :( [21:18] lol [21:18] mhall119: bip maybe? [21:18] bip would be cool to have [21:18] what is bip? [21:18] mhall119, there is definitely an irssi binary [21:18] mterry: btw, did you see this: https://docs.google.com/document/d/1fkCj_ShgNw0gPqZR7lkTUaMavuj1MEUfBGx8LSgAT-s/edit (see 3rd point, 'denial on lchown' [21:18] i was too ambitious trying to solve all problems at once so i am stuck at a stage that i have no time to solve :) [21:18] mhall119: bip is an irc proxy [21:18] i know popey used it on his N4 a while ago :) [21:18] that you can then connect to [21:19] so your pi2 up could keep you always on and you can connect from whever you want [21:19] i run it in the cloud right now [21:19] buut would love to move that thing to my snappy cloud server [21:19] +1 [21:19] same here [21:19] jdstrand, yeah but I've been busy on snapcraft, haven't spent any time on deb2snap [21:19] asac: does bip support connecting to multiple networks? [21:19] of course [21:19] i am on 4 [21:19] if you connect you get all the backlogs and pings [21:20] you get logs [21:20] everything you want [21:20] its slightly buggy [21:20] mterry: sure, it was more just an fyi [21:20] hmm, nice, I'll take a look at that [21:20] yeah, it really nicely replays the night for you :) [21:20] some folks prefer something more modern [21:20] mterry: where does deb2snap live? [21:20] mhall119: it even remembers the channels you were in ... and gives them back to you next time you start your irssi or xchat or phone irc client [21:20] jdstrand, github.com/mikix/deb2snap or lp:deb2snap [21:21] mhall119: your problem is that there is no multiarch package avail for irssi i am sure... [21:21] if you go the docker route above it should be there [21:22] mhall119: kickinz1 can tell you how to get a trusty/wily etc. docker env ... its just one command that i dont remember :( [21:23] you could just install docker and afterwards owncloud ... and then check the processlist ;) [21:23] to figure how to start a docker with trusty? [21:23] odd way :) [21:23] ah , i thought yu wanted to run a docker on the pi [21:23] no i wnt to tell mhall how to use docker to get a chroot on pi2 so he can use deb2snap for armhf irssi :) [21:24] man, I just want to install something I use on my server onto snappy, not learn how to use docker [21:24] lol [21:24] mhall119: its pretty easy i think [21:24] mhall119: https://docs.google.com/document/d/1cPX-yvZWMgshcnBeu2-mroZXnQEEK3jXJbtQqb09LiM/edit [21:24] just read first paragraph [21:24] two commands :) [21:25] and tomorrow hunt down kickinz1 and ask him if there is official place where we have this documented... [21:25] and then go to lool and ask him when we get comfy :P [21:25] lol [21:27] will snappy always require sudo? [21:27] not if you are root :P [21:27] for admin tasks ? ... sure [21:27] hard to predict the future [21:27] so it won't be like click then, where non-admin users can install things? [21:28] that was a nice thing about the phone [21:28] for now we are not rethinking it at least [21:28] mhall119: we dont have per-user packages anymore [21:28] what? [21:28] why not? [21:30] mhall119: why do you think are they needed? [21:30] so that users could install what they wanted when they wanted [21:30] without needing admin rights [21:30] click needs admin rights as well [21:31] it just shields that from you via packagekit ... [21:31] ogra_: but it doesn't require sudo to install click packages [21:31] right, which is nice [21:31] it wouldnt require sudo to use snappy install either if you hook it into policykit like packagekit does [21:31] thats a tech detail really [21:32] they are not different ... click needs admin permission the same way snappy needs them ... (it installls clicks in /opt ... ) [21:32] asac: docker command failed: FATA[0113] Error response from daemon: Cannot start container 7d047b0b0d7891f51846dfdb07ac3583d402522a53583be60b774085faddcc30: [8] System error: exec format error [21:33] ogra_: right, but the user triggering the install didn't need to be given admin rights [21:33] that was what was nice [21:33] it means I could let my kids install apps without giving them sudo access [21:33] and having per-user apps meant that they could upgrade apps that I use, without me getting upgraded too [21:33] mhall119, thats a 30min job of putting policykit configs in place to make the same thing work with snappy or apt [21:34] this has nothing to do with click, really [21:34] ogra_: got 30 minutes? :) [21:34] it is like having click hardcoded in /etc/sudoers with nopasswd [21:34] ok, that's fine, I hope somebody does that work at some point [21:35] and it only works on the phone because we have a single hardcoded user [21:35] though without per-user apps, it's probably not a good idea [21:35] webdm didnt ask you for a password, did it ? [21:35] :) [21:35] ogra_: to do what? [21:35] the snap scope doesnt either :) [21:36] to install anything [21:36] ogra_: it prompted me to use sudo [21:36] webdm ? [21:36] snappy did [21:36] surely not [21:36] I didn't install anything through webdm yet [21:37] thats why i said webdm and the snap scope :) [21:37] ah [21:37] yeah, webdm doesn't prompt me to, okay [21:38] it is all a matter of configuration ;) [21:40] ok, so now I need to get docker running, anybody know what's causing the failure I pasted above? [21:41] all contact i had with docker yet was in webdm ... when installing it (and owncloud) [21:42] installing docker ran fine, but running an instance fails [21:46] mhall119: its because the name is different [21:46] mhall119: try docker search armhf maybe [21:47] kirkland: you know the CLI to run the armhf docker instance? [21:47] mhall119: use -t armbuild/ubuntu:trusty [21:47] instead of '-t ubuntu:trusty'. [21:48] seems jdstrand is the expert :) [21:48] he answered that on ML [21:48] :) [21:51] asac: thanks, that got it working [21:51] jdstrand: ^^ thanks to you too [21:54] woot! woot! [21:55] hey hey [21:55] so irssi works inside of docker [21:55] mhall119: guess directly from docker or did deb2snap just work awesome? [21:55] heh [21:55] I just ran apt-get install irssi inside of docker [21:55] so dont ask me how you can even preserve that state [21:55] lol [21:55] * asac is super clueless about docker [21:55] run to lool and ask him where comfy is :) [21:56] asac: that's okay, "learn docker" should never be our response to somebody wanting to build a snap package [21:56] its not [21:56] just for those that dont know how to do things if they dont find the old world on their machine :) [21:56] until we have the old world nicely done on snappy [21:56] which comfy is about [21:58] mhall119: makng snaps is super trivial. just put everything you need in a directory tree, add a description, name, logo and in meta/package.yaml and run snappy build :) [22:03] mhall119: anyway, we are working on embracing those that have forgotten how to put everything together because they are used to the ease they get everything needed in ubuntu :P. wont take long i really hope [22:07] mhall119: heh, yw [22:07] I am hardly the expert though :) [22:08] mhall119: on app per user ... we couldnt really find that this is a primitive we will want forever in our platform. we identified enough things that world thinks this solves that actually dont need this feature that we decided to not do it for now. actually - without recalling all that - the only reason that was not possible in other ways was the "user X wants to have different version thatn user Y of same app" [22:09] that you funnily enough mentioned [22:13] mhall119: the key thing to remember that snappy core is not a platform, its a platform for building platforms; so whatever things we pick and do here, it could limit the potential of innovation in our ecosystem, so unless its clear that this is the way that the problem we solve everyone will want or if not everyone at least we are sure it will not block others to solve their problem, we rather do less :) [22:13] err hard to pars :P [22:13] late here [22:13] but i guess you get the point [22:42] asac: yeah, you got it :-)