Skip to content

Instantly share code, notes, and snippets.

@brennanMKE
Last active February 12, 2024 23:05
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 brennanMKE/0f94a284526b5571c9819c3fd267e3f8 to your computer and use it in GitHub Desktop.
Save brennanMKE/0f94a284526b5571c9819c3fd267e3f8 to your computer and use it in GitHub Desktop.
Flaschen Taschen on a Raspberry Pi

Flaschen Taschen on a Raspberry Pi

Build and run FT on a Pi.

Preparing SD Card

Use Raspberry Pi imager to install OS and create a username of noisebridge to log into the Pi.

Building FT

sudo apt-get update
sudo apt-get install g++ make
sudo apt-get install libgraphicsmagick++-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libavutil-dev

mdir GitHub
mkdir noisebridge
cd noisebridge

git clone https://github.com/noisebridge/flaschen-taschen.git
cd flaschen-taschen/server
make
mkdir -p ~/bin
cp ft-server ~/bin/
cd ~/GitHub
mkdir cgorringe
cd cgorringe
git clone https://github.com/cgorringe/ft-demos.git
cd ft-demos
git submodule update --init --recursive
make
cp black ~/bin
cp blur ~/bin
cp fractal ~/bin
cp hack ~/bin
cp kbd2midi ~/bin
cp life ~/bin
cp lines ~/bin
cp matrix ~/bin
cp maze ~/bin
cp midi ~/bin
cp nb-logo ~/bin
cp plasma ~/bin
cp quilt ~/bin
cp random-dots ~/bin
cp sierpinski ~/bin
cp sierpinski_rain.py ~/bin
cp simple-animation ~/bin
cp simple-example ~/bin
cp words ~/bin
cd ft/client
make send-text send-image
cp send-text ~/bin/
cp send-image ~/bin/

There are problems with the build for send-video as it is using API which has since been deprecated and removed from the library. The code will need to be revised.

Configuring FT

sudo vim /etc/systemd/system/ft-server.service
sudo systemctl daemon-reload
sudo systemctl enable ft-server.service
sudo systemctl start ft-server.service
ps aux | grep ft-server | grep -v grep

/etc/systemd/system/ft-server.service:

[Unit]
Description=Flaschen Taschen Server
After=network.target

[Service]
ExecStart=/home/noisebridge/bin/ft-server -D 160x96 --layer-timeout 15
WorkingDirectory=/home/noisebridge/ft
Restart=always
User=noisebridge

[Install]
WantedBy=multi-user.target

Start: sudo systemctl start ft-server.service

Status: sudo systemctl status ft-server.service

View logs: journalctl -u ft-server.service

Create Backup Image

diskutil list

dd if=/dev/rdiskX of=/path/to/backup.img bs=1m

Run backup.sh to create a backup image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment