ntopper
Posts: 2
Joined: Wed Nov 14, 2012 3:29 pm

I'd like to automatically connect to wifi if avalable

Wed Nov 14, 2012 3:49 pm

This is my first post, Hi all!

So I just got my Pi in the mail, and up and running for the first time. I plan on using it on the road over a couple different wifi networks, and I do not want to carry a monitor in by backpack.

I have this coming in the mail:
http://www.ebay.com/itm/330646461862?ss ... 1497.l2649
(I read in another thread that a few people were successful with this product)

My solution is this:

I would like to wright a script that, upon start-up:
Automatically connects to Ethernet network if available
Automatically connects to known WiFi network if available
If an IP address exists, wright the IP address and network name to the serial port (a peripheral will display it)

That way, when I start up my device, It will connect, and I will have an IP address for SSH and whatever else I need. I'm interested in using a remote desktop.

However, I'm rather new to Linux, and very new to networking. I'm not quite sure how to make this work, or if this is the best solution to my "Get on an arbitrary network without a display" problem.

Does someone want to point me in the right direction?

Thanks guys!

bgirardot
Posts: 518
Joined: Wed Oct 10, 2012 6:20 am
Location: Switzerland

Re: I'd like to automatically connect to wifi if avalable

Wed Nov 14, 2012 10:39 pm

Welcome!

Aside from the LCD, the most popular linux distro for the RPi, raspbian, essentially works like that out of the box, no script required.

You will have to config your wireless adapter, very easy, there is a GUI to do it, or you can edit a text file which is the config file.

Then buy a cheap lcd and do as described here:
http://learn.adafruit.com/drive-a-16x2- ... spberry-pi

Someone is making an lcd already soldered to a board that just plugs into the gpio header if you don't want to solder.

ntopper
Posts: 2
Joined: Wed Nov 14, 2012 3:29 pm

Re: I'd like to automatically connect to wifi if avalable

Thu Nov 15, 2012 1:03 am

That's great! Thanks! I'm going to follow the tutorial, but I am interested in replacing the LCD with Bluetooth (I have a space JY-MCU unit), and I can get the IP address to display on my cell phone.

Return to “Networking and servers”