I have a remote (linux) server that I ssh to from my (also linux) pc to print my stuff.
Everything works if I do:
ssh ${remote_server}
(now in remote server)
lpr readme.txt
Or:
ssh ${remote_server} lpr readme.txt -P$PRINTER
(this works too)
But if I do:
ssh ${remote_server} lpr readme.txt
(I get a "there-is-no-default-printer" error.)
I did set the $PRINTER environment variable such that "ssh echo $PRINTER" gives me the right printer name.