{"id":132,"date":"2007-05-04T10:18:38","date_gmt":"2007-05-04T10:18:38","guid":{"rendered":"http:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/"},"modified":"2014-05-20T09:12:07","modified_gmt":"2014-05-20T08:12:07","slug":"what-happened-to-printconf-tui","status":"publish","type":"post","link":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/","title":{"rendered":"&#8220;What happened to printconf-tui?&#8221;"},"content":{"rendered":"<p>This question seems to keep cropping up.  I&#8217;ll explain why printconf-tui is no longer in Red Hat Enterprise Linux, and what its replacement is.<\/p>\n<p><!--more--><\/p>\n<p>In Red Hat Enterprise Linux there used to be a command line tool for importing and exporting CUPS configuration.  In fact it was part of the printconf system: the previously-exported XML file would be imported into printconf&#8217;s own configuration, and printconf would then write new CUPS configuration based on that.<\/p>\n<p>Red Hat Enterprise Linux 5 provides a re-written printing administration tool (still called system-config-printer), avoiding the many problems of the &#8220;separate configuration&#8221; approach.  Now CUPS is configured directly using IPP, and this can be done remotely.  The new system-config-printer tool does things in the same way as the CUPS web interface and the CUPS command line tools, and so they can all be used interchangeably.<\/p>\n<p>As a result, importing and exporting queues is much more flexible and predictable.  So what&#8217;s the new approach for performing the tasks that printconf-tui used to accomplish?<\/p>\n<p style=\"font-weight: bold; font-style: italic\">Copying CUPS configuration from one computer to another<\/p>\n<p>If this is the task you want to perform, the first question I want to ask you is if you are sure.  You might find that CUPS browsing lets you achieve the same thing more dynamically.  However, if you really want to copy all of the queues  to another RHEL-5 machine, copy these: <em>\/etc\/cups\/ppd\/*.ppd \/etc\/cups\/printers.conf \/etc\/cups\/classes.conf<\/em>  &#8212; and optionally <em>\/etc\/cups\/cupsd.conf<\/em> for the server settings (e.g. whether to publish shared queues).<\/p>\n<p>Make sure you set their SELinux file contexts correctly on the target machine.  Just use <em>\/sbin\/restorecon -vR \/etc\/cups<\/em>.<\/p>\n<p><em><strong>Creating new queues from a script<\/strong><\/em><\/p>\n<p>It can be useful to set up new queues on a machine at installation time.  Whereas printconf-tui could be used in a kickstart script, admittedly that is no longer as easy because the CUPS daemon needs to be running before any of the tools can work.  This can be worked around by setting up a script to be run on reboot.<\/p>\n<p>The basic usage is: <em>lpadmin -p queuename -v device_uri -m PPD<\/em><\/p>\n<p>You can use the lpinfo command to see a list of available device URIs and PPDs.  Use <em>lpinfo -v<\/em> to see the device URIs and <em>lpinfo -m |sort|less<\/em> to see the PPDs (it is a long list!). All of the PPDs on the system, including those generated on demand by Foomatic, are available to CUPS.  For example:<\/p>\n<pre>\/usr\/sbin\/lpadmin -p deskjet -v usb:\/\/HP\/DeskJet%206940 \\\r\n                  -m foomatic:HP-DeskJet_6940-hpijs.ppd\r\n\/usr\/sbin\/lpadmin -p deskjet -o printer-is-shared=true\r\n\/usr\/sbin\/cupsenable deskjet\r\n\/usr\/sbin\/accept deskjet<\/pre>\n<p><em><strong>Managing queues on a headless print server<\/strong><\/em><\/p>\n<p>Often a print server will be installed with as little software as possible, and this means no graphical utilities.   There are two ways to configure the CUPS server in this case: the most obvious one is to use the CUPS web interface on that machine. On a graphical desktop machine, point a web server to http:\/\/the-printer-server:631 and configure away.<\/p>\n<p>The other way is to use system-config-printer on the desktop machine, but tell it to configure the print server&#8217;s CUPS instance rather than the one on the local machine (&#8220;Goto Server&#8221;).  Just make sure to allow remote administration on the print server first; you can do that via the CUPS web interface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This question seems to keep cropping up. I&#8217;ll explain why printconf-tui is no longer in Red Hat Enterprise Linux, and what its replacement is.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-software"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&quot;What happened to printconf-tui?&quot; - PRINT HEAD<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;What happened to printconf-tui?&quot; - PRINT HEAD\" \/>\n<meta property=\"og:description\" content=\"This question seems to keep cropping up. I&#8217;ll explain why printconf-tui is no longer in Red Hat Enterprise Linux, and what its replacement is.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/\" \/>\n<meta property=\"og:site_name\" content=\"PRINT HEAD\" \/>\n<meta property=\"article:published_time\" content=\"2007-05-04T10:18:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-20T08:12:07+00:00\" \/>\n<meta name=\"author\" content=\"Tim Waugh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tim Waugh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/\"},\"author\":{\"name\":\"Tim Waugh\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"headline\":\"&#8220;What happened to printconf-tui?&#8221;\",\"datePublished\":\"2007-05-04T10:18:38+00:00\",\"dateModified\":\"2014-05-20T08:12:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/\"},\"wordCount\":536,\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"articleSection\":[\"Software\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/\",\"name\":\"\\\"What happened to printconf-tui?\\\" - PRINT HEAD\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\"},\"datePublished\":\"2007-05-04T10:18:38+00:00\",\"dateModified\":\"2014-05-20T08:12:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2007\\\/05\\\/04\\\/what-happened-to-printconf-tui\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;What happened to printconf-tui?&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\",\"name\":\"PRINT HEAD\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\",\"name\":\"Tim Waugh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"contentUrl\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"width\":731,\"height\":140,\"caption\":\"Tim Waugh\"},\"logo\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\"},\"sameAs\":[\"http:\\\/\\\/cyberelk.net\\\/tim\"],\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/author\\\/twaugh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"What happened to printconf-tui?\" - PRINT HEAD","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/","og_locale":"en_GB","og_type":"article","og_title":"\"What happened to printconf-tui?\" - PRINT HEAD","og_description":"This question seems to keep cropping up. I&#8217;ll explain why printconf-tui is no longer in Red Hat Enterprise Linux, and what its replacement is.","og_url":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/","og_site_name":"PRINT HEAD","article_published_time":"2007-05-04T10:18:38+00:00","article_modified_time":"2014-05-20T08:12:07+00:00","author":"Tim Waugh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tim Waugh","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/#article","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/"},"author":{"name":"Tim Waugh","@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"headline":"&#8220;What happened to printconf-tui?&#8221;","datePublished":"2007-05-04T10:18:38+00:00","dateModified":"2014-05-20T08:12:07+00:00","mainEntityOfPage":{"@id":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/"},"wordCount":536,"publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"articleSection":["Software"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/","url":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/","name":"\"What happened to printconf-tui?\" - PRINT HEAD","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/#website"},"datePublished":"2007-05-04T10:18:38+00:00","dateModified":"2014-05-20T08:12:07+00:00","breadcrumb":{"@id":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cyberelk.net\/tim\/2007\/05\/04\/what-happened-to-printconf-tui\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cyberelk.net\/tim\/"},{"@type":"ListItem","position":2,"name":"&#8220;What happened to printconf-tui?&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/cyberelk.net\/tim\/#website","url":"https:\/\/cyberelk.net\/tim\/","name":"PRINT HEAD","description":"","publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cyberelk.net\/tim\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6","name":"Tim Waugh","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","url":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","contentUrl":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","width":731,"height":140,"caption":"Tim Waugh"},"logo":{"@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png"},"sameAs":["http:\/\/cyberelk.net\/tim"],"url":"https:\/\/cyberelk.net\/tim\/author\/twaugh\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pnnS2-28","_links":{"self":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":2,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":1137,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/132\/revisions\/1137"}],"wp:attachment":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}