*write SD Card with Raspberry OS (not light) and preconfigure wifi+ssh+hostname+TZ)
*$sudo raspi-config
*auto login, wait for network at boot, Screen Blanking, GL Driver
*$bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
*$sudo apt install libffi-dev nginx-full -y
$python3 -m pip install --upgrade --no-cache-dir
$echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
$source ~/.bashrc
$mmpm mmpm --guided-setup
*e.g.

{
"MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror"
"MMPM_MAGICMIRROR_URI": "http://172.16.X.X:8080/"
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "MagicMirror"
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": "."
"MMPM_IS_DOCKER_IMAGE": false
}

*$sudo reboot
* rotate screen (config.txt & lightdm.conf won't work)
$vi ~/MagicMirror/css/custom.css

 body {
        margin: 0;
	position: absolute;
 	transform: rotate(90deg);
 	transform-origin: bottom left;
	width: 100vh;
	height: 100vw;
	object-fit: cover;
	top: -100vw;
        visibility: visible;
 }

MagicMirror² install from scratch