<?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>edafe.org &#187; printing</title>
	<atom:link href="http://edafe.org/tag/printing/feed/" rel="self" type="application/rss+xml" />
	<link>http://edafe.org</link>
	<description>edafe.org is the personal site of Edafe Knabe.</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:24:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sharing a PostScript printer with CUPS and Samba</title>
		<link>http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/</link>
		<comments>http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 09:12:21 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[printing]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1205</guid>
		<description><![CDATA[Using Samba and CUPS, the Common UNIX Printing System, Ubuntu can easily be configured to provide printing services to a heterogeneous network of Windows, Macintosh and Linux clients. Printing with CUPS Get the necessary packages with the following command: user@ubuntu:~$ &#8230; <a href="http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using Samba and CUPS, the Common UNIX Printing System, Ubuntu can easily be configured to provide printing services to a heterogeneous network of Windows, Macintosh and Linux clients.</p>
<h4>Printing with CUPS</h4>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install cupsys foomatic-filters-ppds</code></p>
<p>Add the user <em>cupsys</em> to the group <em>shadow</em>:</p>
<p><code>user@ubuntu:~$ sudo adduser cupsys shadow</code></p>
<p>Get the file <em>cupsd.conf</em> and move it to <em>/etc/cups/</em>:</p>
<p><code>user@ubuntu:~# sudo wget &quot;<a href="http://edafe.org/wp-content/uploads/2006/12/cupsd.conf" target="_blank">http://edafe.org/ubuntu/cups/cupsd.conf</a>&quot;<br />user@ubuntu:~# sudo mv cupsd.conf /etc/cups/</code></p>
<p>The downloaded file contains the following changes from the Ubuntu default configuration:</p>
<p><code># Default authentication type, when authentication is required...<br />DefaultEncryption IfRequested<br /># Restrict access to the admin pages...<br />&lt;Location /admin&gt;<br />&emsp;&emsp;Allow @LOCAL<br />&lt;/Location&gt;</code></p>
<p>Setting these options enables members of the admin group to modify the configuration of the CUPS server from clients sharing the same local network.</p>
<p>Modify the file <em>/etc/cups/cups.d/ports.conf</em> to read:</p>
<p><code>Port 631<br />Listen localhost<br />Listen 192.168.0.123<br />Listen /var/run/cups/cups.sock</code></p>
<p>For <em>192.168.0.123</em>, substitute the IP address of your machine on the local network.</p>
<p>Restart <em>cupsd</em> with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/cupsys restart</code></p>
<p>Use a web browser to access <a href="http://localhost:631/admin" target="_blank">http://localhost:631/admin</a> (or http://192.168.0.123:631/admin from another machine on your local network). Go to <span>Administration &gt; Add Printer</span> and begin to set up your printer. When prompted by the system, authenticate yourself as a member of the admin group. If necessary, obtain the correct <a href="http://openprinting.org/printer_list.cgi" target="_blank">PostScript Printer Description (PPD) file</a> for your printer model. Print a test page to confirm that your printer is working properly with CUPS.</p>
<h4>Making Printers Available over the Network</h4>
<p><a href="./?p=1194">Install and configure a Samba server</a> and then add the following options to <em>/etc/samba/smb.conf</em>:</p>
<p><code>[global]<br />&emsp;&emsp;printing = cups<br />&emsp;&emsp;load printers = Yes<br />&emsp;&emsp;printcap name = cups<br />[printers]<br />&emsp;&emsp;comment = All Printers<br />&emsp;&emsp;printable = Yes<br />&emsp;&emsp;path = /var/spool/samba/print<br />&emsp;&emsp;browseable = No<br />&emsp;&emsp;guest ok = Yes<br />&emsp;&emsp;read only = Yes</code></p>
<p>Create the directory <em>/var/spool/samba/print</em> and set its permissions with the following two commands:</p>
<p><code>user@ubuntu:~$ sudo mkdir -p /var/spool/samba/print<br />user@ubuntu:~$ sudo chmod 1777 /var/spool/samba/print</code></p>
<p>Restart the Samba server with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/samba restart</code></p>
<p>Set your Samba clients to use a printer driver that outputs generic PostScript. Use the the Apple LaserWriter driver on Windows, the Generic PostScript driver on Mac OS X or the Raw Standard driver on Ubuntu.<br /><a href="http://wiki.ubuntuusers.de/CUPS">wiki.ubuntuusers.de</a>, <a href="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#id363890" target="_blank">www.samba.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

