/srv/irclogs.ubuntu.com/2015/07/09/#snappy.txt

elopiohttps://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/147282900:44
ubottuUbuntu 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]00:44
tsimonq2balloons03:14
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== erkules_ is now known as erkules
dholbachgood morning06:47
fgimenezgood morning07:10
davidcalleGood morning o/07:17
mvohey fgimenez and davidcalle, good morning!07:19
ogra_Saviq, err ... looking at bug 1472788 ... dont you need to pipe something into snappys stdin ?08:08
ubottubug 1472788 in Snappy "snappy config does not work from stdin" [Undecided,New] https://launchpad.net/bugs/147278808:08
Saviqogra_, maybe, but shouldn't it just wait for me to type?08:09
Saviqogra_, sry, that's what "stdin" means to me ;)08:10
Saviqdidn't try piping, but that might very well be08:10
ogra_note that i dont know if it works :) but thats what stdin means to me08:10
Saviqogra_, btw, I noticed uboot's env has a eth hwaddr set, should we (could we?) use that?08:16
ogra_Saviq, http://paste.ubuntu.com/11846901/08:16
ogra_(that was UTC before)08:16
Saviqogra_, was it not Europe/Berlin before? ;)08:16
Saviqright08:17
Saviqogra_, maybe it's just a doc issue then, or maybe it's a PEBKAC on my side08:17
ogra_for what do you want to use hwaddr ?08:18
Saviqogra_, to set eth0 MAC08:20
ogra_why do you want to set it ?08:20
ogra_(instead f using the one the device has imprinted)08:20
Saviqok well, the latter would be fine for me, too08:21
Saviqjust noticed it there08:21
Saviqwasn't sure if it was imprinted elsewhere08:21
ogra_yeah, i have a fix for that pending ...08:21
ogra_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 uboot08:22
ogra_next image will have that08:22
Saviqok coolz08:23
=== conyoo is now known as conyoo|AW
JamesTaitGood morning all; happy Sugar Cookie Day! 😃09:02
=== conyoo|AW is now known as conyoo
ChipacaSaviq: “snappy config ubuntu-core -- -” works09:35
SaviqChipaca, that waits for you to type? looks undocumented then :)09:36
ChipacaSaviq: yes09:37
Chipacaogra_: you around?10:05
ogra_yes, but i try to get thinner10:05
ogra_(bad joke, i know)10:06
Chipacahttp://instantrimshot.com/10:06
Chipacaogra_: https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/147282910:06
ogra_:)10:07
ubottuUbuntu 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]10:07
=== dholbach_ is now known as dholbach
ogra_Chipaca, that should be fixed already10:07
Chipacaoooh10:07
Chipacaogra_: already where/how?10:07
Chipacai'm getting that bug right now, 's blocking me10:07
ogra_hmm, vivid ?10:08
Chipacame? wily10:08
ogra_ah10:08
ogra_weird10:08
Chipacaweird werewolf works too10:08
Chipacaogra_: 2.329?10:09
ogra_aha10:09
ogra_there was a quoting error in sergiusens MP ... i thought i fixed all occurences ... seems there is another one10:10
Chipacasure, blame sergiusens today that he's not here :)10:10
ogra_he uses globbing in variable content ... but later quotes the vars when using them ... the quoting suppresses the globbing10:11
ogra_http://paste.ubuntu.com/11847452/10:12
=== greyback__ is now known as greyback
Chipacalel10:13
ogra_uploaded10:14
ogra_i'll trigger a new build once everything migrated10:14
Chipacaogra_: thanks. any idea how long that'll take?10:14
ogra_the publisher can take 30min ...10:14
ogra_plus build time then10:14
ogra_(image build time that is)10:15
ogra_1h or so i guess ... or a bit more10:15
* Chipaca thinks of the xkcd comic about compiling10:16
loologra_: 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 similar10:17
ogra_lool, well, i have the unfounded feeling that vfat causes many of our issues ...10:18
loologra_: 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 such10:18
Chipacalool: surely fat32 is just as fragile wrt power loss as ext2?10:18
ogra_right ... the fatwrite bit still scares me here ... hush support is years old10:19
Chipacamaybe more so? i don't remember it having back up tables10:19
loolChipaca: 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 files10:20
loolu-boot doesn't support any kind of journal like ext3 or ext410:20
ogra_well, and you usually dont need it10:20
loolso it becomes a critical moment to write to the ext2 fs, while fat32 is less so IMO10:20
ogra_though usually people also dont write files from uboot to the fat10:20
loolbut then again I dont even if u-boot has write support for ext210:21
loologra_: we do, we write the stamp file10:21
ogra_lool, people :) ... i know what *we* do ;)10:21
loolbut frankly we're discussing two equally half good options10:22
ogra_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 that10:22
davmor2ogra_: yes we break stuff right?10:22
=== chihchun_afk is now known as chihchun
ogra_Chipaca, building ... https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/wily/ubuntu-core-system-image11:28
Chipacaogra_: wee :)11:28
ogra_Chipaca, and ready ... looking at the log it should be fine now ... let me know if it isnt11:39
Chipacaogra_: now i'm back to getting the double map panic11:45
=== chihchun is now known as chihchun_afk
ogra_Chipaca, well, thats a udf thing i fear12:05
ogra_the hardware.yaml should at least be fine now12:05
seb128ogra_, snappy upgrade still fails to boot the new partition with today image, was the fix supposed to be in the new image?12:06
seb128or does it require to have some new bits in the snappy install from the system-a disk?12:07
ogra_seb128, it was supposed in the image from ~30min ago12:07
ogra_+to be12:07
ogra_the one before had an issue12:08
seb128why?12:08
ogra_because there was wrong quoting in the MP12:08
seb128oh, there was another quoting bug12:08
ogra_right12:08
seb128yeah, I saw your fix12:08
seb128but that was yesterday12:08
seb128I didn't see there was another round12:08
ogra_there was an upload today too12:09
seb128need to rekick personal as well12:09
seb128or did you do that?12:09
ogra_no, but you dont have the code yet12:09
ogra_sergiusens said "after we confirmed it works" ... which we havent yet12:09
ogra_and while this particular issue is fixed nopw, there seems to be something else still12:10
seb128shrug12:10
ogra_see Chipaca above12:10
seb128k12:10
seb128I'm unsure it makes sense to "test on core before doing the change on personal"12:10
seb128imho having it on both allows to stay in sync and do extra testing12:10
seb128but oh well12:10
ogra_do you prefer having both broken instead ?12:10
seb128personal is currently buggy anyway12:11
seb128upgrade boots to a systemd recovery12:11
ogra_ok, confirmed, hardware.yaml and the assets dir match now12:11
* ogra_ closes the bug 12:12
ogra_Chipaca, looks all fine here http://paste.ubuntu.com/11848094/12:36
Chipacayeah, this thing is weird and intermittent (but right now i'm stuck with it)12:36
ogra_ah, heh, but i end up at a grub prompt12:37
ogra_i assume grub also needs to learn about versioned kernel and initrd now12:38
ogra_hmm, how do i debug that12:48
Chipacaogra_: um12:49
Chipacaogra_: wait 3 seconds?12:49
kyrofaseb128, 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 .deb12:50
ogra_Chipaca, and then ?12:51
seb128kyrofa, ok, just curious but what's the issue with snaps?12:51
kyrofaseb128, do you anticipate having it set up in the CI somehow so I can land packages in there through the train?12:51
seb128was it discussed on this channel?12:51
seb128(just to know if I should read the irclog)12:51
Chipacaogra_: and then it just boots12:51
seb128kyrofa, yeah, having it in CI would be nice12:52
ogra_Chipaca, "grub>_" .... thats all i get here12:52
kyrofaseb128, indeed it was-- look for the last mention of my nick yesterday12:52
kyrofaseb128, but I can give you a quick overview12:52
ogra_blinking cursor12:52
seb128kyrofa, thanks, but I'm going to read the log first and I might ping you for extra details then ;-)12:52
kyrofaseb128, sounds good12:53
kyrofaseb128, so the scope is already in CI, it's jut not going through the train (just autolanding)12:53
ogra_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/initrd12:57
Chipacaogra_: it worked here :-/12:57
Chipacaogra_: that's not grub.cfg12:57
ogra_Chipaca, you mean with the current image ?12:57
ogra_ogra@anubis:~/datengrab/kvm$ pastebinit /mnt/EFI/ubuntu/grub/grub.cfg12:58
ogra_http://paste.ubuntu.com/11848214/12:58
Chipacai mean i used udf just now and finally got a wily rolling thing working12:58
ogra_thats grub.cfg :)12:58
ogra_weird12:58
* ogra_ re-runs udf12:58
Chipacaogra_: http://pastebin.ubuntu.com/11848223/12:58
ogra_yeah, definitely not whats in my image12:59
ogra_ogra@anubis:~/datengrab/kvm$ ubuntu-device-flash --version13:01
ogra_unknown flag `version'13:01
ogra_oh ... come on !13:01
mvoogra_: heh, patches welcome!13:01
* ogra_ has 0.25-0ubuntu113:02
Chipacaogra_: 0.2613:03
Chipaca0ubuntu1wtfbbqftw13:03
ogra_bah, so someone didnt update the trusty version in the PPA13:03
Chipacaogra_: you're using software so old it's starting to red-shift13:03
ogra_i'm using supported SW on my production systems :P13:04
ogra_wow13:04
ogra_https://launchpad.net/~snappy-dev/+archive/ubuntu/tools13:04
ogra_the PPA is even at 0.2313:04
Chipacaniiice13:04
Chipacalet's blame rsalveti13:04
ogra_yeah13:04
Chipacaat least he's here today13:04
* ogra_ blames13:04
rsalvetiwe only update tools when we do a release13:05
rsalvetiso once we release the stable update we'll migrate thhe packages from tools-proposed13:05
rsalvetiwhat is happening? :-)13:05
rsalvetimore breakages from sergiusens ?13:05
* rsalveti reads backlog13:05
ogra_rsalveti, cant build amd64 kvm images on trusty anymore13:05
ogra_yay ... works with 0.2613:08
ogra_hmm, doesnt find webdm13:09
ogra_aha, doesnt bring up the interface ... fun13:12
ogra_even though there is a /e/n/interfaces.d file for it13:12
ogra_hmm, installing mir just spits out an error13:15
kyrofaogra_, I'm so glad I'm not the only one using trusty :P13:15
rsalvetiogra_: what is the issue you're having?13:22
rsalvetiogra_: and would assume only rolling13:23
ogra_rsalveti, there was another quoting issue in the MP ... i fixed that ... and just tried to test the new image13:23
rsalvetior you can't even with 15.04?13:23
ogra_that was rolling ...13:23
ogra_with 0.25 i ended up at a grub prompt13:23
ogra_0.26 is fine now13:24
ogra_(udf that is)13:24
rsalvetiright, cool13:25
rsalvetiwe'll migrate the new packages to tools tomorrow13:26
rsalvetiif all goes well13:26
ogra_good13:26
rsalvetiogra_: elopio: fgimenez: and how is 15.04 looking?13:26
ogra_i didnt really spend much time with it yet due to the other issue with rolling (and failing images etc)13:26
ogra_but i havent heard anything beyond what we knew yesterday13:27
rsalvetiogra_: you said there was the duplicated initrd and kernel, right?13:27
rsalvetior is that only with rolling?13:27
* rsalveti looks13:28
ogra_no, that was 15.0413:28
ogra_armhf13:28
rsalvetiogra_: right, so guess that's something we still need to fix13:28
ogra_i'm not sure what to do though ... i dont want to break the image the last minute just to save some space13:28
rsalvetiright, not critical but good to have13:28
ogra_yeah ...13:29
rsalvetiguess we just need to properly validate the update from the sunday's image to the latest13:33
rsalvetiand make sure the new kernel is indeed in place13:33
rsalvetifgimenez: can you take a look at that one?13:33
=== howefield is now known as howefield_afk
rsalvetioh, and that needs o happen on a bbb13:41
* ogra_ goes to have some afternoon brunch 13:43
fgimenezrsalveti, ok i'll take a look13:59
=== vrruiz_ is now known as rvr
fgimenezrsalveti, it would be 111 to 121, right?14:03
rsalvetifgimenez: hm, don't know the number exactly, but would guess so14:03
rsalvetijust check the kernel version14:03
fgimenezrsalveti, ok14:03
rsalvetiogra_: care to review https://code.launchpad.net/~sergiusens/livecd-rootfs/eth0Not/+merge/263812 ?14:36
ogra_rsalveti, looks fine, want me to merge it ?14:39
rsalvetiogra_: if you can do the landing dance would be nice :-)14:40
ogra_sure14:40
=== soee_ is now known as soee
=== charles_ is now known as charles
seb128rsalveti, ogra_, was there any reason you didn't apply that change to personal as well?14:55
mvoseb128: *code duplication *mumble* *hrmf* *code duplication*14:56
mvo;)14:56
seb128mvo, patches are welcome ;-)14:56
ogra_seb128, only that i wanted to do a "personal" sync later today that also includes the versioned kernel stuff etc14:56
seb128ogra_, k, good ;-)14:56
seb128I can do that if you want14:56
ogra_mvo, teach live-build about smylinks for build hooks :P14:57
* mvo nods14:57
ogra_seb128, yeah, if you feel like ... i have a meeting now and would earliest do it in 1h14:57
seb128ogra_, k, can do14:58
ogra_thanks !14:58
seb128yw!14:58
Chipacaseb128: you around?15:13
seb128Chipaca, yes15:14
Chipacaseb128: you're running personal in kvm and getting past the login, yes?15:15
seb128Chipaca, no, I'm using virt-manager15:15
seb128but I guess kvm should be the same15:15
seb128need to use qxl video and spice15:15
Chipacaseb128: so you're not on wily?15:15
seb128I'm on wily15:15
Chipacahow does virt-manager work for you on wily?15:16
Chipacait completely fails to work here15:16
Chipacaseb128: to me, i tell it to use an image, it chowns it to root, and then tries to read it as me15:17
Chipacas/read/use/15:18
seb128Chipaca, wfm15:18
seb128I didn't do anything15:18
Chipacaseb128: can you walk me through what you did?\15:23
seb128Chipaca,15:27
seb128- start virt-manager15:27
seb128- click on the first icon in the toolbar15:27
rsalvetimvo: if you got some time left https://code.launchpad.net/~snappy-dev/snapcraft/core/+activereviews15:27
seb128- select the first option (iso or CD)15:27
rsalvetiotherwise will try to get to it later today as well15:27
seb128- next15:27
seb128- select the snappy image15:28
seb128- select os type ubuntu15:28
seb128- next, next, done15:28
seb128in the preferences select qxn/spice as described on http://unity.ubuntu.com/mir/setup_kvm_for_mir.html15:28
seb128Chipaca, ^15:28
seb128or I'm using qcow images, unsure if that makes a difference15:28
seb128qemu-img convert -O qcow2 wily.img new.img15:29
Chipacaseb128: i get “Could not open '/var/tmp/personal_copy.img': Permission denied15:29
Chipaca'”15:29
Chipacawhere that img is the snappy file15:29
seb128Chipaca, are other users allowed to read that location?15:29
Chipacaseb128: "others"?15:30
Chipacaseb128: o15:30
Chipacaseb128: i've made it 066615:30
Chipacaseb128: same error15:30
Chipacait chowns it15:30
seb128Chipaca, I think the vm uses its own user15:31
Chipacato libvirt-qemu:kvm if used as cdrom, to root:root if used as raw image15:31
Chipacaand then gets permission denied15:31
seb128is your user in the libvirtd group?15:31
Chipacayes15:31
seb128k, I don' tknow then, sorry15:32
Chipacamaybe it's trying to do something silly and the sticky directory gives it an error it isn't expecting?15:33
* Chipaca tries15:33
Chipacathat ... worked15:34
Chipaca/o\15:34
seb128so it was a permission issue?15:34
Chipacaapparently?15:35
rsalvetimterry: created https://trello.com/c/IK3aJj2d/170-documentation-for-snapcraft15:35
rsalvetimterry: 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-yaml15:36
mterryrsalveti, yeah that too15:36
mterryrsalveti, and local-plugin15:36
rsalvetiright15:36
ogra_seb128, wow, awesome !16:03
* ogra_ just booted the last personal image 16:03
ogra_now how do i get past the intro ? i cant swipe the launcher in it seems16:03
ogra_Chipaca, sudo ubuntu-device-flash personal rolling --channel edge -o personal_x86.img --developer-mode16:04
ogra_Chipaca, kvm -m 2048 -vga qxl personal_x86.img16:04
ogra_that gets me going here16:04
seb128ogra_, why can't you?16:04
ogra_ah, i just tried to click on the wrong thing :P16:04
ogra_now i got it out of the way16:05
seb128good :-)16:05
ogra_mir is still pretty laggy in this setup16:05
seb128indeed it is16:06
seb128but at least it loads16:06
ogra_yup, looks very nice already16:06
ogra_hmm, interesting, browser doesnt start from the dash ... only from the launcher16:09
fgimenezleaving, nice evening everyone16:09
=== jkridner|work is now known as jkridner
seb128ogra_, it does from the launcher?16:10
seb128ogra_, I though it was bug #146601216:10
nothalBug #1466012: Browser crashes on launch on Unity8 Desktop <webbrowser-app (Ubuntu):New> <http://launchpad.net/bugs/1466012>16:10
ubottubug 1457458 in Oxide 1.8 "duplicate for #1466012 "No suitable EGL configs found" on desktop-next" [Medium,Triaged] https://launchpad.net/bugs/145745816:10
ogra_might be, i dont have a console currently ... just clicking around a bit16:11
ogra_hmm, i havent set up networking it seems16:11
seb128that should work out of the box16:13
seb128it's annoying that you can't vt switch with mir16:13
seb128but you can log out from the unity8 session, that goes back to lightdm, then you can go to a vt and do command line things16:14
ogra_yeah, i could probably ssh, havent tried with any -redir options yet16:14
ogra_i did build with --developer-mode16:14
seb128well, no cloud-init, so no ssh key....16:15
ogra_sigh .. the alt key doesnt work, now i have all windows with their top bar hidden behind the panel :P16:15
ogra_no way to move them anymore16:15
seb128how did you get them there?16:15
ogra_just dragging them to the very top16:16
davidcalleogra_, if you happen to have a touch screen, tap three fingers on the window16:16
ogra_davidcalle, none of my three monitors has touch on this machine :)16:17
davidcalleogra_, grab the bottom edge and reduce the size while holding shift16:19
ogra_nope, only lets me scroll inside the window16:20
ogra_cant resize windows16:20
davidcalleYou have weirds window, for me it brings down the top edge symmetrically :)16:21
ogra_under unity8 personal ?16:21
davidcalleogra_, hah, no, Unity716:22
ogra_aaah !16:22
davidcalleogra_, but maybe mzanetti can do a quick fix for that and you can update :p16:22
davidcalle[Critical] Alt key not working, need new Unity release16:23
mzanettiINPROGRESS16:23
davidcalle:)16:24
ogra_damn, i cant log in to my U1 account to install apps16:24
seb128well, that wouldn't work anyway16:26
seb128we don't have click support on that image16:26
ogra_details :P16:26
ogra_hmm, is log out supposed to get me lightdm back ?16:29
ogra_(it doesnt)16:30
ogra_oh, interesting ... doin a snappy serch on cmdline gets me a lot of uninteresting stuff16:31
seb128ogra_, logout works for me16:43
seb128I get lightdm unity-greeter16:44
ogra_strange, i didnt16:46
elopiohello17:09
elopioI'm sorry I'm late. No internet access this morning.17:09
rsalvetielopio: hey :-)17:16
elopiorsalveti: hi!17:16
rsalvetielopio: do you mind if I move our sync two hours later today?17:16
elopiorsalveti: not at all.17:17
rsalvetigot a doctor appointment in 30 mins17:17
rsalvetigreat, thanks :-)17:17
conyooholly cow! snappy personal desktop!17:17
conyoogg17:17
conyoodoesn't work for me :(17:35
conyoonever mind.. it does work :D i'm stupid :(17:42
=== kickinz1 is now known as kickinz1|eod
=== kickinz1|eod is now known as kickinz1
carifmterry, 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:29
* carif won't learn vi (yet)19:30
elopiocarif: if you make a snap for emacs24, I'll use it extensively :)19:36
cariflol19:37
* carif knows barry has one somewhere19:37
carif... he's just holding out19:37
elopiothat's a nice example to highlight some of the subjects that are being discussed now.19:38
elopiofor example, I would like to extend the emacs snap you provide by adding my favorite modules.19:38
elopiodo I have to repackage the snap with the modules included, or will there be a way to extend install snap extensions?19:39
mterrycarif, hello!19:40
carifdude!19:40
mterrycarif, no, deb2snap would probably be the most direct way currently19:40
carifsudo snappy install emacs24  # or some variant?19:41
carifmterry, ^^^   # lost like in olden days...19:42
mterrycarif, that would work if someone had made an emacs24 snap already19:43
mterrycarif, but if you want to make one, deb2snap is probably the fastest19:43
mterrycurrently19:44
barrycarif: ha :)  i wish!19:44
carifok, are you available for consulting services ## ... as in olden days ...19:44
carifas 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:47
mterrycarif, heyo19:57
mterrycarif, got distracted19:57
mterrycarif, 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:57
mterryand 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 snap19:58
carifah, so the installed stuff winds up in /apps/${app}/${version}/ and /apps/bin "points" to the right one ... you beat me to it19:58
carifmterry, vg, who's user 'clickpkg' and what's /apps/${app}/${version}/ .click/info/${app}.manifest? Is click the old name for snap?20:02
mterrycarif, yeah, click is predecessor to snap20:05
mterrycarif, I thought we got rid of most references, but looks like we still have some  :)20:06
carifmterry, vg, so the plan-o-record is to evenually use snappkg and .snap?  ## Captain Obvious returns20:06
mhall119is there a way to tell my RPi2 my wifi credentials via USB like I could with the phone?20:08
mhall119trying snappy on it for the first time20:08
mterrycarif, 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 expertise20:09
mhall119asac: ^^ can you help me get started with snappy?20:18
asacmhall119: unlikely, because thats a vertical specific logic i am quite sure ... but tell me how you do it with the phone20:20
mhall119asac: phablet-network command could copy the data over (via adb I assume)20:22
mhall119asac: could a custom overlay or snap, built locally on my laptop, be used to install that automagically onto the device?20:24
asacmhall119: 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
asacmhall119: 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 configured20:26
asacand snap that up :)20:27
asacso far folks have done the networking code in their main snaps20:27
asacmhall119: do you know how to use wpasupplicant raw?20:28
elopiomhall119: what phablet-network does is to use adb to get into the phone, and then execute nmcli20:28
mhall119asac: nope20:30
mhall119so 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 http20:31
mhall119oh, no, wait, I have ssh now, but I had to connect it to ethernet *and* find the actual IP address from my router's admin20:32
asacmhall119: yes, what i do is usually plug eth in my desktop20:32
asacsetup NM to share connection20:32
asacmhall119: if you have webdm installed you can find it with webdm.local20:33
elopiomhall119: yes, that's what I'm doing. You can also connect through serial.20:33
asacor if you changed hostname its hostname.local20:33
asacmhall119: i think our default images have that20:33
mhall119I haven't changed hostname20:33
asacso try ping webdm.local :)20:33
mhall119and webdm.local didn't work20:33
asacogra_: no webdm on pi2 image?20:33
mhall119it's there, but the domain resolution didn't work20:33
asacfeels like a problem with your router/network topology i guess then20:34
mhall119could be, using the IP address works though20:34
asacif you can pluyg eth in your desktop you can for sure do it20:34
mhall119what port does webdm listen on?20:34
asacmhall119: well, ssh should be up20:34
asacon normal port20:34
mhall119it is, I can ssh in20:34
asacssh webdm.local -lubuntu ?20:34
mhall119what does that do?20:35
asacssh into the machine that claims the webdm.local name20:35
asacwhich should be your pi2 if its on the same subnet etc.20:35
elopiomhall119: webdm is port 420020:35
mhall119huh, that worked, but ssh ubuntu@webdm.local didn't20:35
asacmaybe took a while for the name to propagate20:35
mhall119elopio: thanks!20:36
mhall119alright, I have access to the store now20:38
mhall119what fun things can I try?20:38
asacmhall119: hello-world :)20:40
mhall119already installed it, how do I use it?20:41
asacmhall119: type hello<tab><tab> :)20:41
asacand see what it has to offer20:41
* asac wonders if we added all the seccomp stuff needed for hello-world.shell20:42
asacjdstrand: you remember20:42
asac?20:42
mhall119there's a jdstrand fork of hello-world20:43
elopiomhall119: chatroom.20:44
mhall119asac: why do snaps install into /apps/ rather than /opt/${store}/${app}/ ?20:44
asacmhall119: but also the offical one right?20:44
mhall119asac: yes, I installed the official one20:44
asacmhall119: 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.snap20:45
asacand then use snappy-remove --url ssh://webdm.local install hel*snap20:45
asacerr20:45
asacand then use snappy-remote --url ssh://webdm.local install hel*snap20:45
asacmhall119: if you have that tell me what happens if you run hello-world.shell20:45
asacthat should drop you into a shell where you see the world exactly from an app perspective20:46
asace.g. a nice isolated place where you feel kinda trapped but maybe also secure :)20:46
mhall119I don't have snappy-remote20:47
asacinstall snappy-tools20:47
asacthats your meta package for basic dev tools20:47
asacfrom the official tools ppa20:47
mhall119which ppa?20:47
asachttps://developer.ubuntu.com/en/snappy/20:48
asac-> get started20:48
asacright on top there :)20:48
mhall119thanks20:48
ogra_asac, indeed webdm on pi image20:49
jdstrandasac: 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 to20:52
asacjdstrand: one of them, but not both, right?20:52
asacso either busy works or dash20:52
asaclets see20:52
jdstrandyes20:52
asacmhall119: if shell doesnt work let me know :)20:53
jdstrandI can't remember which otoh20:53
asaci wil give you a different variant that should work20:53
jdstrandiirc, there were a couple of other syscalls, but I'm pretty sure I added those20:53
asacright. lets see :)20:53
asac.shell is cool for sure20:53
mhall119asac: hello-world.sh exists with the store-installed version20:53
mhall119but not hello-world.shell20:53
asacmhall119: oh right ... i think its sh20:53
asachmm shouldnt20:54
asacwait let me see if someone pushed something to bzr without telling me :)20:54
asacmhall119: does it work?20:54
asace.g. do you end up in a shell or get a weird error>?20:55
jdstrand$ hello-world.sh20:55
jdstrandLaunching a shell inside the default app confinement20:55
jdstrand$20:55
jdstrandit seems to work20:55
asacjdstrand: env | grep SNAPPY :)20:56
jdstrandubuntu-core/15.04/edge r120 on amd6420:56
asacshould be good20:56
asacor SNAP20:56
* asac not a hacker20:56
mhall119asac: it works20:56
asaccool. so use env to see what env is set20:56
asacand try to write to dangaerious places like /home/ubuntu/evil.txt20:56
asacecho "hallo" > /home/ubuntu/evil.txt20:57
asacecho "hallo" > $HOME/good.txt20:57
asacecho "hallo" > $TMPDIR/good.txt20:57
asacecho "hallo" > /tmp/evil.txt20:57
asacevil should bail20:57
asacgood should work i hope20:57
ogra_mhall119, try chatroom ;) (needs chromium though but gives you in-house hangouts on webdm.local:6565 )20:57
asactry echo "Hallo" > /dev/tty020:58
asacthen ssh in from other terminal20:58
mhall119$ echo "hello" > /tmp/bad.txt20:58
mhall119$ ls /tmp20:58
mhall119bad.txt20:58
asacdo snappy hw-assign /dev/tty0 hello-world20:58
asacthen you should be able to poke it20:58
asachmm20:59
asacmhall119: sure you are in the shell?20:59
asacenv | grep SNAP20:59
asacif that thing has no hit you are not there20:59
mhall119asac: yup, when I exit the shell I don't see bad.txt in /tmp/20:59
asacrun hello-world.sh again20:59
asacinteresting20:59
ogra_yes, snaps have their own tmpdir20:59
asacoh maybe we do more magic with containers and tmp now20:59
jdstrandthe /tmp handling changed21:00
asacbecause too many apps are hard coding /tmp path21:00
jdstrandright21:00
asacso guess try the /home/ubuntu one21:00
asacand the tty0 one21:00
asachehe21:00
jdstrand/tmp/ok is now allowed within the app's process21:00
mhall119so /tmp/ and ~/ are both okay to use by snap apps, but they don't point to unsafe places21:00
jdstrandbut that ends up in /tmp/somewhere/ok21:00
jdstrandwhere 'somewhere' is something I can't recall otoh21:01
asacnot sure if we did same for home21:01
asacbut would assume yes :)21:01
asacdidnt know we did that for /tmp tbh21:01
jdstrandthat happened after 15.04 was released21:01
mhall119ok, this is pretty cool, now I need to make a snap app21:01
asacjdstrand: do we still set the TMPDIR etc. ?21:01
asaci hope not :)21:01
asacmhall119: sure the limit is the sky21:01
jdstrand$ env|grep TMP21:01
jdstrandTMPDIR=/tmp21:01
jdstrandSNAP_APP_TMPDIR=/tmp21:01
jdstrandSNAPP_APP_TMPDIR=/tmp21:01
asacjust include everyting you need in your snap21:01
jdstrand$ env|grep HOME21:02
jdstrandHOME=/home/ubuntu/apps/hello-world.canonical/1.0.1821:02
mhall119what's the difference between SNAP_ and SNAPP_ ?21:02
jdstrandwe are not bind mounting HOME21:02
asacmhall119: branch these to learn: https://code.launchpad.net/~snappy-dev/snappy-hub/snappy-examples21:02
asacjdstrand: legacy and new21:02
asacerr21:02
asacmhall119: ^^21:02
asacwe had SNAPP in the beginning, but changed our mind and kept the old one because we had apps that used it21:02
mhall119legacy? how do we have legacy stuff already?21:02
asacuse SNAP_21:02
ogra_snappy is ancinet already :)21:03
ogra_*ancient21:03
asacmhall119: well, remember that we have big industry player adoptions that did snaps21:03
asacmost snaps are just not in the store :P21:03
asacbut almost all big companies have snaps already :D21:03
jdstrand$ sudo find /tmp -name ok21:04
jdstrand/tmp/snap.1000_hello-world.canonical_zYPh54/tmp/ok21:04
asacthose guys hate it if they go to a roadshow and their awesome app is broken :)21:04
mhall119asac: why aren't they in the store?21:05
jdstrandfyi, I noticed the /tmp handling is a little weird: https://bugs.launchpad.net/snappy/+bug/147321821:10
ubottuUbuntu bug 1473218 in Snappy "TMPDIRs are not cleaned out/are not correctly preserved across app invocations" [Undecided,New]21:10
asacmhall119: think about it :) i am sure you can come up with the right answers21:11
ogra_mhall119, dont listen to him, dont waste time to think about it, just produce snaps !21:13
ogra_;)21:13
asaclol21:13
mhall119heh21:13
mhall119ok, now what's the easiest way to convert a source deb to a snap?21:13
asacmhall119: source deb? why not a binary deb :)?21:13
ogra_there is deb2snap .... and yeah, you want binaries ... no need to compile stuff :)21:14
asacwe have the awesome innovation by mterry called deb2snap21:14
asacwhich works for many cases21:14
mhall119asac: can I run deb2snap on an armhf deb from my i386 laptop?21:14
mterrymhall119, err...  not really.  maybe you can multiarch stuff by specifying libfoo:armhf21:15
mterrymhall119, but in general, it's just meant to grab what's on  your machine21:15
asachey, i am the guy most detached from reality :P ... lets try to find out21:15
asachttps://launchpad.net/deb2snap21:15
asacis what google tells me might be one place21:15
asacfound http://bazaar.launchpad.net/~mterry/deb2snap/trunk/view/head:/README.md21:16
asacmterry: if you hate all those nasty cross arch dev challenges you could try to be smart and install docker on your pi221:17
asacsnappy install docker21:17
* ogra_ needs to do a writeup how to use deb2snap in an armhf chroot then ;) 21:17
asacand then use some magic cli to get a ubuntu env21:17
mhall119hmmm, doesn't look like an armhf binary exists for irssi :(21:17
asaclol21:18
asacmhall119: bip maybe?21:18
asacbip would be cool to have21:18
mhall119what is bip?21:18
ogra_mhall119, there is definitely an irssi binary21:18
jdstrandmterry: btw, did you see this: https://docs.google.com/document/d/1fkCj_ShgNw0gPqZR7lkTUaMavuj1MEUfBGx8LSgAT-s/edit (see 3rd point, 'denial on lchown'21:18
asaci 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
asacmhall119: bip is an irc proxy21:18
ogra_i know popey used it on his N4 a while ago :)21:18
asacthat you can then connect to21:18
asacso your pi2 up could  keep you always on and you can connect from whever you want21:19
asaci run it in the cloud right now21:19
asacbuut would love to move that thing to my snappy cloud server21:19
ogra_+121:19
ogra_same here21:19
mterryjdstrand, yeah but I've been busy on snapcraft, haven't spent any time  on deb2snap21:19
mhall119asac: does bip support connecting to multiple networks?21:19
asacof course21:19
asaci am on 421:19
asacif you connect you get all the backlogs and pings21:19
asacyou get logs21:20
asaceverything you want21:20
asacits slightly buggy21:20
jdstrandmterry: sure, it was more just an fyi21:20
mhall119hmm, nice, I'll take a look at that21:20
ogra_yeah, it really nicely replays the night for you :)21:20
asacsome folks prefer something more modern21:20
jdstrandmterry: where does deb2snap live?21:20
asacmhall119: 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 client21:20
mterryjdstrand, github.com/mikix/deb2snap or lp:deb2snap21:20
asacmhall119: your problem is that there is no multiarch package avail for irssi i am sure...21:21
asacif you go the docker route above it should be there21:21
asacmhall119: kickinz1 can tell you how to get a trusty/wily etc. docker env ... its just one command that i dont remember :(21:22
ogra_you could just install docker and afterwards owncloud ... and then check the processlist ;)21:23
asacto figure how to start a docker with trusty?21:23
asacodd way :)21:23
ogra_ah , i thought yu wanted to run a docker on the pi21:23
asacno i wnt to tell mhall how to use docker to get a chroot on pi2 so he can use deb2snap for armhf irssi :)21:23
mhall119man, I just want to install something I use on my server onto snappy, not learn how to use docker21:24
ogra_lol21:24
asacmhall119: its pretty easy i think21:24
asacmhall119: https://docs.google.com/document/d/1cPX-yvZWMgshcnBeu2-mroZXnQEEK3jXJbtQqb09LiM/edit21:24
asacjust read first paragraph21:24
asactwo commands :)21:24
asacand tomorrow hunt down kickinz1 and ask him if there is official place where we have this documented...21:25
asacand then go to lool and ask him when we get comfy :P21:25
asaclol21:25
mhall119will snappy always require sudo?21:27
asacnot if you are root :P21:27
ogra_for admin tasks ? ... sure21:27
asachard to predict the future21:27
mhall119so it won't be like click then, where non-admin users can install things?21:27
mhall119that was a nice thing about the phone21:28
asacfor now we are not rethinking it at least21:28
asacmhall119: we dont have per-user packages anymore21:28
mhall119what?21:28
mhall119why not?21:28
asacmhall119: why do you think are they needed?21:30
mhall119so that users could install what they wanted when they wanted21:30
mhall119without needing admin rights21:30
ogra_click needs admin rights as well21:30
ogra_it just shields that from you via packagekit ...21:31
mhall119ogra_: but it doesn't require sudo to install click packages21:31
mhall119right, which is nice21:31
ogra_it wouldnt require sudo to use snappy install either if you hook it into policykit like packagekit does21:31
ogra_thats a tech detail really21:31
ogra_they are not different ... click needs admin permission the same way snappy needs them ... (it installls clicks in /opt ... )21:32
mhall119asac: docker command failed: FATA[0113] Error response from daemon: Cannot start container 7d047b0b0d7891f51846dfdb07ac3583d402522a53583be60b774085faddcc30: [8] System error: exec format error21:32
mhall119ogra_: right, but the user triggering the install didn't need to be given admin rights21:33
mhall119that was what was nice21:33
mhall119it means I could let my kids install apps without giving them sudo access21:33
mhall119and having per-user apps meant that they could upgrade apps that I use, without me getting upgraded too21:33
ogra_mhall119, thats a 30min job of putting policykit configs in place to make the same thing work with snappy or apt21:33
ogra_this has nothing to do with click, really21:34
mhall119ogra_: got 30 minutes? :)21:34
ogra_it is like having click hardcoded in /etc/sudoers with nopasswd21:34
mhall119ok, that's fine, I hope somebody does that work at some point21:34
ogra_and it only works on the phone because we have a single hardcoded user21:35
mhall119though without per-user apps, it's probably not a good idea21:35
ogra_webdm didnt ask you for a password, did it ?21:35
ogra_:)21:35
mhall119ogra_: to do what?21:35
ogra_the snap scope doesnt either :)21:35
ogra_to install anything21:36
mhall119ogra_: it prompted me to use sudo21:36
ogra_webdm ?21:36
mhall119snappy did21:36
ogra_surely not21:36
mhall119I didn't install anything through webdm yet21:36
ogra_thats why i said webdm and the snap scope :)21:37
ogra_ah21:37
mhall119yeah, webdm doesn't prompt me to, okay21:37
ogra_it is all a matter of configuration ;)21:38
mhall119ok, so now I need to get docker running, anybody know what's causing the failure I pasted above?21:40
ogra_all contact i had with docker yet was in webdm ... when installing it (and owncloud)21:41
mhall119installing docker ran fine, but running an instance fails21:42
asacmhall119: its because the name is different21:46
asacmhall119: try docker search armhf maybe21:46
asackirkland: you know the CLI to run the armhf docker instance?21:47
asacmhall119: use -t armbuild/ubuntu:trusty21:47
asacinstead of '-t ubuntu:trusty'.21:47
asacseems jdstrand is the expert :)21:48
asache answered that on ML21:48
asac:)21:48
mhall119asac: thanks, that got it working21:51
mhall119jdstrand: ^^ thanks to you too21:51
mhall119_snappywoot! woot!21:54
ogra_hey hey21:55
mhall119so irssi works inside of docker21:55
asacmhall119: guess directly from docker or did deb2snap just work awesome?21:55
asacheh21:55
mhall119I just ran apt-get install irssi inside of docker21:55
asacso dont ask me how you can even preserve that state21:55
asaclol21:55
* asac is super clueless about docker21:55
asacrun to lool and ask him where comfy is :)21:55
mhall119asac: that's okay, "learn docker" should never be our response to somebody wanting to build a snap package21:56
asacits not21:56
asacjust for those that dont know how to do things if they dont find the old world on their machine :)21:56
asacuntil we have the old world nicely done on snappy21:56
asacwhich comfy is about21:56
asacmhall119: 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 :)21:58
asacmhall119: 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 hope22:03
jdstrandmhall119: heh, yw22:07
jdstrandI am hardly the expert though :)22:07
asacmhall119: 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:08
asacthat you funnily enough mentioned22:09
asacmhall119: 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
asacerr hard to pars :P22:13
asaclate here22:13
asacbut i guess you get the point22:13
kirklandasac: yeah, you got it :-)22:42

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!