Skip to content

Instantly share code, notes, and snippets.

@dmgl
Last active January 11, 2018 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmgl/764cc8c5f865c95162d1981857262c50 to your computer and use it in GitHub Desktop.
Save dmgl/764cc8c5f865c95162d1981857262c50 to your computer and use it in GitHub Desktop.
First start RaspberryPi instructions
sudo raspi-config # set hostname; ssh, vnc enable; spi enable
sudo leafpad /etc/ssh/sshd_config # set port, listen
sudo apt-get update && sudo apt-get upgrade
sudo apt-get purge bluej scratch greenfoot
rm -rf ~/oldconffiles/ ~/oldconffiles/Scratch
rm -rf ~/Documents/*
sudo dpkg-reconfigure locales
sudo locale-gen
sudo usermod -a -G spi,gpio pi
sudo apt-get install python-dev python-pip libfreetype6-dev libjpeg-dev
sudo -i pip install --upgrade pip setuptools
sudo apt-get purge python-pip
pip --version # pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
sudo -H pip install --upgrade luma.led_matrix
git clone https://github.com/rm-hull/luma.led_matrix.git
python examples/matrix_demo.py
sudo pip install max7219 # alternative lib
# install some useful packages
sudo apt-get install vim mc htop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment