[07:07] <bzoltan> 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] <Son_Goku> zyga: ping
[10:25] <ogra_> bzoltan, 1) adduser with the --extrausers option .. 2) indeed, but not as root@$ip .... you need sudo (passwordless by default though)
[11:01] <bzoltan> ogra_: surprisingly the `ssh root@192.168.1.116 '/snap/bin/classic 'df -h''` works for me
[11:01] <ogra_> how could that be
[11:01] <ogra_> (on an unmodified image)
[11:02] <qengho> Those ' quotes look funny too.
[11:03] <ogra_> 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] <ogra_> (and would be a totally unsupported path too)
[11:04] <bzoltan> ogra_: I have set up the ssh auth
[11:04] <qengho> This works for me: ssh Addr -l Me 'sudo /snap/bin/classic df'
[11:04] <ogra_> surely not via the config tools
[11:04] <qengho> Without 'sudo', complains.
[11:04] <ogra_> yep
[11:06] <ogra_> 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] <bzoltan> ogra_: I see
[11:07] <ogra_> just hacking up the image like that will not behave like any other snappy install
[11:07] <bzoltan> ogra_:  make sense
[11:07] <bzoltan> ogra_: I am just hacking around :) and collect thoughts.
[11:07] <ogra_> (sadly i dont know much about the system-user assertions, but thats likely your way to go ...)
[11:07] <bzoltan> ogra_:  what is that config UI?
[11:08] <ogra_> well, console-conf ... the cli UI that starts on every tty on first boot of the image
[11:08] <bzoltan> ogra_:  hmmm... I have no hdmi display, neither usb keyboard
[11:08] <ogra_> well, every tty includes serial ;)
[11:08] <bzoltan> ogra_:  Have you seen the RPi osmc image installation?
[11:09] <ogra_> nope
[11:10] <bzoltan> 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] <ogra_> ah, something like that is in the TODO list ... but further out
[11:10] <bzoltan> ogra_:  with our stuff it is a bit too much hacking for a newcomer
[11:11] <bzoltan> ogra_:  do you want my team to work on making the RPi/DB installation more convenient?
[11:11] <ogra_> well, you dd, boot the board, run through the config ... done
[11:11] <bzoltan> ogra_:  It is kind of SDK stuff... making developer's life easy
[11:11] <ogra_> bzoltan, talk to sabdfl ;)
[11:12] <ogra_> there are frameworks (very roughly) defined already that were designed at the snappy sprints
[11:13] <ogra_> 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] <bzoltan> ogra_: how 'run thru the config' works without keyboard and and display?
[11:13] <ogra_> it doesnt
[11:13] <ogra_> you need access to a tty atm
[11:14] <ogra_> typically embedded/IoT people use serial consoles for that though
[11:14] <ogra_> (thats the current target audience)
[11:15] <ogra_> 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] <ogra_> (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] <bzoltan> ogra_:  I assume that for tty I need a GPIO-USB cable ...
[11:16] <ogra_> something like https://www.amazon.de/gp/product/B00KVUSI30
[11:17] <bzoltan> ogra_: yeps, I am familar with that.
[11:17] <ogra_> (thats the one i have)
[11:19] <bzoltan> ogra_: I need to dig up my inventory for that :) or make one...
[11:19]  * bzoltan is not in soldering mood
[11:19] <ogra_> heh
[11:19] <ogra_> you dont need to solder anything with the one above
[11:20] <ogra_> (there are little plugs at the ends of the cables, you just plug them onto the right pins)
[11:20] <bzoltan> ogra_: not if you have one :)
[11:21] <bzoltan> ogra_:  I know GPIO, I have all those cables and plugs for the headers. It is fairly easy to solder one...
[11:21] <ogra_> well, you need the FTDI electronics that are hidden in the USB plug
[11:22] <ogra_> its not a stragit usb cable
[11:22] <ogra_> *straight
[11:22] <bzoltan> ogra_: True, it is easier to buy one
[11:29] <mup> Bug #1637611 changed: snappy images should not ship /etc/profile.d/Z99-cloud-locale-test.sh <Snappy:Fix Released by ogra> <livecd-rootfs (Ubuntu):Fix Released by ogra> <https://launchpad.net/bugs/1637611>
[11:36] <qengho> Are there any docs on how app authors should be using "snap set"?
[12:06] <foxmask> someone use snapcraft for a django project ? i'd like to see how snapcraft.yaml looks like
[12:07] <qengho> foxmask: I haven't, but I can imagine it. Have you made anything with snapcraft yet?
[12:09] <foxmask> i try but I am not satisfied
[12:12] <ogra_> yay, my new kbd just got delivered
[12:12]  * ogra_ dances
[12:12] <qengho> Clicky?
[12:12] <ogra_> super clicky, super small :)
[12:12] <ogra_> vortex pok3r
[12:12] <qengho> ogra_: Photo plz.
[12:13] <ogra_> https://mechanicalkeyboards.com/shop/images/products/large_1239_IMG_0984.jpg
[12:13] <qengho> foxmask: Let's start with your yaml. Pastebin it?
[12:13] <ogra_> full metal body
[12:14] <qengho> ogra_: that's hot.
[12:15] <qengho> ogra_: I've been meaning to put braille caps on my keys so that I learn to read blind as I type.
[12:16] <ogra_> haha
[12:16] <ogra_> cool idea
[12:16] <ogra_> well, i'm still looking for a good set of SA or DSA caps for it now
[12:18] <ogra_> like https://pbs.twimg.com/media/CpyKqqEWYAUpvbY.jpg
[12:18] <ogra_> (probably less colorful)
[12:19] <ogra_> going back to commodore VIC20 typing ;)
[12:22] <ogra_> thats more like it https://imgur.com/S3N6i0L
[12:29] <foxmask> qengho: https://gist.github.com/foxmask/4d6ab10571a4d500778d70b336877ed2
[12:31] <qengho> foxmask: Those look great!
[12:32] <qengho> foxmask: For your command, you might find what you're looking for with...
[12:32] <foxmask> qengho: if only :)
[12:33] <foxmask> 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] <qengho> $ find /snap/trigger-happy/current -type f -name python2 -o -name manage.py
[12:33] <ogra_> try dropping the python in fromt of the command, let it use the shebang
[12:33] <ogra_> *front
[12:34] <qengho> foxmask: If it's python3, use that name to search, of course.
[12:35] <ogra_> and perhaps make it ./manage.py if the script isnt in PATH (i.e. $SNAP/bin )
[12:35] <foxmask> qengho: there is no python* on manage.py script in that path
[12:36] <foxmask> ogra_: i also tried command: manage.py  but here too, the command is not found
[12:36] <ogra_> where in your snap does it end up ?
[12:36] <qengho> foxmask: pastebin  $ find /snap/trigger-happy
[12:37] <foxmask> qengho: return nothing :)
[12:37] <foxmask> ogra_: how can I check the content of the snap ?
[12:37] <ogra_> 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] <qengho> foxmask: it returned something.
[12:37] <ogra_> build it, install it and look in /snap/$packagename/current/
[12:37] <foxmask> qengho: ok
[12:44] <foxmask> qengho: log exceeded the max size everywhere I paset :) I come back ; afk do 30m,
[12:44] <foxmask> paste*
[12:45] <ogra_> just use paste.ubuntu.com
[12:45] <qengho> and we don't need everything. ...
[12:45] <qengho> foxmask: pastebin  $ find /snap/trigger-happy -type f -executable
[13:27] <clobrano> 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] <foxmask> qengho: http://0bin.net/paste/C5xRZcgI3Fm6Otb2#l-0oY43Oxh8pds9dL1lijoTx5ioHwjUUGpl8WGmY/8B
[13:37]  * foxmask bacj
[13:37]  * foxmask back
[14:08] <foxmask> qengho: forget all of that . that will wait :)
[14:08] <foxmask> cu
[21:28] <linuxhiker> Is there a way to pass shell variables in a snapcraft.yml? For example... CC="-static" ./configure
[21:53] <linuxhiker> curious why I am getting this: make: *** No rule to make target 'world'.  Stop.
[21:53] <linuxhiker> Command '['/bin/sh', '/tmp/tmp6aq0q9nt', 'make', 'world', '-j1']' returned non-zero exit status 2
[21:53] <linuxhiker> this comes when I use snapcraft but the command itself: make world -j1 works from the command line