lpr -o media=Letter -o page-ranges=1 Information-Sheet.pdf Print HOWTO na jakubpc je LPT1 = /dev/lp1 vytlacenie suboru na urcitu tlaciaren lpr -Plp1 testpage-a4.ps ako tlacit v unixe na windows 2000 urobit na windowse lokalneho uzivatela aj s heslom a nastavit prava potom sa uz fici klasicky printcap file # /etc/printcap: printer capability database. See printcap(5). # You can use the filter entries df, tf, cf, gf etc. for # your own filters. See the printcap(5) manual page for further # details. lp|Generic dot-matrix printer entry :\ :lp=/dev/lp1 :\ :sd=/var/spool/lpd/lp :\ :af=/var/log/lp-acct :\ :lf=/var/log/lp-errs :\ :pl#66 :\ :pw#80 :\ :pc#150 :\ :mx#0 :\ :sh # rlp|Remote printer entry # :lp= # :rm=remotehost # :rp=remoteprinter # :sd=/var/spool/lpd/remote # :mx#0 # :sh lp1|postscript:\ :lp=/dev/null:sh:\ :sd=/var/spool/lpd/lp1:\ :af=/var/log/lp-acct:\ :lf=/var/log/lp-errs:\ :mx=0:\ :if=/usr/bin/ps2smbprint: smbprint file #!/bin/sh logfile=/var/log/smb-print.log #co sa tyka tohto pojebaneho log file treba davat pozor na prava a uzivatela co moze pisat do toho suboru server=petros service=petros user=jakub password=tlac workgroup=PETROS echo "server $server, service $service" >> $logfile TRANS=0 ( # NOTE You may wish to add the line `echo translate' if you want automatic # CR/LF translation when printing. if [ $TRANS -eq 1 ]; then echo translate fi echo "print -" cat ) | smbclient "\\\\$server\\$service" $password -U $user -W $workgroup >> $logfile ps2smbprint file #!/bin/sh gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=st800 -sOutputFile=\|/usr/bin/smbprint -