<?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>Sand2Silicon &#187; Printing</title>
	<atom:link href="http://guardiansrealm.net/sand2silicon/tag/printing/feed/" rel="self" type="application/rss+xml" />
	<link>http://guardiansrealm.net/sand2silicon</link>
	<description>Hacking the world, one line at a time!</description>
	<lastBuildDate>Wed, 02 Mar 2011 18:02:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Configuring OpenSolaris: Printing &#8211; Brother 7820N</title>
		<link>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-printing-brother-7820n/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-printing-brother-7820n/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 00:38:13 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=67</guid>
		<description><![CDATA[Setting up your printer in OpenSolaris can be a trick if your drivers aren't yet included. This post gives you the pointer you need to get going. 

Then I unveil 'printcpp' for simple, beautiful, CLI printing of source-code!]]></description>
			<content:encoded><![CDATA[<h2>Install the Printer</h2>
<p>Setting up your printer in OpenSolaris can be a trick, if your drivers aren&#8217;t yet included.</p>
<ol>
<li> The place to start is in: <em>System | Administration | Print Manager</em></li>
<li>Click &#8220;Add Printer&#8221; button and get to work</li>
<li>If your printer isn&#8217;t available try getting a driver from one of these places:
<ul>
<li>http://www.linuxfoundation.org/en/OpenPrinting</li>
<li>http://www.cups.org/index.php</li>
</ul>
</li>
<li>You need to get a valid *.ppd or *.ppd.gz file for your printer.</li>
<li>Close the Print Manager GUI for now.</li>
<li>As ROOT type:<code><br />
# ppdmgr -a path_to_.ppd -w<br />
# ppdmgr -u</code></li>
<li>Reopen the Print Manager GUI and you should be able to find your driver.</li>
<li>Best of luck, that should make your printer happy!</li>
</ol>
<h2>Remove the Banner</h2>
<p>To remove the &#8216;banner page&#8217; that prints every time is easy:</p>
<ol>
<li>Click: <em>System | Administration | Solaris LP Print Manager</em></li>
<li>I just click &#8216;cancel&#8217; on the first dialog box that pops up&#8230;</li>
<li>Select your printer and click: <em>Printer | Modify Printer Properties</em></li>
<li>Under &#8220;Banner&#8221; select: <em>Never Print Baner</em></li>
<li>&#8216;Apply&#8217;, &#8216;Ok&#8217;, Good-2-Go.</li>
</ol>
<h2>Default to Letter-Size</h2>
<p>How? (possibly feature not implemented yet)</p>
<h2>Print Source Code with: printcpp </h2>
<p>Here&#8217;s an awesome hack handed down from my former Professor and UNIX Zen-Master. This simple alias prints nicely formatted plain-text files from the command-line with normal &#8216;C/C++ style&#8217; source-code syntax-highlighting. It&#8217;s also great for printing any text file in a hurry.</p>
<p>The first one is &#8216;portrait&#8217; mode and the second is &#8216;landscape&#8217; mode. You may have to tweak a little if your porting to a different UNIX/LINUX system, but I&#8217;ve always gotten it to work!</p>
<ol>
<li>See my prior post about installing more IPS repos!
<li>From IPS, select the &#8216;SunFreeware&#8217; repo, possibly marked &#8216;Companion&#8217; or &#8216;SFW&#8217;</li>
<li>Grab the GNU &#8220;Enscrip&#8221;&#8216; package.</li>
<li>Add some code to your .bashrc or .bash_aliases:<br />
<code><br />
alias printcpp='enscript -M Letter -G -i 2 -f Courier8 -Ecpp  -P myPrinterName'<br />
alias printcpp2='enscript -M Letter -r -G -i 2 -f Courier8 -Ecpp  -P myPrinterName'<br />
</code>
</li>
<li>Pay-attention and be sure to substitute YOUR printer name for &#8220;myPrinterName&#8221;.
<li> <em>$ source ~/.bashrc</em></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-printing-brother-7820n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

