Simple web application displaying the like counter on Rapsberry Pi display.
We're using custom fonts, so feel free to skip this if you don't plan on using custom fonts.
# for ubuntu/debian
sudo apt-get install fontconfig fbterm
sudo apt-get install -y build-essential libconfig++-dev
Update your Raspbian distribution:
sudo apt update
Git is already installed on your Raspberry. Let's check it out:
git --version
Example output:
=> git version 2.23.0
Let's clone this repo:
git clone git@github.com:arharovets/like-counter-pi.git
Let's install Ruby:
cd like-counter-pi
chmod +x install_ruby.sh # makes the script executable
./install_ruby.sh
It might take some time (~2 hr on Pi Zero). Pour yourself a big cup of tea ☕️.
The output should look like:
=> Reload the current shell to get access to rbenv using:
=> source ~/.bashrc
Close current Terminal window and open a new one. Type the following command:
source ~/.bashrc
Yay! Check the installed version:
ruby -v
Output:
=> ruby 2.6.3somenumbersandletters
Now that we have Ruby installed...
cd like-counter-pi
bundle install
rbenv rehash
sudo chmod +x ./install_matrix_display.sh
sudo chmod +x ./run_terminal_emulator.sh
sudo sh ./install_matrix_display.sh
... and reboot.
Make sure your Raspberry boots into console mode, and run:
cd like-counter-pi
sh ./run_terminal_emulator.sh
thor like_counter:live