반응형
magic mirror2 설치 방법
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
// nodejs 설치
sudo apt install -y nodejs
// 매직미러 소스 git에서 받아오기
git clone https://github.com/MichMich/MagicMirror
// 매직미러 폴더로 이동
cd MagicMirror/
// npm 설치
npm install
// config.js.sample을 복사해 config.js 생성
cp config/config.js.sample config/config.js
// npm start
npm run start
자동 실행 설정
sudo npm install -g pm2
pm2 startup
// 실행 후 나온 sudo env PATH: ~~~ 복사 후 실행
cd ~
sudo nano mm.sh
cd ~/MagicMirror
DISPLAY=:0 npm start
// Ctrl+x, Shift+y, Enter
sudo chmod +x mm.sh
// pm2 시작
pm2 start mm.sh
반응형
'CoMirror (Smart Mirror)' 카테고리의 다른 글
WebRTC에 대해서 (0) | 2022.08.16 |
---|---|
Socket, Socket 통신에 대해서 (0) | 2022.08.15 |
MariaDB binary log 설정 (0) | 2022.08.02 |
Raspberry Pi에 MySQL 설치 & workbench 연결 (2) | 2022.07.29 |
Raspberry Pi 원격 사용을 위한 설정 (0) | 2022.07.12 |