25

I am planning to use my RPi only for one application, which needs X server to be started.

This application is chromium, which requires A LOT of resources already.

I would like to start only the bare minimum (X server) to display chromium in --kiosk mode (fullscreen, can't exit, don't show desktop or anything else)

Is it possible, and if so, how?

cwd
  • 338
  • 1
  • 4
  • 12
DrakaSAN
  • 437
  • 1
  • 4
  • 12

2 Answers2

17

You can apply hildred's suggestion permanently by creating a ~/.xinitrc file:

#!/bin/sh

exec chromium --kiosk

This will then be applied if you are using a graphical login, so that you do not have to boot to console. To test it from the console, try startx with no arguments.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
15
startx chromium --kiosk --

startx is a wrapper for xinit which starts an xserver and one client program. It should do exactly what you want.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
hildred
  • 916
  • 1
  • 6
  • 21