=== JanC_ is now known as JanC [07:07] ogra_: silly questions :) 1) is there a way to create users on snapp device? 2) Can I run a single command (or /bin/bash) in classic just as in a chroot? Like ssh root@device_ip '/snap/bin/classic /bin/bash -c "foo"' ? [10:06] zyga: ping [10:25] bzoltan, 1) adduser with the --extrausers option .. 2) indeed, but not as root@$ip .... you need sudo (passwordless by default though) [11:01] ogra_: surprisingly the `ssh root@192.168.1.116 '/snap/bin/classic 'df -h''` works for me [11:01] how could that be [11:01] (on an unmodified image) [11:02] Those ' quotes look funny too. [11:03] bzoltan, by default the root account is locked and you cant set a password (readonly passwd file), so if you didnt hack up the imae to put a root ssh key in place or some such this should definitely not work [11:03] (and would be a totally unsupported path too) [11:04] ogra_: I have set up the ssh auth [11:04] This works for me: ssh Addr -l Me 'sudo /snap/bin/classic df' [11:04] surely not via the config tools [11:04] Without 'sudo', complains. [11:04] yep [11:06] bzoltan, either use a system-user assertion, or run through the config UI, or use cloud-init, everything else is completely broken and will cause misbehaviour (all tools set up the user via snapd which does a bunch of more stuff than just adding a user to the passwd file) [11:07] ogra_: I see [11:07] just hacking up the image like that will not behave like any other snappy install [11:07] ogra_: make sense [11:07] ogra_: I am just hacking around :) and collect thoughts. [11:07] (sadly i dont know much about the system-user assertions, but thats likely your way to go ...) [11:07] ogra_: what is that config UI? [11:08] well, console-conf ... the cli UI that starts on every tty on first boot of the image [11:08] ogra_: hmmm... I have no hdmi display, neither usb keyboard [11:08] well, every tty includes serial ;) [11:08] ogra_: Have you seen the RPi osmc image installation? [11:09] nope [11:10] ogra_: I love that ... it is a desktop tool. You select the sd card device, define what wlan you want to be default and it flashes the OS on teh sdk card with that... after that you have ssh [11:10] ah, something like that is in the TODO list ... but further out [11:10] ogra_: with our stuff it is a bit too much hacking for a newcomer [11:11] ogra_: do you want my team to work on making the RPi/DB installation more convenient? [11:11] well, you dd, boot the board, run through the config ... done [11:11] ogra_: It is kind of SDK stuff... making developer's life easy [11:11] bzoltan, talk to sabdfl ;) [11:12] there are frameworks (very roughly) defined already that were designed at the snappy sprints [11:13] i.e. you would have a UI that actually creates the model assertion, the system-user assertion and calls ubuntu-image in the end to create a matchin img that you can provision with the created system-user assertion [11:13] ogra_: how 'run thru the config' works without keyboard and and display? [11:13] it doesnt [11:13] you need access to a tty atm [11:14] typically embedded/IoT people use serial consoles for that though [11:14] (thats the current target audience) [11:15] a commercial vendor would ship a USB key with system user assertion i guess ... that you can plug in on first boot to have the setup run automagically [11:16] (or have an online assertion creation tool where you can put in your credentials to have the assertion created for a usb key) [11:16] ogra_: I assume that for tty I need a GPIO-USB cable ... [11:16] something like https://www.amazon.de/gp/product/B00KVUSI30 [11:17] ogra_: yeps, I am familar with that. [11:17] (thats the one i have) [11:19] ogra_: I need to dig up my inventory for that :) or make one... [11:19] * bzoltan is not in soldering mood [11:19] heh [11:19] you dont need to solder anything with the one above [11:20] (there are little plugs at the ends of the cables, you just plug them onto the right pins) [11:20] ogra_: not if you have one :) [11:21] ogra_: I know GPIO, I have all those cables and plugs for the headers. It is fairly easy to solder one... [11:21] well, you need the FTDI electronics that are hidden in the USB plug [11:22] its not a stragit usb cable [11:22] *straight [11:22] ogra_: True, it is easier to buy one [11:29] Bug #1637611 changed: snappy images should not ship /etc/profile.d/Z99-cloud-locale-test.sh [11:36] Are there any docs on how app authors should be using "snap set"? [12:06] someone use snapcraft for a django project ? i'd like to see how snapcraft.yaml looks like [12:07] foxmask: I haven't, but I can imagine it. Have you made anything with snapcraft yet? [12:09] i try but I am not satisfied [12:12] yay, my new kbd just got delivered [12:12] * ogra_ dances [12:12] Clicky? [12:12] super clicky, super small :) [12:12] vortex pok3r [12:12] ogra_: Photo plz. [12:13] https://mechanicalkeyboards.com/shop/images/products/large_1239_IMG_0984.jpg [12:13] foxmask: Let's start with your yaml. Pastebin it? [12:13] full metal body [12:14] ogra_: that's hot. [12:15] ogra_: I've been meaning to put braille caps on my keys so that I learn to read blind as I type. [12:16] haha [12:16] cool idea [12:16] well, i'm still looking for a good set of SA or DSA caps for it now [12:18] like https://pbs.twimg.com/media/CpyKqqEWYAUpvbY.jpg [12:18] (probably less colorful) [12:19] going back to commodore VIC20 typing ;) [12:22] thats more like it https://imgur.com/S3N6i0L [12:29] qengho: https://gist.github.com/foxmask/4d6ab10571a4d500778d70b336877ed2 [12:31] foxmask: Those look great! [12:32] foxmask: For your command, you might find what you're looking for with... [12:32] qengho: if only :) [12:33] i searched here https://github.com/search?o=desc&p=5&q=filename%3Asnapcraft.yaml+%22plugin%3A+python3%22+&s=indexed&type=Code&utf8=%E2%9C%93 [12:33] $ find /snap/trigger-happy/current -type f -name python2 -o -name manage.py [12:33] try dropping the python in fromt of the command, let it use the shebang [12:33] *front [12:34] foxmask: If it's python3, use that name to search, of course. [12:35] and perhaps make it ./manage.py if the script isnt in PATH (i.e. $SNAP/bin ) [12:35] qengho: there is no python* on manage.py script in that path [12:36] ogra_: i also tried command: manage.py but here too, the command is not found [12:36] where in your snap does it end up ? [12:36] foxmask: pastebin $ find /snap/trigger-happy [12:37] qengho: return nothing :) [12:37] ogra_: how can I check the content of the snap ? [12:37] if it gets put into $SNAP/bin it will be in your path ... if not, you should add the path to the line relative to $SNAP [12:37] foxmask: it returned something. [12:37] build it, install it and look in /snap/$packagename/current/ [12:37] qengho: ok [12:44] qengho: log exceeded the max size everywhere I paset :) I come back ; afk do 30m, [12:44] paste* [12:45] just use paste.ubuntu.com [12:45] and we don't need everything. ... [12:45] foxmask: pastebin $ find /snap/trigger-happy -type f -executable [13:27] Hi there, I just observed that the ubuntu-core snap in my ubuntu 16.04 is "broken". What does it means specifically, and how can I fix it? Thanks [13:37] qengho: http://0bin.net/paste/C5xRZcgI3Fm6Otb2#l-0oY43Oxh8pds9dL1lijoTx5ioHwjUUGpl8WGmY/8B [13:37] * foxmask bacj [13:37] * foxmask back [14:08] qengho: forget all of that . that will wait :) [14:08] cu === chihchun is now known as chihchun_afk === mup_ is now known as mup [21:28] Is there a way to pass shell variables in a snapcraft.yml? For example... CC="-static" ./configure [21:53] curious why I am getting this: make: *** No rule to make target 'world'. Stop. [21:53] Command '['/bin/sh', '/tmp/tmp6aq0q9nt', 'make', 'world', '-j1']' returned non-zero exit status 2 [21:53] this comes when I use snapcraft but the command itself: make world -j1 works from the command line