Skip to content

Instantly share code, notes, and snippets.

View ddavidebor's full-sized avatar

Davide Bortolami ddavidebor

View GitHub Profile
@ddavidebor
ddavidebor / lprint.sh
Created August 14, 2024 21:42
Install LPrint (a better CUPS replacement for label printers)
sudo apt install snap cups
sudo snap install core
sudo snap install avahi
sudo snap install lprint
sudo snap connect lprint:raw-usb
sudo snap connect lprint:avahi-control
#sudo snap set lprint server-name=nas.local
#sudo snap set lprint server-hostname=nas.local
sudo snap set lprint server-options=web-remote,web-log,no-host-checks
sudo snap set lprint server-port=6311
#!/bin/bash
# Expects Ubuntu 16.06 (xenial) and kernel 4.x.
# Based upon a blog post by Zach at http://zachzimm.com/blog/?p=191
set -eux
# Have the user call sudo early so the credentials is valid later on
sudo whoami