Skip to content

Instantly share code, notes, and snippets.

@noelmathewisaac
Created August 18, 2022 16:48
Show Gist options
  • Save noelmathewisaac/9b20eeb2b89b59722e776b898d560cbf to your computer and use it in GitHub Desktop.
Save noelmathewisaac/9b20eeb2b89b59722e776b898d560cbf to your computer and use it in GitHub Desktop.
SOC Sunfire Print Commands
# Credits: https://gist.github.com/AaronCQL/3ee6bbb1999402b558c942eb8f50cf29#file-sunfire-print-sh
# Login to Sunfire
ssh noel@sunfire.comp.nus.edu.sg
# Copy a local file to Sunfire
scp some_file.txt e0123456@sunfire.comp.nus.edu.sg:/home/e/e0123456/
scp some_file.txt noel@sunfire.comp.nus.edu.sg:/home/n/noel/ # Try with username if above line doesn't work
# Copy a local directory to Sunfire
scp -r ./some_directory e0123456@sunfire.comp.nus.edu.sg:/home/e/e0123456/
scp -r ./print noel@sunfire.comp.nus.edu.sg:/home/n/noel/ # Try with username if above line doesn't work
# 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