googlecreativelab / coder

A simple way to make web stuff on Raspberry Pi
http://goo.gl/coder
Apache License 2.0
2.42k stars 276 forks source link

How to connect coder to a secure wifi network #52

Open shanepisko opened 10 years ago

shanepisko commented 10 years ago

Looking for a bit of explanation as to the ability to connect coder to a wifi network. I am looking to use raspberry pi with wifi dongle to run a projector remotely. Once the pi and wifi are set up and i am able to connect directly to the pi via wifi,

How do i connect the pi to a local wireless network that is secured? i saw in a screenshot that there is a settings panel that had a wifi config button, is this the same as the wifi config as one would see on the pi desktop? Also is there some way to put the wifi config into a coder app? Or rather include the wifi config as part of a coder app that i create?

jmstriegel commented 10 years ago

Click the gear to get into settings, then click Wifi Settings. You can scan and select your network, then enter the password for that network.

Also, Coder is set up to use ethernet if ethernet is connected. If ethernet is disconnected, it will try to first connect to the wifi network you specified. If the wifi network doesn't exist, it will fall back on creating its own ad-hoc CoderConfig network. Make sure you get your wifi password right or it'll get stuck trying to get on the existing network with the wrong password, and you'll need to connect over ethernet.

You can also manually configure the wpasupplicant.conf by fiddling with the config on the SDCard from another machine. It'll get ingested on boot and replace any settings you configured in Coder. This is way more complicated, though, so I recommend connecting via ethernet, setting things up in Coder's wifi app, and then rebooting, unplugging ethernet and connecting via wifi.

Good luck!

shanepisko commented 10 years ago

Great thanks for the reply! So if it creates its own CoderConfig network could i then connect to that network on a desktop and then set CoderPi up to connect to my secured local network? I want the pi to have the ability to be hooked up to a local network remotely once its adhoc network is broadcast and allows a user to access it via a desktop.

jmstriegel commented 10 years ago

The Coder device can really only be on one network at once. The wifi radio isn't able to provide the ad-hoc connection at the same time as connecting to your secure network. If you can handle the system administration, there's a way you could could probably set things up so that it uses ethernet as an uplink and connects to the secure network at the same time.

Is there a reason why you don't connect your desktop to the same secure local network?

shanepisko commented 10 years ago

I want to make it do that a user can connect the device to their local wireless network without having to get on Ethernet. I'm trying to create a wifi connected projector with an inboard camera for projection mapping. I figure I could just have it so that the user connects the pi via Ethernet and then sets up their wifi, and then they can control remotely. Was just trying to get rid of that step for ease of use.

jmstriegel commented 10 years ago

Okay. So you want to do this:

  1. connect to pi via ethernet for setup purposes. configure it to connect to [yournetwork] over wifi.
  2. disconnect pi from ethernet. reboot. now pi is connected to [yournetwork].
  3. connect to [yournetwork] via wifi on your laptop or desktop.
  4. any machine on your [yournetwork] should be able to see the pi at coder.local
blackland1954 commented 10 years ago

Good stuff man