/srv/irclogs.ubuntu.com/2014/10/14/#ubuntu-us-mi.txt

brouschmrgoodcat: I'm curious to see where you're taking this tactic01:33
mrgoodcatit's a no-go01:43
mrgoodcatyou had 2 choices and you chose correct01:43
mrgoodcatoh well, mistakes are just mistakes01:43
mrgoodcatbrousch: i was hoping to invade since you don't have 2 eyes01:46
mrgoodcatbut its just not a good idea01:46
brouschheh01:47
brouschI saw 2 choices but they ended up mostly the same01:47
mrgoodcatit would have required a pretty bad slip upp01:48
mrgoodcatbrousch: i keep missing those simple vulnerabilities01:59
brouscha lot of foam makes for a lot of places to look02:09
mrgoodcatapparently02:14
mrgoodcatbrousch: great game04:31
brouschYeah, ended up close04:32
mrgoodcatyou just took a huge chunk of the bottom right04:33
mrgoodcatand the middle wasn't decisive enough. I wish i had won the bottom left or been able to hold you in the top right. that would have been the differnece04:34
brouschI was quite happy with my top right04:35
mrgoodcati thought i could hold it04:36
brouschOk, bedtime04:38
mrgoodcatalright. night04:39
brouschMy fame spreads http://www.blog.pythonlibrary.org/2014/10/13/pydev-of-the-week-ben-rousch/11:50
bookiebothttp://goo.gl/FG5xPl - PyDev of the Week: Ben Rousch « The Mouse Vs. The Python11:50
PhillyMelt02Excellent article.  And a fellow UM alum.  GO BLUE!12:09
brouschPhillyMelt02: Are you near Detroit?12:16
PhillyMelt02Yeah, just north of Mount Clemens in Chesterfield Township12:17
brouschGoing to MUG tonight?12:22
rick_h_wheee party12:23
PhillyMelt02Yep, going to MUG.  It will be my first meeting12:28
brouschExcellent. Another ubuntu-mi person to meet12:32
PhillyMelt02I guess this is a silly question to you veterans, but is there anything I need to bring?12:33
mrgoodcattoday will be my first MUG too :)12:37
brouschI've never been to MUG, but I'm told they have wifi12:40
mrgoodcati think every public library has wifi12:43
mrgoodcathow late does MUG usually go?12:43
PhillyMelt02the site lists the meeting going until 8:4512:44
mrgoodcatsounds good to me12:50
=== _stink__ is now known as _stink_
=== smoser` is now known as smoser
cmaloneyGood morning13:54
rick_h_party13:55
rick_h_save me, I'm in marketing/sales hell13:55
cmaloneyrick_h_: Welcome to the other side. :)13:55
* rick_h_ dives on the floor looking for a dropped pistol13:56
cmaloneyheh13:59
cmaloneybrousch: Congrats on being the dev of the week. :)14:34
brouschNow if i could get the rpi to actually play a video it makes ...14:40
cmaloneyheh14:40
brouschDamn 700MHz CPU14:40
cmaloneyyeah, it's unfortunately a bit underpowered as a "desktop" computer.14:40
brouschweb browsing is painful14:43
mrgoodcatput arch and i3 on mine14:50
mrgoodcatruns just fine14:50
jrwrenyou are using the wrong video player.15:04
mrgoodcatoh god damnit15:04
mrgoodcatbrousch: me--15:04
jrwrenI playback 1080p h264 with rpi.15:04
mrgoodcatjrwren: same here15:05
mrgoodcatno problems15:05
jrwrenhardware assist h264 rules.15:05
jrwrennow we just need hardware assist browser rendering.15:05
mrgoodcatavi drooles?15:05
jrwrenavi is just a container. can put h264 in there.15:06
mrgoodcatidk anything about video codecs/containers/formats15:06
jrwrenmrgoodcat: now you do. :p15:06
mrgoodcati just know I play 1080p h264 since thats the settings i use for transcoding15:07
mrgoodcati actually use 720 most of the time though15:07
mrgoodcatpython requests vulnerability http://www.ubuntu.com/usn/usn-2382-1/15:23
bookiebothttp://goo.gl/agZIAT - USN-2382-1: Requests vulnerabilities | Ubuntu15:23
mrgoodcatalso an oxide vuln. a slightly bigger deal since chromium (and chrome?) uses it http://www.ubuntu.com/usn/usn-2345-1/15:34
bookiebothttp://goo.gl/vkqs60 - USN-2345-1: Oxide vulnerabilities | Ubuntu15:34
mrgoodcatwhelp, upon further reading i was wrong. chromium does not use oxide but oxide uses chromium. Oxide is a library that allows you to embed a Chromium-powered webview in QML applications. still should probably update though :)15:37
brouschjrwren: The codec and container selection is limited. I can generate avi files pretty well, but they're not h264. The built-in efficient RPi player will not play them. However VLC will play them if they are small enough not to use 100% of the CPU (240x180)16:09
jrwrenbrousch: i'm not really sure what you just said :)16:09
brouschI have not succeeded in generating h264 videos from the webcam, but I could from the official RPi cam16:09
jrwrenbrousch: ah. I see. You just need a better encoder :)16:10
brouschYes, and on-the-fly h264 encorder for rpi16:11
brouschThe videos from the official cam were quite nice, but something broke in the latest firmware or in my camera and it no longer works at all16:12
brouschThe good news is the solution for a generic webcam are more useful generally, and on laptops and such16:12
jrwrendoes the pri cam encode to h264 by default or something?16:16
jrwrenI guess I shouldn't be surprised. That is how cell phones do it.16:16
mrgoodcatjrwren: the raspicam supports raw and accellerated h.264 natively16:57
mrgoodcatthat's actually a property of the software though, so you could theoretically output in other formats with enough effort16:57
cmaloneyI love that Caribou sent me a survey about their new breakfast / lunch entrees.17:42
cmaloneySave for Caribou isn't in this state anymore I'm sure I'll be the best target audience.17:43
cmaloneyI don't know what they were thinking.17:46
mrgoodcatanybody have any experience in stripping down a linux so that it only runs a single program?17:55
jrwrenno. why would you want to?17:57
mrgoodcati'm not sure i do yet17:59
mrgoodcatin fact i'm sure i dont17:59
mrgoodcatbut it was just the first thing that came to my head when i was brainstorming ideas18:00
mrgoodcati want to make a yubikey door lock18:00
mrgoodcatthe problem is, in order to do that I have to expose a usb port18:00
mrgoodcatso nothing is stopping someone from plugging in a usb keyboard and hitting ctrl+c18:00
mrgoodcator ctrl+z18:00
mrgoodcator ctrl+\18:00
mrgoodcator any number of keyboard interrupts i'm sure exist but i'm not yet aware of18:01
jrwrenpretty easy to disable those.18:01
mrgoodcatso i'm trying to find a way to disable ALL of the possible interrupts18:01
jrwrenyou don't even have to do that.18:01
mrgoodcatwhat do i have to do then?18:01
jrwrenwrite your program to detach from term and start on system start. Then only interrupt it ctrl-alt-del, just disabled that in inittab or modern equiv18:02
mrgoodcatbut i need keyboard input in the program. can i do that detached?18:02
jrwrenoh, right, its just yubi.18:03
mrgoodcatactually i suppose thats a stupid question18:03
jrwrenhow about... don't use yubi :)18:03
mrgoodcatsince keyloggers have to work somehow18:03
jrwrenkeyloggers run in bg as root and "sniff" the device.18:10
jrwrenyour original idea to deal with signals might be easiest.18:11
jrwrenjust noop handle sigterm and sigpipe18:11
mrgoodcatyea18:11
mrgoodcatthats what i have so far18:11
jrwrenerr, rather sigint, not sigterm.18:11
mrgoodcati've ignored both18:11
mrgoodcatand sigquit18:11
jrwreni don't think term or quit can be triggered from KB.18:11
jrwrenprobably not a great idea to noop them.18:12
jrwrenoh, quit can be.  ctrl-\18:12
mrgoodcatit is18:12
jrwrenLEARN SOMETHING NEW EVERYDAY!18:12
mrgoodcati want to noop anything that could possibly be signaled18:13
jrwrenno, you really don't18:13
jrwrensignals exist for a reason.18:13
jrwrenyou don't want to un-unixify your process.18:13
mrgoodcatsorry18:13
mrgoodcatanything that could close the program18:14
jrwrenyou just want to stop the KB from doing things to your process.18:14
mrgoodcatyes18:14
mrgoodcati want keyboard signals ignored18:14
mrgoodcatctrl+y also sends sigquit18:15
mrgoodcatnope wrong18:15
mrgoodcatignore that18:15
jrwrenstop18:15
mrgoodcatstop what?18:16
jrwrenit sent sigstop.18:16
mrgoodcatoh yea18:16
jrwrenmrgoodcat: you doing this in python18:18
mrgoodcatfound a simple way to list all signals that can be triggered by kb stty -a| grep intr18:18
mrgoodcatyes i am18:19
jrwrenbecause a lot of what we just talked about are shellisms which may not be true in python18:19
jrwrenmrgoodcat: http://stackoverflow.com/questions/5475456/python-built-in-keyboard-signal-interrupts18:19
bookiebothttp://goo.gl/7ql0FI - linux - Python: Built-in Keyboard Signal/Interrupts - Stack Overflow18:19
mrgoodcatSIGINT and SIGQUIT are the only 2 that can kill python programs from the keyboard. Here is a much simpler solution: http://hastebin.com/ezufitutif.py18:31
bookiebothttp://goo.gl/fnEAQt - hastebin18:31
mrgoodcatit will print the pid on start so you can kill -9 $PID from another terminal18:31
jrwrenwould be interesting to toggle the disable of quit, because you really do want the nice cleanup of quit.18:33
jrwrenat_exit is your friend.18:33
jrwrenyou could use USR to turn QUIT disable on/off18:34
mrgoodcati was thinking of overriding the handler for one of them, and putting it into a sort of 'command' mode18:40
mrgoodcatctrl+\ then a valid yubikey18:40
mrgoodcatthen i could program new keys/terminate the program/anything else18:40
mrgoodcatthe program should never quit so i dont really need at_exit18:41
jrwrenhehe, *should*18:42
jrwrenyou going to log to disk?18:43
mrgoodcatprobably18:43
mrgoodcatnot that i think anybody is likely to try to break into my usb door lock, but it would be nice to have notifications of unauthorized attempts18:44
mrgoodcati've already got a twilio account set up18:44
mrgoodcat.sms mrgoodcat hey there from twilio :)18:44
bookiebotMessage sent18:44
jrwrenmrgoodcat: any disk writes is a good reason to allow propery quit instead of kill.18:49
mrgoodcatyea i'll probably enable quit in command mode or something. after you're already authenticated. it's very easy to toggle ignoring the signals18:54
cmaloneymrgoodcat: You could also make your thing a daemon18:57
cmaloneythat way it won't be subject to foreground signals18:57
mrgoodcatcmaloney: it needs keyboard input18:57
cmaloneythough I'd question the use of Linux for this. :)18:57
mrgoodcatit doesn't need to be professional grade security. i've still got a key for the back door and we all know what a joke keys are18:58
mrgoodcati think it's highly unlikely anybody skilled enough to worry about will be trying to break into my house18:58
cmaloneyWEll, you'll want it so if something does happen the default state is locked.18:59
cmaloneyThough again, if there's a fire or something similar you'll want something that can be easily defeated from the inside so you can escape18:59
cmaloneyeg: don't make it so you'll need ssh in order to get out of your house.19:00
mrgoodcatlol19:00
mrgoodcatmy house has multiple doors19:00
cmaloneyRight, but I'm cautioning you that you don't want the "no wait, one sec" between life and death.19:01
mrgoodcatlol right19:01
mrgoodcatthats the trade-off between fail-safe and fail-secure magnetic locks19:02
mrgoodcati have a fail-secure one in my closet though so that's more likely to be the one used. I'm not even sure i'm putting it on the front door though. Might use it for a locking cabinet or something instead19:02
mrgoodcatright now I just want to do it for fun. I'm not actually all that worried about the security aspect19:03
cmaloneyYou'll probably want to try it on a non-outward-facing door first19:05
mrgoodcatlol yes19:07
mrgoodcati'm not putting an untested product on my front door. it may eventually end up on an outside door, but even that isn't guaranteed19:07
jrwrenwow. https://github.com/rminnich/u-root19:31
bookiebothttp://goo.gl/GWqp2c - rminnich/u-root · GitHub19:31
mrgoodcatjrwren: what is that used for?19:47
jrwrenmrgoodcat: i don't know, but it is a cool hack.19:48
mrgoodcatyea it is lol19:48
mrgoodcati can't get it to work :<19:57
mrgoodcatwoah i got it working20:01
mrgoodcatit's pretty wild watching it compile the commands as they are used20:01
jrwrenha! nice!20:01
jrwrenI didn't try it.20:01
mrgoodcatnot sure what use this is though...20:03
mrgoodcatmaybe super tiny linux20:03
mrgoodcatbuild only the tools you use20:03
jrwrenright20:03
jrwrenAND a dev environment20:04
jrwrenits the start of an all Go linux.20:04
jrwrenwhat are the 5 bins by default?20:04
mrgoodcathttp://www.ubuntu.com/usn/usn-2372-1/ http://www.ubuntu.com/usn/usn-2383-1/20:05
bookiebothttp://goo.gl/4LONqH - USN-2372-1: Firefox vulnerabilities | Ubuntu20:05
mrgoodcathmm interesting... he only found 120:05
mrgoodcatthere are no bins by default20:06
jrwrenmust be the go compilers and linker then.20:07
brouschcmaloney: I'm heading out. See you around 6-6:3020:10
mrgoodcatjrwren: just created a new root and ls'd all the directories in the path20:12
mrgoodcatsh and ls are the only 2 there20:12
mrgoodcatand it had to build sh on start, and ls the first time i used it20:13
mrgoodcati'd suggest NOT running this on a machine you really care about20:15
mrgoodcatit sort of borked my session and i had to reboot20:15
mrgoodcatnow i don't know what else might be screwed up :<20:16
jrwrenmrgoodcat: OH MY!20:16
mrgoodcatoh no it was just my path20:18
jrwrenthat would have been my guess.20:18
mrgoodcatjrwren: where did you find that?20:21
jrwrentwitter20:21
mrgoodcatfriend or someone well known?20:22
cmaloneybrousch: Awesome. Thanks again!20:25
cmaloneyI'm not sure I understand that code20:30
cmaloneyfor the all go Linux.20:30
mrgoodcatwhat don't you understand about it20:30
cmaloneyPoint? Setup? :)20:32
cmaloneyhttp://humblebundle.com20:32
bookiebothttp://goo.gl/ng1UK - Humble Mozilla Bundle: Powered by asm.js (pay what you want and help charity)20:32
cmaloneyThat. Is. Cool.20:33
mrgoodcatcmaloney: it doesn't seem to have a point... the setup is pretty simple though. it requires your go install to be at /go20:36
mrgoodcatthen you run ./scripts/getgo20:36
mrgoodcatthen you run ./README20:36
mrgoodcatand it will boot the example in a chroot20:36
mrgoodcatit can also be booted as a KVM image though20:36
mrgoodcatok time to go home20:37
mrgoodcatsee you at MUG20:37
cmaloneyHave fun!20:49
rick_h_party21:13
cmaloneyEvening21:20
jrwrenugh.21:25
jrwrenrick_h_: isn't it like midnight there? :)21:25
mrgoodcatexactly, party time22:35
mrgoodcatcmaloney: that accident wasn't you was it?22:38
cmaloneymrgoodcat: No, just slow driving over here22:55
cmaloneyRain + Michigan driving = slowmofo22:55
tony-smlrMUG - Michigan!/usr/group (www.mug.org)  Live Meeting - Raspberry Pi and Owncloud http://www.youtube.com/watch?v=3v_M6OmuOBU22:59
bookiebothttp://goo.gl/sHCTUe - October 14th 2014 - Raspberry Pi and OwnCloud - YouTube22:59

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