Printer Setup Utility for CS at Aarhus University
To ease the set-up of the printers available for student use at the Department of Computer Science at Aarhus University, I have written a small utility. The utility guides the user through the registration of the printers on the user's computer using a friendly terminal user interface.
Installation
macOS
- Install dependencies (using Homebrew)
- Download and extract the source code available from here
- Run the program using either bin/csau_printersorruby lib/setup.rb.
Debian-based Linux (Using repository)
- Installation on Debian can be completed by adding my personal repository and installing the package csau-printers.
- Run the program using csau_printerswith appropriate privileges (must likely root privileges).
Linux
- Install dependencies
- Download and extract the source code available from here
- Run the program using either bin/csau_printersorruby lib/setup.rb.
Dependencies
- Ruby
- CUPS
- Debian: cupsfor basic functionality,task-print-serverfor full print server
 
- Debian: 
- lpadmin/- lpstat- Debian: cups-clientpackage
 
- Debian: 
- SMB support for CUPS
- Debian: smbclientpackage
 
- Debian: 
- dialog
FAQ
- Error message: lpadmin: Bad device-uri scheme "smb".- Support for the SMB client for CUPS is not installed. Install smbclienton Debian-based systems.
 
- Support for the SMB client for CUPS is not installed. Install 
- Permission deniedor something of the like- If using macOS, make sure that your user is an administrator for the system.
- If using Linux, make sure that your user has access to manage printers. This
permission is typically given to members of the sysandlpgroups. Remember that group membership is only evalutated on login, i.e. if you add your user to a group, remember to re-login.
 
- Not able to resolve printer URI
- Note that your system's DNS resolver has to be able to resolve
print.uni.au.dk.to make your print server able to contact the printers. Aarhus University's internal DNS settings distributed by DHCP are able to do this correctly.
 
- Note that your system's DNS resolver has to be able to resolve
Screenshots
