- SSh to PI
- Start vnc server
vncserver
- Switch to Python env
workon cv
xrandr -display :0 --output HDMI-1 --rotate left
https://askubuntu.com/a/885247
# create /etc/xdg/autostart/setscreen.desktop
[Desktop Entry]
Name=Set Screen Rotation
Exec=/bin/bash -c "sleep 10 && xrandr --output HDMI-1 --rotate left"
Type=Application
chromium-browser http://localhost:3000 --auto-open-devtools-for-tabs
- Enable legacy camera system via
sudo raspi-config
-> Interface - Run
sudo apt update
andsudo rpi-update
and reboot - Then,
opt/vc/
should exist (see https://stackoverflow.com/a/70218011/912189)
sudo raspi-config
Interface Options -> activate camera
Display Options -> disable underscan
Display Options -> disable Screen blanking
https://blog.gordonturner.com/2020/06/30/raspberry-pi-full-screen-browser-2020-05-27-raspios-buster/
sudo apt-get install -y unclutter x11-xserver-utils
mkdir -p ~/.config/lxsession/LXDE-pi
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi
sudo nano .config/lxsession/LXDE-pi/autostart
sudo apt update
sudo apt upgrade
## Install Docker. Raspian doesn't support repository install
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
## Allow non-root
sudo usermod -aG docker $USER
newgrp docker
## Testing
docker run hello-world
https://github.com/bastilimbach/docker-MagicMirror https://forum.magicmirror.builders/topic/6345/facial-recognition-module-step-by-step-guide https://github.com/nischi/MMM-Face-Reco-DNN https://www.losant.com/blog/how-to-access-the-raspberry-pi-camera-in-docker
export DISPLAY=:0 && chromium http://localhost -start-fullscreen
docker exec -it magic_mirror /bin/bash
# Test
/opt/vc/bin/raspistill -o output.jpg