<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MacLochlainns Weblog &#187; cupsd.pid</title>
	<atom:link href="http://blog.mclaughlinsoftware.com/tag/cupsdpid/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mclaughlinsoftware.com</link>
	<description>Michael McLaughlin's Technical Blog</description>
	<lastBuildDate>Wed, 28 Jul 2010 00:02:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setting up a printer in VMWare Ubuntu instance</title>
		<link>http://blog.mclaughlinsoftware.com/2008/10/16/setting-up-a-printer-in-vmware-ubuntu-instance/</link>
		<comments>http://blog.mclaughlinsoftware.com/2008/10/16/setting-up-a-printer-in-vmware-ubuntu-instance/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 07:26:49 +0000</pubDate>
		<dc:creator>maclochlainn</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Common Unix Printing Service]]></category>
		<category><![CDATA[configure printer in VMWare instance]]></category>
		<category><![CDATA[Configure VMWare printer in NAT]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[cupsd.pid]]></category>
		<category><![CDATA[NAT printer configuration]]></category>
		<category><![CDATA[Ubuntu printing on Mac OS]]></category>
		<category><![CDATA[VMWare share printers]]></category>

		<guid isPermaLink="false">http://maclochlainn.wordpress.com/?p=581</guid>
		<description><![CDATA[As I mentioned before, working in the virtual machine is a great solution when you need to work in multiple operating systems. Setting up printing is a step that goes with the operating system. It is very easy to configure in Ubuntu running in VMWare on a Mac OS X machine.]]></description>
			<content:encoded><![CDATA[<p>As I mentioned before, working in the virtual machine is a great solution when you need to work in multiple operating systems. Setting up printing is a step that goes with the operating system. It is very easy to configure in Ubuntu running in VMWare on a Mac OS X machine.</p>
<p>I found that the standard printer in the virtual machine wouldn&#8217;t work. I tried it in both VMWare 1.x and 2.x but without any luck. It did work ineffectively in VMWare 2.x but it embedded characters in simple documents that shouldn&#8217;t be there. Finally, I pursued this course. It has the benefit of working like you&#8217;d expect! It lets you print your native Ubuntu documents when you&#8217;ve configured the VMWare machine in NAT or bridged networking mode. The only difference is that a bridged network doesn&#8217;t require you to share the printer on the Mac OS because it directly accesses it.</p>
<p>The first step using a NAT network requires that you share you printer setup on the Mac OS. You do that by launching System Preferences, then click on Sharing. In Sharing, you enable print sharing by chosing the network printer &#8230;</p>
<p><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/shareprinter.png"><img class="aligncenter size-full wp-image-521" title="shareprinter" src="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/shareprinter.png" alt="" style="border:none" width="700" height="586" /></a></p>
<p>After you&#8217;ve enabled sharing on the Mac OS, you can take the following steps in Ubuntu:</p>
<p>1. Click the <em>System</em> menu choice, choose <em>Administration</em>. and <em>Printing</em>, as shown in screen shot:</p>
<p><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/ubuntuprintermenu.png"><img class="aligncenter size-full wp-image-582" title="ubuntuprintermenu" src="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/ubuntuprintermenu.png" alt="" style="border:none" width="376" height="538" /></a></p>
<p>2. You&#8217;ll then see the following screen but not gray scaled. If you don&#8217;t, you&#8217;ll also see the following form. a gray scaled version indicates that you&#8217;ve run VMWare Tools before updating the Ubuntu OS CUPS service:</p>
<p><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/printernotconnected.png"><img class="aligncenter size-full wp-image-668" title="printernotconnected" src="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/printernotconnected.png" alt="" style="border:none" width="700" height="526" /></a></p>
<p>As mentioned, this means there&#8217;s a problem with a disabled service &#8211; typically cups (Common Unix Printing Service). You can click the <em>Help</em>, then <em>Troubleshoot</em> to further diagnose the problem. In the first screen click the <em>Forward</em> button to continue. In this screen, click the Not Listed (because it should be an empty list), and then click the <em>Forward</em> button to continue. You most likely will see the following dialog box, which tells you that the cups service is stopped (a general occurrence when you upgrade from VMWare Fusion 1.x to 2.x).</p>
<p><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/cupsservicestopped1.png"><img class="aligncenter size-full wp-image-670" title="cupsservicestopped1" src="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/cupsservicestopped1.png" alt="" style="border:none" width="486" height="379" /></a></p>
<p>There&#8217;s a temptation to follow the instructions, and I yielded to it without a positive outcome. What you&#8217;ll find is that the cups (cupsys) service is enabled but if you use the VMWare Fusion menu, you&#8217;ll find that it isn&#8217;t, as shown:</p>
<p><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/vmwareservices.png"><img class="aligncenter size-full wp-image-671" title="vmwareservices" src="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/vmwareservices.png" alt="" style="border:none" width="428" height="416" /></a></p>
<p>If you stop here and check in a terminal session, you&#8217;ll see that life isn&#8217;t rosy after the upgrade. Even if you check it and restart the VM, the printing problem won&#8217;t resolve. This appears to be a part of the recompilation of cups by the VMWare Tools. It appears to happen when you opt to compile Ubuntu CUPS while running the VMWare Tools. You&#8217;re only prompted to compile these if you&#8217;re not on the most current CUPS release by Ubuntu.</p>
<p>You use the following command to check the status of the printer service:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># sudo /etc/init.d/cupsys status</span></pre></div></div>

<p>You will most likely get something like this <em>if you have a problem</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Status of Common Unix Printing System: cupsd is not running but <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>cups<span style="color: #000000; font-weight: bold;">/</span>cupsd.pid exists.</pre></div></div>

<p>This is where it becomes obvious that the VMWare Fusion 2.x upgrade can introduce the problem. It is simple to avoid the problem by ensuring that the Ubuntu OS is patched to the most current CUPs version before running the VMWare Tools. I fixed the problem by reinstalling Ubuntu from scratch, and patching it to the current level. Then, you won&#8217;t have a failure of the CUPS process.</p>
<p>When you fix any errors from the upgrade or provided you&#8217;re on VMWare Fusion 2.x, you should click the <em>Show printers shared by other systems</em> check box, then click the <em>Refresh</em> button to display any network printers if they don&#8217;t refresh automatically.</p>
<p><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/shareubuntuprinter.png"></a><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/ubuntuprinterconf.png"><img class="aligncenter size-full wp-image-680" title="ubuntuprinterconf" src="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/ubuntuprinterconf.png" alt="" style="border:none" width="700" height="532" /></a></p>
<p>3. You click on the desired network printer, which displays the following screen. Click the <em>Make Default</em> button after you click the <em>Print Test Page</em> button.</p>
<p><a href="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/makedefaultprinter.png"><img class="aligncenter size-large wp-image-585" title="makedefaultprinter" src="http://blog.mclaughlinsoftware.com/wp-content/uploads/2008/10/makedefaultprinter.png?w=700" alt="" style="border:none" width="700" height="502" /></a></p>
<p>If you caught my post on doing this in a Microsoft Windows environment, isn&#8217;t it stuning how easy Ubuntu is compared to the &#8220;<em>user-friendly</em>&#8221; Windows interface (unless you&#8217;re upgrading). If you need the Windows instructions, <a title="Setting up a network printer in VMWare Windows instance" href="http://blog.mclaughlinsoftware.com/2008/10/06/setting-up-a-printer-in-vmware-windows-instance/" target="_blank">you can find them here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mclaughlinsoftware.com/2008/10/16/setting-up-a-printer-in-vmware-ubuntu-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
