Skip to content

Instantly share code, notes, and snippets.

@joestrong
Last active April 6, 2023 13:30
Show Gist options
  • Save joestrong/dbee77820bb2290cba188bf24f37e54d to your computer and use it in GitHub Desktop.
Save joestrong/dbee77820bb2290cba188bf24f37e54d to your computer and use it in GitHub Desktop.
Boot to application on Raspberry Pi

How to boot straight to application, with auto-login, and fluxbox as a window manager

  1. Write the raspbian-jessie-lite image to an SD card
  2. Run apt-get install xorg-server xinit fluxbox
  3. Edit /etc/systemd/system/getty.target.wants/[email protected] and add your username to ExecStart like ExecStart=-/sbin/agetty -a <user name> %I $TERM
  4. Add to bottom of .profile: [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
  5. Add ~/.xinitrc with:
exec /usr/bin/startfluxbox
  1. Edit ~/.fluxbox/startup and execute your application where it tells you like myapp &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment