We have just switched to a centralized print queue. The printer is setup with
lpadmin -p SPScolour -E -D "Sustainable Print Colour" -v lpd://xxx.yyy.com/colour
The IT people are saying my local username must match my central username. Of course the IT people are not that organized and I have a number of "central" usernames. Is there a way to specify the print queue username through an environment variable or some other trick?
I can work around the username constraint by using
lp -U mycentralusername -d SPSColour foo.txt. This isn't a complete solution since not all GUIs give you the option of specifying the print command. If I am willing to install a different printer for each user I can do
lpadmin -p SPScolour -E -D "Sustainable Print Colour" -v lpd://email@example.com/colour
I have had no luck with setting lpoptions. I have tried
lpoptions -d SPScolour -o username=myusername lp -d SPSColour foo.txt
which does not print. It looks like
lpoptions takes a
-U flag, but I cannot figure out how to use it.
lpoptions -U myusername -d SPSColour
gives me an error.