Skip to content

Instantly share code, notes, and snippets.

@rampfox
Last active May 29, 2025 14:05
Show Gist options
  • Save rampfox/085bf3ffb9ff51e114bf7afdf3ced71b to your computer and use it in GitHub Desktop.
Save rampfox/085bf3ffb9ff51e114bf7afdf3ced71b to your computer and use it in GitHub Desktop.
How to open Chromium in full screen at startup on the Raspberry Pi

(debian 10 buster)

First, it seems that ~/.config/lxsession/LXDE-pi/autostart does not exist by default.

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
  1. open the autostart with nano
nano ~/.config/lxsession/LXDE-pi/autostart
  1. Then edit the autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash
point-rpi
chromium --start https://google.com/

if you want to autostart incongnito mode

@chromium-browser --incognito --start https://google.com/

chromium --incognito https://google.com/

^ + x exit and save

then sudo reboot to try on


the various other browser modes:

  • Application Mode: @chromium-browser --app. The browser starts up without displaying any toolbars.

  • Full-screen mode: @chromium-browser --start-fullscreen. The browser starts in app. mode but expanded to full-screen. You can press the F11 key to break out of full-screen mode.

  • Kiosk mode: @chromium-browser --kiosk. The browser starts in full-screen mode but does not respond to the F11 key, nor to any command to get it to switch tasks.

@BlueSaved
Copy link

I realize this is an old thread, but is there a way to rotate the display while in kiosk mode? I already succeeded in rotating the display in config.txt, but kiosk mode seems to reset that. The cursor and touch input still behaves as though the display is rotated, but the kiosk itself is inverted.

@Mtillmann
Copy link

@BlueSaved

If you're using a browser, something like this would probably be the easiest way:

body {
  transform: rotate(90deg);
  transform-origin: top left;
  position: absolute;
  top: 100%;
  left: 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment