Labels

Tuesday, August 13, 2013

Trying to resolve a standard interface bootup structure

I have been trying over last weekend to get my setup to come up with the hostapd and dhcp server running along with x11vnc running and showing display :0.  Sometimes it works, and sometimes I have to log into the RPi to start something that didn't catch the first time.  There may be some timing issues here.

I want to be able to simply plug in the RPi with hub and peripherals and have it come up so that I can connect my iPad 2 both at home and at work.  Since there is a wi-fi proxy at work, with a capture page, this presents an unusual issue that needs to be resolved.  At work, I have to open up a browser, then enter in a username and password (which changes every two weeks or so) before I can get an internet connection.  At home, I have a wireless router which uses a standard form of encryption - that one is easy to get connected to.  However, going between each environment has its issues.  Solving this issue is the first one that I will need to solve in order to automate the standard interface on new SD cards as I use them.  If I can just mount a USB stick and run a script on a new SD card to setup the interface that would be nice.  Instead, I find myself having to go around the issue and log in a different way to get my setup the way that I want.  More on this later.

Update: I should probably turn this idea into a standard script to be runnable off of a usb stick.  That way, I can use the stick to setup a standard setup prior to modifying the setup for anything else.