MagicMirror/Installation
From r00tedvw.com wiki
Custom service to turn on screen
Create executable
~$ mkdir -p /opt/MagicMirrorScreen && touch /opt/MagicMirrorScreen/magicmirrorscreen.sh sudo sh -c 'printf "#\\\\bin\\\\bash\nexport DISPLAY=:0\nxset s reset" > /opt/MagicMirrorScreen/magicmirrorscreen.sh' chmod +x /opt/MagicMirrorScreen/magicmirrorscreen.sh
Create Service
$touch /lib/systemd/system/magicmirrorscreen.service
[Unit] Description=example systemd service unit file. After=magicmirror.service [Service] ExecStart=/bin/bash /opt/MagicMirrorScreen/magicmirrorscreen.sh [Install] WantedBy=multi-user.target
Create Symlink
~$ ln -s /lib/systemd/system/magicmirrorscreen.service /etc/systemd/system/magicmirrorscreen.service
Restart and enable service
~$ systemctl daemon-reload ~$ systemctl enable magicmirrorscreen.service