Skip to content

Instantly share code, notes, and snippets.

@JakeSidSmith
Last active April 22, 2024 20:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JakeSidSmith/859b4504432c1c3a55fdeacbf3ee6ffb to your computer and use it in GitHub Desktop.
Save JakeSidSmith/859b4504432c1c3a55fdeacbf3ee6ffb to your computer and use it in GitHub Desktop.
Openbox config to launch a full screen Chromium on Raspberry Pi running Raspbian Lite
# Disable any form of screen saver / screen blanking / power management
xset s off
xset s noblank
xset -dpms
# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp
# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --disable-infobars --kiosk 'https://jakesidsmith.com'

sudo nano /boot/cmdline.txt

Ensure that the following are set logo.nologo quiet console=tty3 loglevel=3

Optionally hide the cursor with vt.global_cursor_default=0 (this will apply to all terminals)

Remove splash screen maybe?

sudo nano /boot/config.txt

Set disable_splash=1

sudo nano /boot/config.txt

Ensure that disable_overscan=1 is defined

Comment out any other references to overscan

After you have installed your chosen OSes, add the following file to the root directory of NOOBS to force the indicated partition to be booted at power-on.

Add a text file named autoboot.txt to the root directory of NOOBS.

Add boot_partition=<partition number> to the file and save it to disk.

This will also prevent the splashscreen from being displayed at boot. The partition number can be found by running sudo fdisk -l the partition will be one of the FAT32 partitions /dev/mmcblk0p6 would be partition 6. Note that once an autoboot.txt file is present, there's then no way to force the NOOBS GUI to display, until you delete (or rename) the autoboot.txt file.

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