-
Notifications
You must be signed in to change notification settings - Fork 0
Raspberry Pi Installation Process
These instructions describe the steps required to configure a Raspberry Pi Model B+ to automatically boot into the Magic Mirror application.
- Flash Arch Linux ARM to MicroSD
- Change default passwords
- Install packages
- Configure ratpoison
- Configure nodm
- Enable silent boot
- Clone project code
- Set screen rotation
- Enable camera
- Enable I2C
- Follow these directions to get Arch Linux ARM onto the SD card.
syncmay take several minutes.
Download Arch Linux ARM for RPi Model B+
- Default user (alarm): default password is
alarm - Root user: default password is 'root'
First, perform a full system upgrade:
# pacman -Syyu
Install the following packages with pacman:
-
sudo(addalarmas a user throughvisudowithNOPASSWDtag) vimgitpython3python3-pip-
xorg-server(selectevdevdriver) xf86-video-fbdev-
sdl2+sdl2_ttf -
nodm+ratpoison xtermrsynci2c-tools
Install the following packages with pip:
pysdl2
-
Create
~/.ratpoisonrcwith contents:startup_message off
-
Modify
/etc/nodm.confas explained here -
Create
~/.xinitrcwith contents:#!/bin/sh ratpoison & exec xterm
-
Enable nodm:
# systemctl enable nodm.service
-
Add the following items to
/boot/cmdline.txt(all on one line):console=tty3 loglevel=3 vt.global_cursor_default=0 logo.nologo -
Add the following line to the end of `/boot/config.txt':
disable_splash=1
-
$ git clone https://github.com/sweeney2/ece477-project.git -
Modify
~/.xinitrcso that it matches:#!/bin/sh ratpoison & cd /home/alarm/ece477-project/rpi-display && exec python magic.py
-
Add the following line to the end of
/boot/config.txt:display_rotate=1
-
Add/modify the following lines in
/boot/config.txt:gpu_mem=128 start_file=start_x.elf fixup_file=fixup_x.dat disable_camera_led=1 -
Add the following line to
/etc/profile:PATH="$PATH:/opt/vc/bin" -
Now you can run
$ raspistill -o <filename>to capture an image
- Follow these instructions.
- Then follow these instructions.
- To test, run
# i2cdetect -y 1