<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CUPS printer options in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680965#M79764</link>
    <description>Hello Stefan,&lt;BR /&gt;&lt;BR /&gt;This is why you need to use the -p option to specify "instances".  &lt;BR /&gt;&lt;BR /&gt;lpoptions -p printer/alias1 -o media=A4 -o cpi=5&lt;BR /&gt;&lt;BR /&gt;lpoptions -p printer/alias2 -o media=legal&lt;BR /&gt;&lt;BR /&gt;Then when you run your print job you use the following:&lt;BR /&gt;&lt;BR /&gt;To print a A4 document:&lt;BR /&gt;lp -d printer/alias1 file &lt;BR /&gt;&lt;BR /&gt;To print a Legal document:&lt;BR /&gt;lp -d printer/alias2 file&lt;BR /&gt;&lt;BR /&gt;This keeps your flexibility. The users would just have to know which alias to use for the documents they use the most. Perhaps you could even publish a cheat-sheet stating which printer/alias to use for the document.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Martin</description>
    <pubDate>Wed, 13 Mar 2002 14:03:18 GMT</pubDate>
    <dc:creator>Martin Burnett_2</dc:creator>
    <dc:date>2002-03-13T14:03:18Z</dc:date>
    <item>
      <title>CUPS printer options</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680962#M79761</link>
      <description>Hi everyone!&lt;BR /&gt;&lt;BR /&gt;Got some kind of trouble with our CUPS on SuSE 7.3!&lt;BR /&gt;&lt;BR /&gt;I want to set up "aliases" for the most frequently used printer options (e. g. landscape, cpi=xx, and so on) because its impossible to explain to some 2000 Users how to exactly format a print job. In words: instead of "lp -dprinter -o landscape -o cpi=5 file" it has been standard over years to set the following command: "lp -dprinter -olp -oc file"; &lt;BR /&gt;Does anybody knows where I can define these aliases?&lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Tue, 12 Mar 2002 08:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680962#M79761</guid>
      <dc:creator>Stefan_6</dc:creator>
      <dc:date>2002-03-12T08:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: CUPS printer options</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680963#M79762</link>
      <description>Hello Stefan&lt;BR /&gt;&lt;BR /&gt;I found this information in the CUPS User Manual (&lt;A href="http://www.cups.org/sum.pdf)" target="_blank"&gt;http://www.cups.org/sum.pdf)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The lpoptions(1) command saves the options for your printers. Like the lp and lpr commands, it accepts printer options using the -o argument:&lt;BR /&gt;lpoptions -o media=A4 -o sides=two-sided-long-edge ENTER&lt;BR /&gt;&lt;BR /&gt;lpoptions -o media=Legal -o scaling=100 ENTER&lt;BR /&gt;&lt;BR /&gt;Once saved, any lp or lpr command will use them when you print.&lt;BR /&gt;&lt;BR /&gt;The lpoptions command can also be used to show the current options by not specifying any new options on the command line:&lt;BR /&gt;lpoptions ENTER&lt;BR /&gt;media=A4 sides=two-sided-long-edge&lt;BR /&gt;lpoptions -p deskjet ENTER&lt;BR /&gt;media=Legal scaling=100&lt;BR /&gt;&lt;BR /&gt;Besides setting options for each print queue, CUPS supports printer instances which allow you to define several different sets of options for each printer. You specify a printer instance using the slash (/) character:&lt;BR /&gt;&lt;BR /&gt;lpoptions -p laserjet/duplex -o sides=two-sided-long-edge ENTER&lt;BR /&gt;&lt;BR /&gt;lpoptions -p laserjet/legal -o media=Legal ENTER&lt;BR /&gt;&lt;BR /&gt;The lp and lpr commands also understand this notation:&lt;BR /&gt;lp -d laserjet/duplex filename ENTER&lt;BR /&gt;lpr -P laserjet/legal filename ENTER&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Martin</description>
      <pubDate>Wed, 13 Mar 2002 12:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680963#M79762</guid>
      <dc:creator>Martin Burnett_2</dc:creator>
      <dc:date>2002-03-13T12:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: CUPS printer options</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680964#M79763</link>
      <description>Yo Martin!&lt;BR /&gt;&lt;BR /&gt;Thanx for your reply!&lt;BR /&gt;&lt;BR /&gt;Sure I've also digged the cups.org Docs and of course found this pdf; the problem of the "lpoptions" command is, that I define DEFAULTS, in words the printer ALWAYS prints in landscape mode if I configure lpoptions; unfortunately it has to remain flexible we must be able to print landscape or not, compressed or not, etc.&lt;BR /&gt;&lt;BR /&gt;greets&lt;BR /&gt;Stefan</description>
      <pubDate>Wed, 13 Mar 2002 12:56:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680964#M79763</guid>
      <dc:creator>Stefan_6</dc:creator>
      <dc:date>2002-03-13T12:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: CUPS printer options</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680965#M79764</link>
      <description>Hello Stefan,&lt;BR /&gt;&lt;BR /&gt;This is why you need to use the -p option to specify "instances".  &lt;BR /&gt;&lt;BR /&gt;lpoptions -p printer/alias1 -o media=A4 -o cpi=5&lt;BR /&gt;&lt;BR /&gt;lpoptions -p printer/alias2 -o media=legal&lt;BR /&gt;&lt;BR /&gt;Then when you run your print job you use the following:&lt;BR /&gt;&lt;BR /&gt;To print a A4 document:&lt;BR /&gt;lp -d printer/alias1 file &lt;BR /&gt;&lt;BR /&gt;To print a Legal document:&lt;BR /&gt;lp -d printer/alias2 file&lt;BR /&gt;&lt;BR /&gt;This keeps your flexibility. The users would just have to know which alias to use for the documents they use the most. Perhaps you could even publish a cheat-sheet stating which printer/alias to use for the document.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Martin</description>
      <pubDate>Wed, 13 Mar 2002 14:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680965#M79764</guid>
      <dc:creator>Martin Burnett_2</dc:creator>
      <dc:date>2002-03-13T14:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: CUPS printer options</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680966#M79765</link>
      <description>Okay, now I understand the function "lpoptions" (therefore the assigned Points :) ); this means that I create a "virtual" printer for the printer xxx with the option e. g. landscape=true;&lt;BR /&gt;&lt;BR /&gt;AND now I know that its useless for us, 'cause it would mean that I have to create for each of our some hundred printers at least 8 or 9 instances, need to update thousands of print commands in our databases and not to mention "some" of user specified SQL-Statements :) !&lt;BR /&gt;&lt;BR /&gt;I think I have to take it as it is and manipulate the source files :(&lt;BR /&gt;&lt;BR /&gt;After all, thanks a lot for your help!</description>
      <pubDate>Wed, 13 Mar 2002 14:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cups-printer-options/m-p/2680966#M79765</guid>
      <dc:creator>Stefan_6</dc:creator>
      <dc:date>2002-03-13T14:42:14Z</dc:date>
    </item>
  </channel>
</rss>

