#!/bin/bash sudo apt update sudo apt install -y fswebcam v4l-utils python3-opencv golang-go # ascii-image-converter isn't packaged for apt; build it with go instead go install github.com/TheZoraiz/ascii-image-converter@latest sudo install -Dm755 "$(go env GOPATH)/bin/ascii-image-converter" /usr/local/bin/ascii-image-converter # lp group membership grants write access to /dev/lp0 for txt2printr.sh if ! groups "$USER" | grep -qw lp; then sudo usermod -aG lp "$USER" echo "Added $USER to the lp group - log out and back in for this to take effect" fi # parport/parport_pc expose the parallel port as /dev/lp0 via the lp driver sudo modprobe parport parport_pc lp echo -e "parport\nparport_pc\nlp" | sudo tee /etc/modules-load.d/parport.conf > /dev/null