To print from LAWN do the following:
  1. Install RedMon from here. Unzip the zip-file to some location $REDMON$, and run $REDMON$\setup.exe to install RedMon.
  2. Download plink.exe and pscp.exe from this site to some directory $PUTTY$.
  3. Add a printer using the Add Printer Wizard, using the "Local Printer Option". When you come to "Select a Printer Port", check "Create a new port" - you should have a "Redirected Port" option in the drop-down box - use this and go through the rest of the printer setup process.
  4. Now open the "Printer Properties" of this printer, and navigate to the "Ports" Tab. Click on "Configure Port".
  5. In the port properties, you need to enter two things: You can modify the location of the .bat file to wherever you please - the %1 stands for the temporary print spool file that is passed around.
  6. Enter the following text in the .bat file, making sure you change the printer name, $PUTTY$ with wherever you downloaded the files - and your username, hostname and password.
    SET PRINTER=levin-duplex
    SET PSCP=$PUTTY$\pscp.exe
    SET PLINK=$PUTTY$\plink.exe
    SET RHOST=username@host.cc.gatech.edu
    SET RPWD=your-password-here
    SET RFN=temp.%REDMON_JOB%.ps
    
    echo y | %PSCP%  -pw %RPWD% "%1" %HOST%:%RFN%
    %PLINK% -pw %RPWD% %RHOST% lpr -h -P %PRINTER% %RFN%
    %PLINK% -pw %RPWD% %RHOST% rm -f %RFN%
    :end
    
  7. You may remove "type y | " from the .bat file after running the script once if you wish. Its purpose is to say yes to caching the RSA key of the server into Putty's registry.
  8. If you want to print duplex, make sure you configure this in the printer too, since the print spool file may include commands to do this.
  9. You can avoid storing your password if you set up SSH keys using puttygen. Read the documentation here.