Skip to content

Instantly share code, notes, and snippets.

@marcofugaro
Last active November 18, 2019 16:24
Show Gist options
  • Select an option

  • Save marcofugaro/f8b981f497a457f2c50c0db52260090d to your computer and use it in GitHub Desktop.

Select an option

Save marcofugaro/f8b981f497a457f2c50c0db52260090d to your computer and use it in GitHub Desktop.
Raspberry PI 4 fullscreen mode script, put this in `~/.config/lxsession/LXDE-pi/autostart`
# Disable screensaver and blank screens
@xset s off
@xset -dpms
@xset s noblank
@xscreensaver -no-splash
# Hide mouse, must have installed unclutter with `sudo apt-get install unclutter`
@unclutter
# Load chromium and open the website in full screen mode
@chromium-browser --start-fullscreen --incognito https://example.com/
@marcofugaro
Copy link
Copy Markdown
Author

marcofugaro commented Sep 30, 2019

Paste this in the raspbian terminal to auto-download the file

curl https://gist.githubusercontent.com/marcofugaro/f8b981f497a457f2c50c0db52260090d/raw/autostart > ~/.config/lxsession/LXDE-pi/autostart

To delete it and load again the GUI on startup

sudo rm ~/.config/lxsession/LXDE-pi/autostart

@marcofugaro
Copy link
Copy Markdown
Author

marcofugaro commented Oct 9, 2019

Also, if you want to clone an SD, start by plugging the source SD and then running

sudo dd if=/dev/disk2 of=$HOME/Desktop/raspberro.dmg bs=5000000

this will take the first inserted disk and copy to your machine.

Then plug the destination SD in and first run diskutil unmountDisk /dev/disk2 to unmount it, then run

sudo dd of=/dev/disk2 if=$HOME/Desktop/raspberro.dmg bs=5000000

this will copy the image on your desktop on the plugged in SD.

@marcofugaro
Copy link
Copy Markdown
Author

marcofugaro commented Nov 15, 2019

To check the temperature of your pi, run

sudo /opt/vc/bin/vcgencmd measure_temp

@marcofugaro
Copy link
Copy Markdown
Author

marcofugaro commented Nov 18, 2019

to open a link run

DISPLAY=:0  chromium-browser https://example.com/ --incognito --start-fullscreen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment