This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |