Installing magic mirror on a raspberry pi
Documenting some instructions for myself.
I used a Docker-based installation to test-drive the server. It was a seamless installation.
Install Docker on a raspberry pi
Taken from pimylifeup
To install Docker on a raspberry pi, we need the following commands:
Firstly, keep system up-to-date:
sudo apt update
sudo apt upgrade
Then execute the Docker installation script:
curl -sSL https://get.docker.com | sh
Then, allow pi
(OR WHATEVER YOUR DEFAULT USER IS) to the docker
group:
sudo usermod -aG docker pi
Finally, logout and log back in to allow changes to take place.
Check that docker
shows up amongst the user groups:
groups | grep docker
Try out the hello world of Docker apps:
docker run hello-world
Install raspberry pi magic mirror manually
Taken from official docs
Life and computer hacks
Life hacks:
Computer hacks:
Install raspberry pi magic mirror via Docker
Installation instructions taken from bastilimbach/docker-MagicMirror.
docker run -d \
--publish 80:8080 \ # NOTE: see below
--restart always \
--volume ~/magic_mirror/config:/opt/magic_mirror/config \
--volume ~/magic_mirror/modules:/opt/magic_mirror/modules \
--volume /etc/localtime:/etc/localtime:ro \
--name magic_mirror \
bastilimbach/docker-magicmirror
Regarding the publish
kwarg:
8080:8080
, so that I could run it on a port independent of that other web server.