bezelman
CUPS seems to be pre-installed in Quadra, but I'm not finding cli commands lpadmin, lpinfo, lpstat, etc.  What's the best to set up CUPS in Quadra, or is this not recommended?
Michael Burmeister-Brown inovato
I do very little printing and none from my quadra, so am no expert here, unfortunately.  But I also tried today to add a printer.

I am not sure how far you progressed in getting a printer setup.  For me, I got an "internal error" when adding the discovered HP printer using the settings/printers dialog.  This was fixed by editing /etc/cups/cups-files.conf and adding quadra to the SystemGroup line.  So it looks like:

SystemGroup lpadmin quadra


Then, instead of using the settings/printers dialog, I used the web interface to add the printer:

locallhost:631/admin


In the end, it seemed to show my printer as setup, but it said it was always offline when I tried to print to it.  I am not sure what is wrong at that point, but hoping your printer will do better...

FYI, I do see the cli commands lp, lpstat (which does list my printer).  I don't see lpadmin or lpinfo either.

Anyone else have anything helpful to add?
Reply 2 0
bezelman
Thanks for the response.  I replicated your experience by following what you outlined, i.e. printer added but remained offline.  I investigated to resolve the CLI command absence problem, and was surprised to discover that the default $PATH did not include the "/sbin" directories /usr/local/sbin, /usr/sbin, and /sbin.  (I think the intention was to provide the user quadra as having root powers, and if so, a lot of root commands are 'missing' as shipped.)  A temporary fix is
Quote:
export PATH=$PATH:/usr/loca/sbin:/usr/sbin:/sbin

(To make this permanent, it needs to be added in .profile or .bashrc)

I'm no CUPS expert, but I'm thinking that the inability to find the commands might have been the problem leading to the offline printer.  Also, I'm thinking that instead of adding user quadra to the config file, it's better to add group 'lpadmin' to user quadra via
Quote:
usermod -aG lpadmin quadra


When I edited the $PATH variable to include the /sbin directories and put quadra in group lpadmin, everything worked.

So my recommendation would be to ship the default Inovato configuration with (1) quadra in the lpadmin group and (2) the ".../sbin" commands in the PATH.  Great product and great value, BTW.
Reply 1 0
bezelman
Just a follow-up to this thread.  I just fell afoul of my own admonition not to add username quadra to the SystemGroup directive.  I had done this originally, but also added quadra to the lpadmin group, then forgot. Everything worked.  Later on I decided to eliminate the quadra username.  My CUPS server collapsed and refused to start up again, claiming a missing 'dependency'.  For about an hour I thought some additional package dependencies were needed, since I had also done some other software installs.  Turns out, it was a CUPS configuration includefile dependency. The file /etc/cups/cups-files.conf still contained a reference to the banished user quadra, so the server couldn't parse the configuration. Eliminating the reference there fixed the problem.  The best news for me was discovering the config syntax-checker 'cupsd -t', since I found CUPS pretty opaque about any config syntax mistakes.  I definitely recommend not altering the SystemGroup directive, and if you run into mysterious balking by the CUPS server, try the latter command first.
Reply 0 0
Helmuth
Thanks, bezelman!  You just saved me hours of frustration and hassle.  (or, more likely, giving up in disgust)
Reply 1 0
Reply