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_printers
orruby 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_printers
with 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_printers
orruby lib/setup.rb
.
Dependencies
- Ruby
- CUPS
- Debian:
cups
for basic functionality,task-print-server
for full print server
- Debian:
lpadmin
/lpstat
- Debian:
cups-client
package
- Debian:
- SMB support for CUPS
- Debian:
smbclient
package
- Debian:
dialog
FAQ
- Error message:
lpadmin: Bad device-uri scheme "smb".
- Support for the SMB client for CUPS is not installed. Install
smbclient
on Debian-based systems.
- Support for the SMB client for CUPS is not installed. Install
Permission denied
or 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
sys
andlp
groups. 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