Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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


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; – wonea Jan 24 '13 at 17:11
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
@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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .