-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken pipe in linux? #1
Comments
Try setting the environment variable TRACE=true before running. |
Ah, great. So the webrtc code complained about packages-- seems like natty requires:
After installing these packages it works perfectly! ❤️ Thanks @oxtoacart and rest of @getlantern team -- this is great work! Now, those packages, aside from libnss3, they seem to be webrtc A/V specific. It would be great not to have to depend on them (ipfs -- and i would guess lantern too -- will need to be small enough to ship as a binary + work on embedded devices). |
And, the script I posted works as an example on various machines. Try it out: https://gist.github.com/jbenet/632d9459414b996e9457
I'll give you a cleaner waddell-netcat later. |
Here-- this may help future users: https://github.com/jbenet/go-netcatnat/ |
Ha! Sweet. Thanks @jbenet |
Thanks, @jbenet! Awesome to see the project you've already put together that uses natty! Our next step is to actually remove the unnecessary dependencies you mentioned, which should result in the final binary size being significantly smaller. |
Very cool! I might be inclined to hold off on the announcement until we've put the beta flashlight out with natty, seen how it does and worked out any major bugs that come up. I don't think it has to be perfect before we announce, but I think it could stand to have some more testing first. |
Yeah I think that makes sense to hold off for a second to harden it a bit, Seems like we're pretty much ready to build this huh? I guess the build On Thu, Nov 6, 2014 at 12:30 PM, oxtoacart notifications@github.com wrote:
President |
Hey @oxtoacart @atavism @teamlantern @myleshorton -- we (ipfs team, cc @whyrusleeping) can probably help with some stuff. Things like removing extraneous webrtc a/v, reducing binary size, adding arm arch, etc. Probably not right now, but over coming weeks. Feel free to come hang out at freenode/#ipfs and discuss. (also, very close to natty: jbenet/random-ideas#13) |
(and, not sure if you're doing this now, but whatever you embed and byteexec should definitely include a digital signature that's verified before executing. otherwise it's an easy to exploit vector) |
I would love to work on writing code to replace the binary hulk of code. Has any work been done towards that end? |
Thanks, guys! Right now, as you probably noticed, natty requires a full WebRTC checkout. This was done so that we're always able to build against the latest release, specifically the most recent version that appears in chromium. This is why we're using depot_tools, and specifically ninja, in the natty build process. Obviously, this increases the complexity and inflates the size of the resultant binaries, but it keeps us synchronized. That said, @whyrusleeping, yeah--I've done a bit to strip out the dependencies and simplify the build process. Mostly it's all about removing the audio and video libs as you surmised. I'm going to publish an updated README soon with details. Our initial goal was just to get natty working on every platform. Have you guys done a lot of work with WebRTC? Would definitely love to hear what you've been working on, any pointers you have, and possible collaboration. Feel free to shoot us an e-mail at bns-ops@googlegroups.com to chat more about it? |
@myleshorton I still need to finish the work on enabling/disabling stat reporting per the user's preference, but after that we could do a build (probably late tomorrow morning). I don't think the installer needs to do anything to copy executables, byteexec should just take care of that (unless the flashlight process wouldn't have permissions to write to the AppData/equivalent folders, which I don't think is an issue). |
@atavism great -- do you guys do irc (freenode/#ipfs) or +hangouts? we could discuss more realtime. |
I think a more realtime discussion would be great! We're in the middle of preparing our first release of flashlight and Lantern that uses natty, but that'll hopefully be out the door tomorrow. If all goes well, perhaps we can shoot for talking sometime late next week? |
Sure, sounds great. Will ping in a few days. Good luck! keep up the good work |
Hello! I'm considering using natty (and maybe waddell) in ipfs, which could probably be great for both projects. AFAIAC, NAT traversal using chromium's implementations is likely to be the best way going forward. And thanks for putting so much work into this!
Anyway, first problem. In OSX, I'm able to traverse to find my own machine, which is nice, but when I go to test nat traversal with a linux box it doesn't work.
When linux (no nat) is the server, and osx (behind nat) attempts to connect, it spits out:
When trying to connect from linux to anything (either osx behind a nat, or another process in the same linux machine), nothing happens, it just times out. (i'll look deeper and see if your libs have logging I can turn on, but so far I think linux doesn't work yet -- i recall reading that somewhere...)
You can see my awful toy example to try and connect: https://gist.github.com/jbenet/632d9459414b996e9457
The text was updated successfully, but these errors were encountered: