DISCUSSION

[GUIDE] How to use Stock Image and Kiosk mode if you can't use custom image

0 people are following

If like me you can't use the custom image because your screen needs the latest version of the OS to work properly and you want to auto load the chromium page on boot.

 

Install clean version of the Raspbian 32Bit Lite

# Dependencies
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y chromium-browser unclutter xserver-xorg xinit xvfb

Make sure you're screen works how you want it to before you proceed

Create a config file and edit its contents

# Create config
sudo nano /etc/X11/xorg.conf
# Add contents
Section "Device"
    Identifier "Default"
    Driver "fbdev"   # Use the framebuffer driver
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "Default"
EndSection

Create a file for startx

Test first with google.com then try the address for the computer you are monitoring with the rest of the url

# File Creation
sudo nano .xinitrc

Contents
#!/bin/sh

# Start Xvfb with a virtual display
# Change the resolution to match your screen specs
Xvfb :0 -screen 0 1920x480x16 &

# Set the DISPLAY environment variable
export DISPLAY=:0

# Run unclutter to hide the cursor
unclutter -display :0 -idle 0.1 -root &

# Run Chromium in kiosk mode with the specified options and URL
# chromium-browser --no-sandbox --disable-infobars --disable-session-crashed-bubble --disable-restore-session-state --kiosk https://www.google.com
chromium-browser --no-sandbox --disable-infobars --disable-session-crashed-bubble --disable-restore-session-state --noerrdialogs --incognito --check-for-update-interval=2592000 --kiosk --disk-cache-size=1000 'http://<host to monitor IP>:42100?uuid=pi1&name=RaspberryPi'

Test if this works by using

startx 

 

Have startx run on boot

# Edit .bashrc
sudo nano .bashrc
# Add the line at the bottom of the line
startx
# Save and quit

 

If it works all you need to do is enable autologin on boot

sudo raspi-config
# Pick System Options
# Pick the boot option
# Pick console with autologin

Reboot, if all goes well it'll auto login and run startx which will start the browers. 

Hope this helps!

Replies -19 - 0 (0)

Login to comment

Login
Like most websites, we also use cookies. But don't worry, we only use them for your login and statistics.