hadeska | im trying to add a physical network interface to a lxd container on ubuntu core but it doesnt seem to work , anyone could help ? | 00:35 |
---|---|---|
=== chihchun_afk is now known as chihchun | ||
=== shuduo_ is now known as shuduo | ||
shuduo | anyone has run Victor Palau's glowapi on RPi2? I always got 404 error with the REST api link (replaced with real IP). | 11:04 |
yashi_ | Chipaca: thank you for merging my change | 13:29 |
yashi_ | Chipaca: however, merge seems to be done only for python3. | 13:29 |
yashi_ | Chipaca: http://bazaar.launchpad.net/~yashi/snapcraft/snapcraft/revision/210 has both 2 and 3, though. | 13:30 |
Chipaca | yashi_: i merged sergio's branch, which was a branch of yours | 13:30 |
DexterF | hi | 13:30 |
Chipaca | yashi_: not sure if that answers it | 13:30 |
Chipaca | DexterF: hi | 13:30 |
Chipaca | shuduo: i haven't, but, what rest api link? | 13:31 |
DexterF | I'd like to run the snappy kernel on Ubuntu Mate for Raspi2. My idea was get the snappy kernel source and just dpkg-buildpackage it, but I cannot find the src. help? | 13:32 |
Chipaca | DexterF: there aren't snappy kernels | 13:32 |
Chipaca | DexterF: just kernels | 13:33 |
Chipaca | DexterF: that are used by snappy | 13:33 |
DexterF | https://developer.ubuntu.com/en/snappy/ <- what would you call the kernel that the pi2 image here contains? | 13:35 |
DexterF | or rather this one http://people.canonical.com/~platform/snappy/raspberrypi2/ubuntu-15.04-snappy-armhf-rpi2.img.xz | 13:36 |
DexterF | either way, the kernel that that image boots, I'd like to port that to ubuntu-mate/pi2. pointers appreciated. | 13:37 |
Chipaca | DexterF: i presume ubuntu-mate/pi2 is ubuntu? | 13:37 |
* Chipaca downloads ogra_'s rpi2 image to take a look | 13:39 | |
DexterF | no, it's slackware with a ported GNU/Herd kernel running on a Sun. | 13:39 |
DexterF | that's why it is called ubuntu-something | 13:39 |
Chipaca | DexterF: in that case, the kernel it uses is an ubuntu package, from an ubuntu archive | 13:40 |
DexterF | Chipaca: I had a look at the ubuntu git tree but could not find it. | 13:41 |
Chipaca | DexterF: couldn't find what? | 13:41 |
Chipaca | the kernel used in ubuntu-mate/rpi2, or the kernel used in snappy ubuntu core for rpi2? | 13:41 |
DexterF | the ubuntu package for that kernel. | 13:42 |
Chipaca | the kernel used in ubuntu-mate/rpi2, or the kernel used in snappy ubuntu core for rpi2? | 13:42 |
DexterF | the one used in snappy | 13:42 |
DexterF | or snappy ubuntu core if you prefer | 13:42 |
Chipaca | DexterF: did you find the other one, then? | 13:43 |
DexterF | Chipaca: is the plain linux-source package that comes with the distro, so yes. but that's a 3.18 kernel so making a config from that is a bit tedious, plus I don't know if I could just like that port it to a vanilla 4.2 src | 13:44 |
Chipaca | DexterF: can you point me at where that package comes from? | 13:45 |
Chipaca | DexterF: apt-get --print-uri would probably help | 13:45 |
DexterF | apt-get install linux-source. wherever it gets those. | 13:45 |
DexterF | sec | 13:45 |
DexterF | E: Command line option --print-uri is not understood | 13:46 |
Chipaca | --print-uris | 13:46 |
DexterF | neither | 13:46 |
Chipaca | tab is your friend | 13:46 |
DexterF | apt-get --print-uris linux-source | 13:47 |
DexterF | E: Command line option --print-uris is not understood | 13:47 |
Chipaca | apt-get install --print-uris linux-source | 13:47 |
DexterF | linux-source is already the newest version. :) I try and force, sec | 13:48 |
Chipaca | --reinstall | 13:48 |
DexterF | did that, does not become any more verbose either. I'll uninstall, if that don't help... | 13:49 |
DexterF | ill wireshark... | 13:49 |
DexterF | no, not even now. let me check sources.. | 13:51 |
Chipaca | hold on | 13:51 |
Chipaca | what are you doing, exactly | 13:51 |
DexterF | trying to get apt to tell me where it gets the linux-source package, since you asked for that | 13:51 |
Chipaca | DexterF: show me the command you are entering | 13:52 |
DexterF | apt-get install --print-uris linux-source | 13:52 |
DexterF | after purging the package | 13:52 |
Chipaca | and what is the output? pastebin it please | 13:53 |
DexterF | http://pastebin.com/ThshALLL | 13:54 |
Chipaca | this is what you *should* be getting: | 13:57 |
Chipaca | apt-get -qq install --print-uris --reinstall linux-source | 13:57 |
Chipaca | 'http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-source-4.2.0_4.2.0-12.14_all.deb' linux-source-4.2.0_4.2.0-12.14_all.deb 107776972 MD5Sum:fa90f64d3f1132715605b64e146ff992 | 13:57 |
Chipaca | 'http://archive.ubuntu.com/ubuntu/pool/main/l/linux-meta/linux-source_4.2.0.12.12_all.deb' linux-source_4.2.0.12.12_all.deb 2184 MD5Sum:68331205b67b02230581fe26a54ffd52 | 13:57 |
Chipaca | no purging necessary | 13:57 |
Chipaca | this is for an amd64 box, but it shouldn't make a difference | 13:57 |
Chipaca | can you, in fact, install that package? | 13:57 |
DexterF | Chipaca: the package installs fine | 13:58 |
Chipaca | strange | 13:58 |
Chipaca | DexterF: the reason i'm asking is because until very recently we didn't have an ubuntu kernel that worked properly on the raspberry pi 2 | 14:01 |
Chipaca | DexterF: so I don't know where ubuntu-mate/rpi2 is getting its kernel | 14:01 |
Chipaca | DexterF: but it's not an ubuntu kernel | 14:01 |
DexterF | Chipaca: who is "we"? | 14:01 |
Chipaca | DexterF: humanity | 14:02 |
DexterF | ... | 14:02 |
Chipaca | DexterF: so that's probably a linux kernel from e.g. raspbian | 14:02 |
DexterF | I'll ask them. what you say is a bit strange, though, a gernem IT newspage (still one of the better ones) announced that snappy ubuntu core now has a spanking new 4.2 kernel with full raspi2 support. hence my question who "we" was, assuming you are a snappy developer | 14:05 |
Chipaca | I am | 14:06 |
Chipaca | ogra_ will know more about the kernel without having to dig -- sorry i wasn't able to help you dig further | 14:07 |
Chipaca | however he is off today | 14:07 |
Chipaca | DexterF: i don't see why you say it's strange | 14:08 |
Chipaca | DexterF: what I'm saying is completely compatible with what you say that newspage says | 14:09 |
DexterF | Chipaca: maybe I get somethign wrong here: for a moment assume I know linux for a bit and then tell me, what is snappy and what is ubuntu core? | 14:11 |
Chipaca | DexterF: ubuntu core is a minimal ubuntu flavour, aimed mostly at people building appliances or single-purpose servers | 14:12 |
Chipaca | more or less :) | 14:12 |
DexterF | ok. and snappy? | 14:12 |
Chipaca | DexterF: snappy is a new way of packaging a distribution that uses transactional updates on a mostly readonly system | 14:12 |
DexterF | transactional mainly means: there are rather images than packages that get mounted over an existing tree? | 14:13 |
Chipaca | DexterF: evolved from the tech we (ubuntu) developed for the phone | 14:13 |
Chipaca | DexterF: transactional meaning the system updates as a whole, or fails to update as a whole | 14:13 |
DexterF | mmmmmhnope, don't get it | 14:13 |
Chipaca | DexterF: what don't you get? | 14:15 |
DexterF | the "updates or fials as a whole" thing. | 14:16 |
DexterF | at tech level, how are snappy... "packages" different from say deb packages | 14:17 |
Chipaca | ah | 14:17 |
Chipaca | DexterF: snaps have a much simplified dependency structure; no libaries, no conflicts, just a dependency on frameworks can be expressed. Snaps are not extracted into a common directory, but into their own little place, and when the services and binaries in them are run, they do so in their own little jail | 14:22 |
DexterF | Chipaca: how is that different from Docker or LXC? | 14:22 |
Chipaca | DexterF: how is that the same? | 14:22 |
DexterF | well, put everything required to run the package in a sandbox that does not depend on much | 14:23 |
Chipaca | DexterF: aren't those entire systems? don't you actually boot those? | 14:25 |
DexterF | but anyway, maybe I'm not doing this right: all I need is a minimalistic distro that brings me the comfort of central package management like apt, zypper, yum or whatever and a kernel running on a raspi2 including i2c and all, which would be 4.2 and higher. | 14:26 |
DexterF | Chipaca: uh, no, those are container concepts, these run against the same kernel as the host system | 14:27 |
Chipaca | DexterF: but you boot the container | 14:27 |
Chipaca | DexterF: with its own init and all | 14:28 |
DexterF | so maybe I should rather look at ubuntu core? but 4.2 is a must, hence that news item got my attention | 14:28 |
DexterF | Chipaca: good question, I actually only read up on docker and lxc but never implemented a setup | 14:28 |
Chipaca | DexterF: https://lists.ubuntu.com/archives/snappy-devel/2015-September/001058.html | 14:31 |
Chipaca | DexterF: that answers several of your questions, i think | 14:32 |
Chipaca | including the name of the source of the kernel package | 14:32 |
giminni | hello I have a problem to execute "docker exec -ti <progname> bash the message output is "type=1400 audit(1443969471.682:30): apparmor="DENIED" operation="open" profile="docker_docker-daemon_1.6.2.003" name="/" pid=<pid-#> comm="docker.x86_64" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 How can I exec into a running container? even docker attach is hanging arount, appreciate any hints on that | 14:51 |
giminni | I am running the latest snappy & updates | 14:52 |
giminni | (amd64)ubuntu@localhost:~$ docker info | 14:53 |
giminni | Containers: 2 | 14:53 |
giminni | Images: 43 | 14:53 |
giminni | Storage Driver: aufs | 14:53 |
giminni | Root Dir: /var/lib/apps/docker/1.6.2.003/aufs | 14:53 |
giminni | Backing Filesystem: extfs | 14:53 |
giminni | Dirs: 47 | 14:53 |
giminni | Dirperm1 Supported: true | 14:53 |
giminni | Execution Driver: native-0.2 | 14:53 |
giminni | Kernel Version: 3.19.0-28-generic | 14:53 |
giminni | Operating System: <unknown> | 14:53 |
giminni | CPUs: 1 | 14:53 |
giminni | Total Memory: 741.1 MiB | 14:53 |
giminni | Name: localhost.localdomain | 14:53 |
giminni | ID: 7M25:QCMT:AQJM:X5HZ:PVLW:CK7A:4VYA:7CIP:GLOK:HXA7:UGV5:L2EI | 14:53 |
giminni | WARNING: No swap limit support | 14:53 |
giminni | (amd64)ubuntu@localhost:~$ docker version | 14:53 |
giminni | Client version: 1.6.2 | 14:53 |
giminni | Client API version: 1.18 | 14:53 |
giminni | Go version (client): go1.4.2 | 14:53 |
giminni | Git commit (client): 8f2d6e5 | 14:53 |
giminni | OS/Arch (client): linux/amd64 | 14:53 |
giminni | Server version: 1.6.2 | 14:53 |
giminni | Server API version: 1.18 | 14:53 |
giminni | Go version (server): go1.4.2 | 14:53 |
giminni | Git commit (server): 8f2d6e5 | 14:53 |
Chipaca | giminni: suggest you ask again tomorrow; most people are off today | 15:23 |
giminni | thx I'll do that tomorrow | 16:01 |
shuduo | Chipaca, http://victorpalau.net/2015/10/02/piglow-api-one-small-snap-for-humanity/ | 16:14 |
Chipaca | shuduo: has the service started successfully? | 16:15 |
Chipaca | shuduo: "snappy service status" should tell you | 16:15 |
shuduo | Chipaca, i can see glowapi status is "enabled; loaded; active (running)" | 16:22 |
Chipaca | shuduo: ok. And can you connect to port 8000 from the board itself? | 16:23 |
Chipaca | e.g. by doing "telnet localhost 8000" | 16:24 |
shuduo | Chipaca, there is no telnet in snappy image. should i install it? | 16:25 |
Chipaca | ah, that's true | 16:25 |
Chipaca | netcat (nc) | 16:25 |
Chipaca | shuduo: i mean: nc localhost 8000 | 16:27 |
shuduo | Chipaca, yes, it stuck now and no output | 16:27 |
Chipaca | shuduo: write "GET /" and hit enter twice | 16:27 |
shuduo | Chipaca, it outputs "HTTP/1.1 400 Bad Request" | 16:28 |
shuduo | Chipaca, btw, i just hit once then it exit with above output | 16:28 |
Chipaca | shuduo: so, piglow is listening to port 8000 | 16:28 |
Chipaca | shuduo: and if you use your external address instead of localhost? | 16:29 |
shuduo | Chipaca, yes, i just tried again and it returns "404 page not found" | 16:30 |
Chipaca | shuduo: where did you try that from? | 16:31 |
Chipaca | because 404 is not 400 | 16:31 |
Chipaca | it's a different response | 16:31 |
Chipaca | and it shouldn't be | 16:31 |
shuduo | i paste victor's link to my browser and replace localhost with its real ip address | 16:31 |
Chipaca | shuduo: ok, backpedal a bit | 16:33 |
Chipaca | shuduo: first, none of those urls are browser-friendly | 16:33 |
Chipaca | shuduo: because they all need to be POST | 16:33 |
Chipaca | and if you're just writing the url in your browser it won't work | 16:34 |
Chipaca | give me a bit | 16:35 |
Chipaca | shuduo: are you ssh'ing in to the board, or are you typing at it manually? | 16:36 |
shuduo | Chipaca, i tried to copy an example code of using nc to send POST to localhost but it returns 400 error. i guess my command is not correct. | 16:36 |
shuduo | Chipaca, i'm sshing | 16:36 |
Chipaca | shuduo: try this: python3 -c 'from urllib.request import urlopen; print(urlopen("http://localhost:8000/v1/on", data=b""))' | 16:37 |
shuduo | Chipaca, cool. it works now. piglow be turned on for 1 sec. thanks | 16:38 |
Chipaca | ah, missing a .read() there | 16:38 |
Chipaca | shuduo: try this: python3 -c 'from urllib.request import urlopen; print(urlopen("http://localhost:8000/v1/on", data=b"").read())' | 16:38 |
Chipaca | shuduo: now, that's still localhost | 16:38 |
Chipaca | shuduo: try it remotely, does that work now? (change "localhost" to the right ip) | 16:39 |
shuduo | Chipaca, with read(), it looks same. led turned on for 1 sec and exit. | 16:39 |
Chipaca | that's ok. It's just that if the piglow returned anything, without the read() you wouldn't see it | 16:39 |
Chipaca | shuduo: try it remotely; if that works, you're set, but i suspect there's something else going on as well | 16:40 |
shuduo | Chipaca, yes, remote accessing works good too. | 16:40 |
Chipaca | ah, neat | 16:40 |
Chipaca | i wonder why the browser was saying 404 instead of 400 | 16:40 |
Chipaca | anyway, never mind, it works \o/ | 16:40 |
Chipaca | shuduo: if you want to make it work with a browser, you need to write some html | 16:41 |
Chipaca | shuduo: and probably some javascript in the html unless you just want to hit one endpoint :) | 16:41 |
Chipaca | e.g. <form action="http://the.ip:8000/v1/on"><input type=submit value=on></form> | 16:43 |
shuduo | Chipaca, got it. i see someone can control piglow by an app from ubuntu phone on a video. | 16:43 |
=== shuduo is now known as shuduo-afk | ||
=== chihchun_afk is now known as chihchun | ||
=== Tristit1a is now known as Tristitia | ||
=== popey_ is now known as popey |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!