Just type atis PATH_TO_FILE to print stuff remotely on a ATIS printer of the KIT using SSH.
- Generate a SSH key on the device you want to print stuff from (e.g.
ssh-keygen -t ed25519 -o -a 100). - Edit your
.ssh/configfor convenience:
Host atis
HostName i08fs1.informatik.kit.edu
User YOUR_ATIS_USERNAME- Connect to your ATIS account via SSH (
ssh atis) and add your generated SSH publickey to.ssh/authorized_keys. Alternatively just docat ~/.ssh/id_ed25519.pub | ssh atis 'cat >> .ssh/authorized_keys'. You need to enter your ATIS password. - Connect to your ATIS account again (
ssh atis) and make sure that you don't need to enter your password again. - Type
source PATH_TO_THIS_REPO/atis.shto activate the function. - You should now be able to print files by typing
atis PATH_TO_FILE. - On your host, add
source PATH_TO_THIS_REPO/atis.shto your~/.bashrcor~/.zshrcto keep the function activated in future shell sessions.
You can additionally specify a specific printer by typing atis PATH_TO_FILE PRINTER_NAME.
In theory, valid values for PRINTER_NAME are:
pool-sw1(orsw1)pool-sw2(orsw2)pool-sw3(orsw3)pool-farb1(orfarb1)
However, I found that only pool-sw3 and pool-farb1 work reliably. Hence, I set pool-sw3 as the default printer.
You can additionally specify a print mode by typing atis PATH_TO_FILE PRINTER_NAME PRINT_MODE.
Valid values for PRINT_MODE are:
one-sided(orsimplex)two-sided-long-edge(orduplex)two-sided-short-edge
The default print mode is two-sided-long-edge (or duplex).
Thanks to the ATIS people for this docu.