Skip to content

Instantly share code, notes, and snippets.

@aaditkamat
Forked from AaronCQL/sunfire-print.sh
Created March 31, 2021 10:09
Show Gist options
  • Select an option

  • Save aaditkamat/9b7218ada581893bc7c9b6aca41f3362 to your computer and use it in GitHub Desktop.

Select an option

Save aaditkamat/9b7218ada581893bc7c9b6aca41f3362 to your computer and use it in GitHub Desktop.
Cheatsheet for printing via Sunfire
# Login to Sunfire
ssh [email protected]
# Copy a local file to Sunfire
scp some_file.txt [email protected]:/home/e/e0123456/
# Copy a local directory to Sunfire
scp -r ./some_directory [email protected]:/home/e/e0123456/
# Convert PDF to PS file
pdftops input.pdf
# Print via Sunfire
lpr -Ppstsb input.ps
# Convert PS file to 2 pages per sheet
psnup -2up input.ps output.ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment