Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We have a raspberry pi in our office which boots directly into the browser using a line in the .profile file as follows

xinit /usr/bin/chromium --kiosk --incognito internalsite.internal.com

And a login bypass by changing the following line in the /etc/inittab file

change

1:2345:respawn:/sbin/getty 115200 tty1

to

1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

This works fine apart from the fact that when it boots up it displays a page can not be found message.... If we press f5 it loads the page correctly....

I have setup the exact same thing on a pi in my house and it works fine and the browser boots up and displays the specified web page perfectly.

The site is internal so does not go through a proxy.

What could be causing this?

share|improve this question
    
Perhaps asking the question here, might help; raspberrypi.stackexchange.com –  wonea Jan 24 '13 at 17:11
add comment

1 Answer

up vote 2 down vote accepted

Sounds like the network driver hasn't finished connecting yet, before the .profile script starts. Change the script to check that a valid IP has been obtained before sending the web request.

share|improve this answer
    
how do I go about doing that? –  coolblue2000 Jan 24 '13 at 16:27
1  
@coolblue2000 the easiest way would probably be to edit the .profile and add sleep 10 before the xinit line to make it wait for 10 seconds before executing xinit. You can set the sleep length to whatever suits your needs. –  terdon Jan 24 '13 at 17:08
    
Brilliant, I used sleep 10 which did not work, but sleep 30 works fine! Thank you –  coolblue2000 Jan 28 '13 at 11:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.