After a system reinstall (new system hard drive, this time round with Ubuntu Server 10.10 64-bit), I needed to setup CUPS again with a network connected Lexmark E120n printer, which works quite well. Linuxprinting.org however lists a PPD/driver that doesn’t work well at all – for larger files (PDF with airplane boarding passes) it just spits out one page and then stalls.
Enabling remote configuration of CUPS
All of this needs to be modified/added to /etc/cups/cupsd.conf, and then the host can be accessed using HTTPS and /admin/.
Listen *:631 # Restrict access to the server... <location /> Order allow,deny Allow all </location> # Restrict access to the admin pages... <location /admin> Encryption Required Order allow,deny Allow all </location> # Restrict access to configuration files... <location /admin/conf> AuthType Default Require user @SYSTEM Order allow,deny Allow all </location>
And restart cups. This will however complain with “400 Bad Request” and the log says Request from "1.2.3.4" using invalid Host: field "hemma.wendt.se". This is because Debian/Ubuntu default config simply chose this setup. The fix:
ServerAlias *
Setting up the printer
Driver: | Lexmark E120n Foomatic/lj4dith (grayscale) |
---|---|
Connection: | socket://192.168.1.137:9100 |
Defaults: | job-sheets=none, none media=iso_a4_210x297mm |
I’ve put up the PPD file I use should I need it again.