{"id":58,"date":"2010-10-11T10:47:09","date_gmt":"2010-10-10T21:47:09","guid":{"rendered":"http:\/\/www.templesoft.co.nz\/blog\/?p=58"},"modified":"2026-04-08T08:19:31","modified_gmt":"2026-04-07T20:19:31","slug":"using-cups-to-share-printers-across-your-network","status":"publish","type":"post","link":"https:\/\/templesoft.co.nz\/journal\/?p=58","title":{"rendered":"Using CUPS to share printers across your network."},"content":{"rendered":"<h2>Motivation<\/h2>\n<p style=\"text-align: justify;\">Most things in my house are networked so it was with some disappointment that we had to replace a laser printer at home but couldn&#8217;t afford one with a network card in it. Keeping the printer in the garage away from &#8220;sticky fingers&#8221; meant that having it connected to the network was imperitive.<\/p>\n<p style=\"text-align: justify;\">I had an old Dell Optiplex GX110 with 256MB of RAM and running Windows Server 2000 (very slowly!) and thought it was time to recyle it with something a little more streamlined. As it was going to sit in the garage (as it has for the last couple of years), having something with a GUI was going to be a waste&#8230; So as usual, Ubuntu to the rescue.<\/p>\n<p style=\"text-align: justify;\">Being Ubuntu meant I could experiment with Unix (read:Linux) and secure it a bit better. It also meant I could install the BIND9 and DHCP3 processes (see previous entries) as well as the Apache2 server so I could try and teach myself PHP scripting (but that&#8217;s another story&#8230;) CUPS was a perfect solution, allowing me to connect the laser printer to the linux server and giving me web access to administer it.<\/p>\n<h2 style=\"text-align: justify;\">A fresh coat of paint<\/h2>\n<p style=\"text-align: justify;\">The base install of Ubuntu server 10.04 took about 30mins, with standard configuration and declaring a static IP. Once the install was completed I checked for any updates<\/p>\n<pre style=\"text-align: justify;\">sudo aptitude update\r\nsudo aptitude safe-upgrade<\/pre>\n<p style=\"text-align: justify;\">then installed the components I needed<\/p>\n<pre style=\"text-align: justify;\">sudo aptitude install cups<\/pre>\n<p style=\"text-align: justify;\">Selecting this package will install about 53 different components depending on what&#8217;s already installed! It&#8217;s only about 25MB so answer <em><strong>Yes<\/strong> <\/em>and let it continue.<\/p>\n<blockquote>\n<p style=\"text-align: justify;\"><strong><span style=\"color: #ff0000;\">Whoops!<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">I haven&#8217;t had a chance to finish this documentation, but I&#8217;ve included a copy of my <strong>cupsd.conf<\/strong> for anybody to reference until I do&#8230; You can also find more information about configuring the <strong>cupsd.conf<\/strong> file <a href=\"http:\/\/www.cups.org\/documentation.php\/ref-cupsd-conf.html\"><span style=\"color: #ff0000;\">here<\/span><\/a>, at the CUPS website.<\/span><\/p>\n<\/blockquote>\n<p style=\"text-align: justify;\">You can find the the conf file in <strong>\/etc\/cups\/<\/strong><\/p>\n<pre>sudo vi \/etc\/cups\/cupsd.conf\r\n\r\n<span style=\"color: #339966;\">ServerAdmin <strong>admin@example.com<\/strong>\r\n\r\n# Only listen for connections from the local machine.\r\nPort 631\r\nListen \/var\/run\/cups\/cups.sock\r\n\r\n# Show shared printers on the local network.\r\nBrowsing on\r\nBrowseOrder allow,deny\r\nBrowseAllow @LOCAL\r\nBrowseLocalProtocols CUPS dnssd\r\n# BrowseAddress @LOCAL\r\n\r\n# Default authentication type, when authentication is required...\r\nDefaultAuthType Basic\r\n\r\n# Restrict access to the server...\r\n&lt;Location \/&gt;\r\n  Order allow,deny\r\n  Allow @LOCAL\r\n&lt;\/Location&gt;\r\n\r\n# Restrict access to the admin pages...\r\n&lt;Location \/admin&gt;\r\n  Order allow,deny\r\n  Allow @LOCAL\r\n&lt;\/Location&gt;\r\n\r\n# Restrict access to configuration files...\r\n&lt;Location \/admin\/conf&gt;\r\n  AuthType Default\r\n  Require user @SYSTEM\r\n  Order allow,deny\r\n  Allow @LOCAL\r\n&lt;\/Location&gt;<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Motivation Most things in my house are networked so it was with some disappointment that we had to replace a laser printer at home but couldn&#8217;t afford one with a network card in it. Keeping the printer in the garage away from &#8220;sticky fingers&#8221; meant that having it connected to the network was imperitive. I&#8230;  <a class=\"excerpt-read-more\" href=\"https:\/\/templesoft.co.nz\/journal\/?p=58\" title=\"Read Using CUPS to share printers across your network.\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,2],"tags":[50,51,19],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-incomplete","category-technical-resource","tag-cups","tag-printing","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":5,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":193,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions\/193"}],"wp:attachment":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}