A command line script to print wirelessly in the Oden Intitute at UT Austin from Linux, Mac, or Windows (if you're running Windows Subsystem for Linux).
- place the contents of
oden_print.sh
in your.bashrc
or.profile
file - in the copied text replace
<username>
with your sysnet username (for examplejsmith
),<machine name>
with your machine's name (for examplebernoulli
), and<printer name>
with your default printer's name - re-
source
the file you just edited or start a new terminal session - make sure your personal workstation is always on (it should be anyway, but the script won't work if it's off)
oden_print -h
: help messageoden_print -l
: list available printers on networkoden_print -d
: list your default printeroden_print -m
: list your ssh machineoden_print -# N printer_name file_to_print
: prints N copies offile_to_print
on printerprinter_name
oden_print printer_name file_to_print
: printsfile_to_print
on printerprinter_name
Note that calling without specifying a printer will print on <printer name>
It tunnels into your workstation via SSH and runs a print command on a file that gets forwarded over SSH. It's basically a one-liner (with some wrappings for convenience and usability).
Without any SSH configurations, you'll have to enter your remote machine password every time you print. To avoid this, set up an SSH keypair.
If you have any trouble with the script or have any improvements let me know. Improvements for print configuratins (double sided, etc.) may be coming soon.