Printing over SSH using LPR

1. Open a terminal (by default, ctrl+alt+t) and ssh into your preferred CECS *nix machine (e.g. ada.cs.pdx.edu ):

2. Once you see a prompt, it’s as simple as invoking lpr:

lpr -P $PRINTER $DOCUMENT

3. To get a list of all available printers, use:

lpstat -a

NOTE: You can also invoke lpr from ssh without having to bring up a shell:

ssh $USER@$REMOTEHOST lpr -P $PRINTER $DOCUMENT