• Stars
    star
    224
  • Rank 177,792 (Top 4 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created over 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MagicMirrorOS out-of-the-box distro

MagicMirrorOS

An out of the box Raspberry Pi Raspbian distro that lets you run MagicMirror to make an interactive mirror.

Where to get it?

You can use the pi-imager commuity raspberrypi imager here, unofficial section.

Or download directly form the official mirror here

How to use it?

  1. Unzip the image and install it to an SD card like any other Raspberry Pi image
  2. Configure your WiFi by editing magicmirroros-wpa-supplicant.txt at the root of the flashed card when using it like a flash drive
  3. Boot the Pi from the SD card
  4. Hostname is magicmirroros (not raspberrypi as usual), username: pi and inital password is: raspberry
  5. You can change the settings of the MagicMirror in the files located at ~/magicmirror/mounts/

Docker

Under the hood MagicMirrorOS uses this docker setup. At the first start the docker image is pulled which takes some time depending on your hardware, so please be patient ...

You find the docker setup at ~/magicmirror/ on your raspberrypi. For more information about this setup, how you can start/stop the docker container, how to see the logs , ..., please refer to the documentation provided there.

Requirements

  • Raspberrypi all versions should work
  • 2A power supply
  • Pi 2, 3 & 4. The Raspberry Pi 0/1 is currently not supported.

Features

Developing

Requirements

  1. Docker or Vagrant, docker recommended
  2. Docker-compose - recommended if using docker build method, instructions assume you have it
  3. Downloaded Raspbian Lite image.
  4. Root privileges for chroot
  5. Bash
  6. sudo (the script itself calls it, running as root without sudo won't work)

Build MagicMirrorOS

MagicMirrorOS can be built using docker running either on an intel or RaspberryPi (supported ones listed). Build requires about 4.5 GB of free space available. You can build it assuming you already have docker and docker-compose installed issuing the following commands:

git clone https://github.com/guysoft/MagicMirrorOS.git
cd MagicMirrorOS/src/image
wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_armhf_latest'
cd ..
sudo docker-compose up -d
sudo docker exec -it magicmirroros-build build

Building MagicMirrorOS Variants

MagicMirrorOS supports building variants, which are builds with changes from the main release build. An example and other variants are available in the folder src/variants/example.

To build a variant use:

sudo docker exec -it magicmirroros-build build [Variant]

Building Using Vagrant

There is a vagrant machine configuration to let build MagicMirrorOS in case your build environment behaves differently. Unless you do extra configuration, vagrant must run as root to have nfs folder sync working.

To use it:

sudo apt-get install vagrant nfs-kernel-server
sudo vagrant plugin install vagrant-nfs_guest
sudo modprobe nfs
cd MagicMirrorOS/src/vagrant
sudo vagrant up

After provisioning the machine, its also possible to run a nightly build which updates from devel using:

cd MagicMirrorOS/src/vagrant
run_vagrant_build.sh

To build a variant on the machine simply run:

cd MagicMirrorOS/src/vagrant
run_vagrant_build.sh [Variant]

Usage

  1. If needed, override existing config settings by creating a new file src/config.local. You can override all settings found in src/config. If you need to override the path to the Raspbian image to use for building MagicMirrorOS, override the path to be used in ZIP_IMG. By default, the most recent file matching *-raspbian.zip found in src/image will be used.
  2. Run src/build_dist as root.
  3. The final image will be created in src/workspace

Customization

  1. If you need to rotate the output change directory to /etc/lightdm and sudo nano lightdm.conf. Add the following into the [Seat:*] section of the file display-setup-script=xrandr --output HDMI-1 --rotate left where 'left' rotates 90 degrees counter clockwise, 'right' rotates 90 degrees clockwise, and 'inverted' rotates 180 degrees.
  2. To set your local timezone:
    1. Find your timezone in the "TZ database name" column on Wikipedia
    2. nano ~/magicmirror/run/docker-compose.yml and add an entry under environment: for TZ: <your timezone>
    3. sudo timedatectl set-timezone <your timezone>

Code contribution would be appreciated!

More Repositories

1

FullPageOS

A raspberrypi distro to display a full page browser on boot
Shell
3,857
star
2

OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
Shell
2,461
star
3

CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
Shell
502
star
4

RealtimePi

An out-of-the-box raspebrrypi/raspbian distro with a realtime kernel
Shell
138
star
5

OctoKlipperPi

OctoPi klipper using the CustoPiZer distro builder
Shell
84
star
6

UbuntuDockerPi

Ready to use 64bit ARM Docker for Raspberry Pi running on Ubuntu
Shell
44
star
7

ElectricSheepPi

A Raspberry Pi distribution to to run Electric Sheep
Shell
37
star
8

PleromaPi

RaspberryPi / CustomPiOS distro that run Pleroma out of the box
Shell
35
star
9

HotSpotOS

Raspberry Pi OS that starts a hotspot, if no wifi was found to conenct to
Shell
34
star
10

PhotoPrismPi

An out of the box Raspberry distro based on Ubuntu with PhotoPrism installed
Shell
25
star
11

AlarmBot

A telegram bot that serves as an alarm clock, runs best on a RaspberryPi
Python
23
star
12

SMS-Twitter-Gate

SMS to twitter gate server, using only cheap phones and a computer
Python
21
star
13

ZynthianOS

Disto to build a Zynthian image ready to ship
Shell
19
star
14

MtigOS

Raspberry Pi distro that lets you receive, store and graph sensor information from ESP8266 chips
Shell
14
star
15

fedigroup

A federated simple group
Python
13
star
16

3arabi

A translator for arabic chat
10
star
17

BackupFriendPi

A raspsberrypi distro you can put in your friend's house, or anywhere else, and it will let you backup your computer with history
Shell
9
star
18

LibrePhotosOS

An out of the box Raspberry Pi distro with LibrePhotos installed.
Shell
9
star
19

AlarmPi

A Raspberry Pi distribution that turns your Pi in to an IOT telegram-controlled alarm clock
Shell
9
star
20

BackupFriend-docker

Docker for RaspberryPi distro that lets backup your stuff to a friend
Shell
8
star
21

backupfriend-client

Backupfriend wx widgets client
Python
8
star
22

Raspbian64

An out of the box Raspbian distro with a 64bit chroot with docker.
Shell
8
star
23

midistrum

An app to use android's native midi system to create an omnichord/auto harp-like strum instrument. It also made me port native midi to kivy
Python
7
star
24

mod-ui-docker

Docker container that attaches to jack and runs mod-ui
Dockerfile
6
star
25

Mqtt_Wifi_manager

End to end, working moisture sensor, no need to solder, no hardcoded stuff, can be configured by pressing the reset button sevral times
C++
6
star
26

aax_to_mp3_splitter

Take mp3 files created from AAX2MP2, and text created from AudibleChapters and split accordingly
Python
5
star
27

PowerBeatsVR_song_writer

Convert a beats saber song to a powerbeats vr song
Python
5
star
28

Twitter-Status

Set your pidgin status from your twitter feed
Perl
4
star
29

pytorch-docker-armv7

pytorch for RaspberryPi
Dockerfile
4
star
30

pi-imager-web

Serve the pi-imager images list
Python
4
star
31

thedoorks

Hackathon project to detect doors in construction plans
Python
4
star
32

OctoPi-Klipper-CustomPiOS

Scripts to build OctoPi-Klipper, a Raspberry PI distro for controlling 3D printers over the web using OctoPrint and the Klipper firmware
Shell
4
star
33

EnergySource

Energy Source Godot Jam project
GDScript
4
star
34

unofficialpi

unofficialpi CI/CD scripts
Python
3
star
35

DiagHam

Port form svn repo of DiagHam from http://www.nick-ux.org/diagham/
C++
3
star
36

GPageCache

A small simple webpage cacher for webservers
PHP
3
star
37

shapedo

3D diff engine
JavaScript
3
star
38

SvxLinkWrapper

Wrapper for SvxLink to provide additional functionally, which is easy to extend
Python
3
star
39

Chrome-Extension-Modifier

A program used to patch Chrome extensions. For now it patches TweetDeck to support Right-to-Left languages
Python
3
star
40

guysoft

2
star
41

ownphotos-proxy

Simple proxy to handle ownphotos backend and frontend
Dockerfile
2
star
42

pi-gen-nightly

Scripts to make nightly builds Raspbian-lite image
Shell
2
star
43

Group-SMS-Manager

A system to send and handle incoming SMS on a range of Israeli service suppliers, and also cheap hardware
2
star
44

kivy-external-storage-permission

test kivy new external storage permission
Python
2
star
45

CraftBeerPiOS

RaspberryPi distro that runs CraftBeerPi out of the box
Shell
2
star
46

pyTwitterBot

A twitter bot written in python
Python
2
star
47

recycle_app_israel

This is a simple app to view all the electronics recycle location in israel
Python
2
star
48

ownphotos-client

A python package to interact with ownphotos api backend
Python
2
star
49

cyborg_ear_trainer

A tool to train people to hear using a cochlear implant
Python
2
star
50

Ockle

An autumated extendable PDUs and servers management system
Python
2
star
51

pytorch-build-arm

Docker container ot build pytorch for arm used in LibrePhotos
Shell
1
star
52

picturfy

Turn HTML webpages to PNG images
Python
1
star
53

docker-mtig

MTIG - Docker compose stack for Mosquitto Telegraf Influxdb and Grafana
1
star
54

p4a-build-spaces

A script for build & test environments to be used for building python-for-android apps. Uses docker.
Python
1
star
55

stale_mount_checker

Shameless copy of python-spam-module example in python docs modified to check if a filesystem is stale
C++
1
star
56

wikipedia_read_bot

A telegram bot that lets you look up wikipedia articles
Python
1
star
57

Twitter-Hivemind

A source to build a hivemind twitter service, that retweets a single acocunt
Python
1
star
58

abusive-internet

An access point that abuses the user, uses a raspberry pi and geekcon magic
1
star