Menu
Logo
To boot a browser directly without the full desktop environment in Raspbian, you can use a lightweight window manager or set up the browser to run in kiosk mode at startup. Here's a concise guide:
Install Minimal Raspbian: Start with a minimal Raspbian installation to reduce overhead.
Install X Server and Browser:
sudo apt-get install --no-install-recommends xserver-xorg
sudo apt-get install --no-install-recommends chromium-browser
Configure Kiosk Mode:
.xinitrc
file in the home directory:
nano ~/.xinitrc
#!/bin/sh
xset -dpms # disable DPMS (Energy Star) features
xset s off # disable screen saver
xset s noblank # don’t blank the video device
exec chromium-browser --noerrdialogs --disable-infobars --kiosk 'http://localhost' # adjust the URL as needed
Set X Server to Start at Boot:
rc.local
file to start the X server with your configuration on boot:
sudo nano /etc/rc.local
exit 0
:
su -l pi -c startx &
pi
in this case) has the correct permissions to start X.Reboot:
sudo reboot
This setup will boot your Raspberry Pi into a browser in kiosk mode, bypassing the full desktop environment to save resources.
Sign up for our newsletter and be the first to know about coupons and special promotions.
All prices are in AUD and include GST. © 2024 Little Bird Electronics Pty Ltd. ABN: 15 634 521 449.