I'd like to put my Raspberry Pi into a kiosk mode with Chromium directed to my website but I can't seem to figure out how to get it to work. I've been following a few different guides, and the code they have given me has all been slightly different so I'm not sure what exactly to follow.

So far I've tried a few different variations of changing the code in


with this:

#@xscreensaver -no-splash
@xset s off
@xset -dpms
@xset s noblank
@chromium --noerrdialogs --kiosk http://localhost --incognito

I also put the same code in


It still boots to just the desktop and I'm at a loss of what to do, as there doesn't seem to be very many tutorials discussing this and none that are recent.

  • 1
    Hello and welcome. Have a look here and let us know whether that's helpful or not. – Ghanima Jan 6 '16 at 1:35
  • 1
  • 1
    Thanks for the help but that did not do the trick either. Honestly this is kind of ridiculous. This seems like a common thing people would want to do with their pi, yet there is little to no info on how to do it and the steps seems to change for every iteration of the OS. – DavidK Jan 7 '16 at 0:02

I have a Raspberry Pi 2 running Raspbian Jessie with Chromium 45 installed. I found that you need to copy the existing autostart file to your local:

cp /etc/xdg/lxsession/LXDE-pi/autostart /home/pi/.config/lxsession/LXDE-pi/autostart

So edit this local version:

nano /home/pi/.config/lxsession/LXDE-pi/autostart

#@xscreensaver -no-splash  # comment this line out to disable screensaver
@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --incognito --kiosk http://localhost/  # load chromium after boot and point to the localhost webserver in full screen mode


sudo reboot
  • 1
    FINALLY! The right file! – Quintin Balsdon Jun 8 '16 at 8:30
  • 3
    Before trying this, I want to know how to get out of Kiosk mode so I can make changes. Yet, I don't want anyone else to be able to do that. – Chiwda Feb 28 '17 at 12:01
  • 1
    I guess you could, at worst, SSH in from somewhere else and edit the file to remove the autostart options? – Neil Barnwell Nov 29 '17 at 18:40
  • 1
    Yep. ssh -Y kioskname into the system, then sudo killall chromium-browser will kill it. Then you can just run Chromium via the ssh connection to change settings in the browser. Then sudo init 6 will cleanly reboot it. – SDsolar Jun 28 '18 at 0:29

By default the Pi the auto-logon X environment is done with credentials of the pi user. The config setting's of the Xserver environment of this user is in /home/pi/.config/lxsession/LXDE-pi/autostart, NOT in /etc/xdg/lxsession/LXDE-pi/autostart (this is the environment for the root user).

protected by Community Mar 23 '18 at 7:53

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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