Project Process/Making

Magic Mirror (in Raspberry Pi 4) - OS & Mirror install

DrawingProcess 2020. 9. 3. 00:09
반응형

# Install OS(on raspberry pi)

1. https://www.raspberrypi.org/의 Downloads 탭에 들어감

2. Raspberry Pi OS (previously called Rasbian) 클릭 후 Raspberry Pi OS (32-bit) with desktop and recommended software 하단의 Download ZIP 클릭(Install the latest full version of Raspbian, don't use the Lite version.)

()

3. https://www.balena.io/etcher/에서 Download for Windows 클릭 후 'balenaEtcher' Download! 후 balenaEtcher 실행!

4. (micro SD 카드(16g 이상) 삽입 후) balenaEtcher에서 2.에서 받은 ZIP파일 or .img파일(압축을 풀었다면) 선택 & 꼽은 16g이상의 SD카드 선택 후 Flash! 

 

# Install Magic Mirror(an open source modular smart mirror platform)

  • Download and install the latest Node.js version:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y nodejs
  • Clone the repository and check out the master branch:
git clone https://github.com/MichMich/MagicMirror
  • Enter the repository:
cd MagicMirror/
  • Install the application:
npm install
  • Make a copy of the config sample file:
cp config/config.js.sample config/config.js

-> Copy /home/pi/MagicMirror/config/config.js.sample to /home/pi/MagicMirror/config/config.js

  • Start the application: npm run start
npm run start
  • For Server Only use: npm run server .
npm run server .

+ only supports the Raspberry Pi 2, 3 & 4. The Raspberry Pi 0/1 is currently not supported.

+ If it's annoying to type commands one by one, Ref. https://github.com/sdetweil/MagicMirror_scripts

 

반응형