17 lines
746 B
Bash
Executable File
17 lines
746 B
Bash
Executable File
#!/bin/bash
|
|
sudo dnf install -y fswebcam v4l-utils python3-opencv golang
|
|
|
|
# ascii-image-converter isn't packaged for dnf; 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
|