openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

distcc image todo #158

Open bakercp opened 11 years ago

bakercp commented 11 years ago
#!/bin/bash

avahi-browse _distcc._tcp -r -t -p -l | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | tr '\n' ' ' > $HOME/.distcc/hosts

And this

export MAKEFLAGS="-s -j 16 CXX=/usr/lib/distcc/g++ CC=/usr/lib/distcc/gcc"
danzeeeman commented 11 years ago

Noted.

Thanks! On Jun 19, 2013 12:27 PM, "Christopher Baker" notifications@github.com wrote:

  • Fix keyboard layout (sudo apt-get install console-data and select us english for now)
  • Install avahi (sudo apt-get install avahi-daemon avahi-utils libavahi-compat-libdnssd-dev)

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/158 .

bakercp commented 11 years ago

@jvcleave ping.

bakercp commented 11 years ago

Cross reference : https://github.com/openframeworks/openFrameworks/issues/2134

bakercp commented 11 years ago

Just edited allowed nets to be less restrictive.

ALLOWEDNETS="127.0.0.1 192.168.0.0/8 10.0.0.0/8"

We need to make a note of this ... we should really be restricting things a bit ... but ...

bakercp commented 11 years ago

Perhaps ALLOWEDNETS should just be set to any with a note that anybody will be able to use the distcc server ... :)

bakercp commented 11 years ago

OK. So this is all working very well when the VM is bridged to the same network that the pi is connected to. When (for instance) you share internet with the PI (on os x) via ethernet, it puts the pi on a different subnet, which causes zeroconf to not recognize the distcc server. BUT as long as your ALLOWEDNETS include the PI's subnet (assigned by OSX networksharing) AND you manually add the ip of the server to the ~/.distcc/hosts file, it will connect with the server and all work just fine.

I would really like to figure out a way to allow this VM to plug and play with a PI plugged into the ethernet port of a mac by just addressing everything by the *.local addresses and without the requirement of the computer being on an active internet connection or bridged to an outside net .... i think it's possible, but haven't had time to really push it yet (I have it all set up on parallels that way and it works nicely, but parallels has the option to bridge to the host computer's default network interface, which makes things a little more automagical)

danzeeeman commented 11 years ago

I'll bug some of my VM masters on how to do that. On Jun 19, 2013 1:28 PM, "Christopher Baker" notifications@github.com wrote:

OK. So this is all working very well when the VM is bridged to the same network that the pi is connected to. When (for instance) you share internet with the PI (on os x) via ethernet, it puts the pi on a different subnet, which causes zeroconf to not recognize the distcc server. BUT as long as your ALLOWEDNETS include the PI's subnet (assigned by OSX networksharing) AND you manually add the ip of the server to the ~/.distcc/hosts file, it will connect with the server and all work just fine.

I would really like to figure out a way to allow this VM to plug and play with a PI plugged into the ethernet port of a mac by just addressing everything by the *.local addresses and without the requirement of the computer being on an active internet connection or bridged to an outside net .... i think it's possible, but haven't had time to really push it yet (I have it all set up on parallels that way and it works nicely, but parallels has the option to bridge to the host computer's default network interface, which makes things a little more automagical)

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/158#issuecomment-19699586 .

jvcleave commented 11 years ago

ran into an issue last night that required gcc 4.7 - is it dangerous or rocket surgery to have our configuration use 4.7?

danzeeeman commented 11 years ago

I'm not sure what did you need 4.7 for? On Jun 21, 2013 11:42 AM, "Jason Van Cleave" notifications@github.com wrote:

ran into an issue last night that required gcc 4.7 - is it dangerous or rocket surgery to have our configuration use 4.7?

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/158#issuecomment-19823502 .

jvcleave commented 11 years ago

it wasn't OF related but I was trying to compile a newer version of omxplayer - it was a vague error

jvcleave commented 11 years ago

reading more into this - nevermind - I think it's best to keep it the way it is

danzeeeman commented 10 years ago

@bakercp if you have admin rights let me make a new repo for the scripts in the VM image. updating stuff now.