10. Dezember, 2017
Installing Chromium on Raspberry Pi without desktop
Start with a Rasbian light version.
Install chromium and x-server
sudo apt-get install chromium-browser
sudo apt-get install xserver-xorg
sudo apt-get install xinit
sudo apt-get install xserver-xorg
sudo apt-get install xinit
If you now start chromium-browser it will show the following error:
Failed to put Xlib into threaded mode.
Gtk-WARNING cannot open display
Gtk-WARNING cannot open display
this is because you have to start it with xinit:
xinit chromium-browser
Chromium will start, but you will need a minimal window manager.
sudo apt-get install matchbox-window-manager
Now you need a shell script to start your chromium
sudo nano start-c.sh
Insert the following lines, Exit with ctrl+x, Y and Enter.
#!/bin/sh
matchbox-window-Manager -use_cursor no&
chromium-browser
matchbox-window-Manager -use_cursor no&
chromium-browser
chmod +x start-c.sh
Start it now with:
xinit ./start-c.sh
Add Chromium options as you like. E.g. –Kiosk –allow-running-insecure-content plus your URL