Tips And Trik CUPS

maaf sepertinya share saya ini kurang begitu penting, karena ini hanya hal sepele, tapi saya sering kelupaan mengenai hal ini.

berikut trik singkat dan yang banyak digunakan dalam CUPS


kalau mau ngeprint ke default printer
# lpr filename

kalau mau ngeprint ke printer yang berbeda
# lpr -P namaprinter namafile

kalau mau ngeprint banyak
# lpr -P namaprinter -#4 namafile

cek status cups
# lpstat parameternya

    -t : show all CUPS info
    -d : show default printer
    -p : show all printers
    -a : show all printers that accept jobs
    -o : show active print jobs

kalo mau cancel prinan
# lprm <job-id>

cek printer options
# lpoptions -p printer

kalo mau ngerubah option pada prinan yang khusus
# lpr -P printer -o option1=value -o option2=value filename

ngerubah printer option
# lpoptions -p printer -o option1=value -o option2=value

balikin options ke default
# lpoptions -p printer -r option1 -r option2

list queue
# lpoptions -p printer -l


ini list value nya

    landscape                  
 – for landscape printing
    media=A4                  
– check your ppd file for possible media values
    Collate=true | false          
 – useful when printing multiple copies
    sides=two-sided-short-edge  
 – used for landscape prints [the default is sides=one-sided]
    sides=two-sided-long-edge   
– used for portrait prints [the default is sides=one-sided]
    page-ranges=1-4,7,9-12       
– print specific pages or page ranges
    page-set=odd | even           
– print only odd or even pages
    outputorder=normal | reverse   
– the pages are printed from first to last or the other way around
    cpi=10                   
– characters per inch
    lpi=6                       
– lines per inch
    columns=2                  
– format the text in two or more columns
    page-left=value           
– specify the left margin in points [1pt = 1/72inch]
    page-right=value           
– specify the right margin in points [1pt = 1/72inch]
    page-top=value           
– specify the top margin in points [1pt = 1/72inch]
    page-bottom=value          
 – specify the bottom margin in points [1pt = 1/72inch]
    job-sheets=none           
– front and back cover pages
    job-sheets=standard
    job-sheets=classified,classified

Comments

Popular posts from this blog

Configure Open Smtp google with Postfix

membuat random password di linux

ISCSI