<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Would this perhaps be somewhat of a starting point to obtain a currently installed printer-driver on an Ubuntu 10.04 computer? The problem I am having is that the 'Lexmark X5070' printer I have has no driver available on the Lexmark website for Ubuntu 12.04. Someone suggested I may be able to retain the current print driver and install it on Ubuntu 12.04. I know I can read more but suggestions are welcome.<br><br><h1 id="head-6e38371534ff2981aa462699e456d05201208f24">Moving printer definitions from one machine to another</h1>
<span class="anchor" id="line-3"></span><span class="anchor" id="line-4"></span><p class="line874">Let
 us say that you have a print server with 30 defined printers. And you 
have to move all those printers to another machine, because you want to 
retire that server. Sounds difficult? Yes. But it isn't. <span class="anchor" id="line-5"></span><span class="anchor" id="line-6"></span></p><p class="line874">At least if you have a CentOS 4 or CentOS 3 machine, the printconf command vanished from CentOS 5.  <span class="anchor" id="line-7"></span><span class="anchor" id="line-8"></span></p><div><table><tbody><tr>  <td class="lmimg blue" style="text-align: center"><p class="line862"> <img class="attachment" src="http://wiki.centos.org/ArtWork/WikiDesign?action=AttachFile&do=get&target=info.png" title="attachment:ArtWork/WikiDesign/info.png"> </p></td>
  <td class="lmtxt blue" colspan="2" style="text-align: left; vertical-align: top"><p class="line862"> <big><strong>Note:</strong></big> For moving printer configs with CentOS 5 please <a class="http" href="http://cyberelk.net/tim/2007/05/04/what-happened-to-printconf-tui/">see this page</a> until it gets incorporated into the wiki. </p></td>
</tr>
</tbody></table></div><span class="anchor" id="line-9"></span><span class="anchor" id="line-10"></span><p class="line867">
</p><h2 id="head-4cf1c73ab583f68071ef4d91cdcfdb5cc747e52e">Here's how to do it</h2>
<span class="anchor" id="line-11"></span><span class="anchor" id="line-12"></span><p class="line874">Make yourself at home as root on the old server. <span class="anchor" id="line-13"></span><span class="anchor" id="line-14"></span></p><p class="line874">Issue the following command: <span class="anchor" id="line-15"></span><span class="anchor" id="line-16"></span></p><p class="line867"><span class="anchor" id="line-17"></span></p><pre>printconf-tui --Xexport > printers.xml
<span class="anchor" id="line-18"></span></pre><span class="anchor" id="line-19"></span><span class="anchor" id="line-20"></span><p class="line862">Now copy the <tt class="backtick">printers.xml</tt> to the new machine.  <span class="anchor" id="line-21"></span><span class="anchor" id="line-22"></span></p><p class="line874">Log on to this machine as root, also. <span class="anchor" id="line-23"></span><span class="anchor" id="line-24"></span></p><p class="line874">Do the following: <span class="anchor" id="line-25"></span><span class="anchor" id="line-26"></span></p><p class="line867"><span class="anchor" id="line-27"></span></p><pre>printconf-tui --Ximport < printers.xml
<span class="anchor" id="line-28"></span></pre><span class="anchor" id="line-29"></span><span class="anchor" id="line-30"></span><p class="line874">Now the last thing you have to do is restart cups on the new machine - and you're ready: <span class="anchor" id="line-31"></span><span class="anchor" id="line-32"></span></p><p class="line867"><span class="anchor" id="line-33"></span></p><pre>service cups restart<br><br><br><br>Thanks for your help <br></pre><br>                                         </div></body>
</html>