<?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: HP/UX to Linux migration - Printing questions in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099571#M49548</link>
    <description>At least RHEL5 has this setting in /etc/cups/cupsd.conf by default:&lt;BR /&gt;&lt;BR /&gt;# Only listen for connections from the local machine.&lt;BR /&gt;Listen localhost:631&lt;BR /&gt;Listen /var/run/cups/cups.sock&lt;BR /&gt;&lt;BR /&gt;This means you must either:&lt;BR /&gt;- use CUPS configuration tools that use /var/run/cups/cups.sock to talk with the cupsd, or&lt;BR /&gt;- start the browser on your print server, then point it to http://localhost:631, or&lt;BR /&gt;- use SSH to forward the connection from your workstation to your print server:&lt;BR /&gt;$ ssh -L 1111:localhost:631 username@printserver&lt;BR /&gt;(new shell window on your workstation)&lt;BR /&gt;$ firefox http://localhost:1111&lt;BR /&gt;&lt;BR /&gt;Eventually, you will want to change the "Listen localhost:631" to something like "Listen *.631" and add some more Allow lines to the various &lt;LOCATION&gt; blocks in your cupsd.conf, to make cupsd accessible remotely. The default configuration is intended to be suitable for a laptop/desktop installation, where the cupsd serves only the host it's running on.&lt;BR /&gt;&lt;BR /&gt;If you're familiar with Apache configuration files, you'll notice that cupsd.conf syntax is similar to Apache's httpd.conf syntax.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/LOCATION&gt;</description>
    <pubDate>Wed, 26 Mar 2008 13:15:12 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2008-03-26T13:15:12Z</dc:date>
    <item>
      <title>HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099566#M49543</link>
      <description>We are looking into migrating from HP/UX to a flavor of Linux in a year on one of our primary boxes that have a bunch of printing queues. &lt;BR /&gt;&lt;BR /&gt;Currently under HP/UX most (98%) of the ques are defined using HPPI (jetadmin), &lt;BR /&gt;&lt;BR /&gt;we generally use 4 printing  command line options for each "quename"&lt;BR /&gt;&lt;BR /&gt;Example: &lt;BR /&gt;Compressed &lt;BR /&gt;lp -dquename -oc -ovsi7.27 jobname &lt;BR /&gt;lp -dquename -oc -olandscape -ovsi5.45 jobname &lt;BR /&gt;Non-Compressed &lt;BR /&gt;lp -dquename -ovsi7.27 jobname &lt;BR /&gt;lp -dquename -olandscape -ovsi5.45 jobname &lt;BR /&gt;&lt;BR /&gt;As I use HPPI or the subset "addqueue" command in my scripts to add queues to our HP/UX box, I will need to re-create approximately 250-300 physically networked printers.. &lt;BR /&gt;&lt;BR /&gt;Question: &lt;BR /&gt;What is the sequence of events for defining ques on Linux? &lt;BR /&gt;&lt;BR /&gt;Is there a similar utility to add queues to the linux system? &lt;BR /&gt;&lt;BR /&gt; I realize it has the LPD and CUPS product, but I lack any familiarity with these as the ease of use of the jetadmin/hppi system has never required I investigate it. &lt;BR /&gt;&lt;BR /&gt;Does any one have a script to define printers to make it possible to select model scripts or something similar as I do now? &lt;BR /&gt;&lt;BR /&gt;Any insight into this process would be appreciated. I am in the process of familiarizing myself with CUPS. I just don't know where to start.. &lt;BR /&gt;</description>
      <pubDate>Tue, 25 Mar 2008 13:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099566#M49543</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-03-25T13:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099567#M49544</link>
      <description>Depending on which flavor of Linux you pick, there are usually several printing systems to choose from. However, CUPS seems to be the common default choice.&lt;BR /&gt;&lt;BR /&gt;CUPS has a web-based GUI, available at port 631 of the print server (in modern distributions, usually only localhost access allowed by default). There are also various X Window System-based GUIs, but their availability and functionality tends to vary among various Linux distributions. &lt;BR /&gt;&lt;BR /&gt;In CUPS, printing destinations (queues) are defined using URL-style strings. The printing URL of a HP JetDirect printer will look like this:&lt;BR /&gt;socket://printername:9100&lt;BR /&gt;&lt;BR /&gt;Instead of model scripts, CUPS uses PPD files  to define printer capabilities. There are usually some PPD files pre-installed: the command "lpinfo -l -m" will list them. You can also supply your own PPD file: they are often available from the printer manufacturer (sometimes associated with Mac printer drivers) or from &lt;A href="http://linuxprinting.org" target="_blank"&gt;http://linuxprinting.org&lt;/A&gt; website.&lt;BR /&gt;&lt;BR /&gt;To define a new printer queue using the command line (or to configure an existing one), the command is:&lt;BR /&gt;lpadmin -p &lt;QUEUENAME&gt; [option(s)]&lt;BR /&gt;&lt;BR /&gt;For example, to define a new printer "laser" using JetDirect at address 11.22.33.44, with a custom PPD file "laserjetNNNN.ppd", the command would be:&lt;BR /&gt;&lt;BR /&gt;lpadmin -p laser -v socket://11.22.33.44:9100 -D "Description" -L "Room 123" -P laserjetNNNN.ppd&lt;BR /&gt;&lt;BR /&gt;After defining the queue and associating it with a PPD file, you can then use "lpoptions -l" to list all the available PPD-file-based  options for it. In addition to those, "man lp" lists some generic options, like "-o landscape" for landscape output.&lt;BR /&gt;&lt;BR /&gt;You can then use lpadmin or lpoptions commands to set suitable default values:&lt;BR /&gt;&lt;BR /&gt;lpadmin -p laser -o media=letter -o cpi=12&lt;BR /&gt;or&lt;BR /&gt;lpoptions -d laser -o media=letter -o cpi=12&lt;BR /&gt;&lt;BR /&gt;With the lpoptions command, you can even define several "option sets" (called "instances" in CUPS jargon) for each printer, using a slash after the printer name. For example, you could define the defaults according to the settings you use the most (I'll assume non-compressed non-landscape here) for queue "laser", then define "laser/compressed", "laser/landscape" and "laser/compland" for the three other combinations. &lt;BR /&gt;&lt;BR /&gt;To print, you could simply use "lp -dlaser jobname" to use the default settings, or "lp -dlaser/landscape jobname" to use another pre-defined set of options.&lt;BR /&gt;&lt;BR /&gt;CUPS documentation is available at:&lt;BR /&gt;&lt;A href="http://www.cups.org/documentation.php" target="_blank"&gt;http://www.cups.org/documentation.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'll have to say the free documentation could be better. I think the CUPS developers would like the people to buy the book listed at their web page:&lt;BR /&gt;&lt;A href="http://www.cups.org/book/index.php" target="_blank"&gt;http://www.cups.org/book/index.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MK&lt;/QUEUENAME&gt;</description>
      <pubDate>Tue, 25 Mar 2008 19:19:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099567#M49544</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-03-25T19:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099568#M49545</link>
      <description>Have a test environment, trying to connect to the web interface, don't get browser reply any insight on correct definitions in the /etc/cups/cupsd.conf for the web interface?? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Mar 2008 20:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099568#M49545</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-03-25T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099569#M49546</link>
      <description>Please tell us the name and version of your Linux distribution, and the CUPS version too if possible.&lt;BR /&gt;&lt;BR /&gt;Without this basic information it is very hard to know what might be wrong - some distributions customize the default settings of CUPS source distribution rather extensively.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 25 Mar 2008 20:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099569#M49546</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-03-25T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099570#M49547</link>
      <description>Matt, we are doing testing on Fedora FC5 and 6 and we will be using Redhat ES5 when we migrate. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2008 12:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099570#M49547</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-03-26T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099571#M49548</link>
      <description>At least RHEL5 has this setting in /etc/cups/cupsd.conf by default:&lt;BR /&gt;&lt;BR /&gt;# Only listen for connections from the local machine.&lt;BR /&gt;Listen localhost:631&lt;BR /&gt;Listen /var/run/cups/cups.sock&lt;BR /&gt;&lt;BR /&gt;This means you must either:&lt;BR /&gt;- use CUPS configuration tools that use /var/run/cups/cups.sock to talk with the cupsd, or&lt;BR /&gt;- start the browser on your print server, then point it to http://localhost:631, or&lt;BR /&gt;- use SSH to forward the connection from your workstation to your print server:&lt;BR /&gt;$ ssh -L 1111:localhost:631 username@printserver&lt;BR /&gt;(new shell window on your workstation)&lt;BR /&gt;$ firefox http://localhost:1111&lt;BR /&gt;&lt;BR /&gt;Eventually, you will want to change the "Listen localhost:631" to something like "Listen *.631" and add some more Allow lines to the various &lt;LOCATION&gt; blocks in your cupsd.conf, to make cupsd accessible remotely. The default configuration is intended to be suitable for a laptop/desktop installation, where the cupsd serves only the host it's running on.&lt;BR /&gt;&lt;BR /&gt;If you're familiar with Apache configuration files, you'll notice that cupsd.conf syntax is similar to Apache's httpd.conf syntax.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/LOCATION&gt;</description>
      <pubDate>Wed, 26 Mar 2008 13:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099571#M49548</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-03-26T13:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099572#M49549</link>
      <description>Matt, that got the web interface up. I will have to muck with the product so I can get familiar before we migrate now. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2008 14:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099572#M49549</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-03-26T14:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX to Linux migration - Printing questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099573#M49550</link>
      <description>Matt, that got the web interface up. I will have to muck with the product so I can get familiar before we migrate now.</description>
      <pubDate>Wed, 26 Mar 2008 14:26:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-migration-printing-questions/m-p/5099573#M49550</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-03-26T14:26:29Z</dc:date>
    </item>
  </channel>
</rss>

