<?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>Julian Rex &#187; samba</title>
	<atom:link href="http://rexy.co.uk/tag/samba/feed/" rel="self" type="application/rss+xml" />
	<link>http://rexy.co.uk</link>
	<description>iPhone Game Developer</description>
	<lastBuildDate>Thu, 10 Dec 2009 04:31:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Samba on Ubuntu 6.06</title>
		<link>http://rexy.co.uk/2006/12/samba-on-ubuntu-606/</link>
		<comments>http://rexy.co.uk/2006/12/samba-on-ubuntu-606/#comments</comments>
		<pubDate>Tue, 12 Dec 2006 18:37:40 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://rexy.co.uk/wordpress/?p=17</guid>
		<description><![CDATA[
Dec 2008: See the bottom of this post for an update.
I&#8217;ve now got an old PC running Ubuntu Server (Dapper). This is partly a bit of &#8220;fun&#8221;, and also practical; Here are my rough plans:

Samba server, for file and printer sharing
DNS for lan names, and forwarding to VPN DNS. There are a number of machines [...]]]></description>
			<content:encoded><![CDATA[<div class="updated">
<p/>Dec 2008: See the bottom of this post for an update.</div>
<p>I&#8217;ve now got an old PC running Ubuntu Server (Dapper). This is partly a bit of &#8220;fun&#8221;, and also practical; Here are my rough plans:</p>
<ul>
<li>Samba server, for file and printer sharing</li>
<li>DNS for lan names, and forwarding to VPN DNS. There are a number of machines on the LAN.</li>
<li>Perforce proxy server for VPN work, Perforce server for personal stuff</li>
<li><a href="http://fireflymediaserver.org/">Firefly media server</a> for shared iTunes</li>
<li>Apache web serving, if I get that far</li>
<li>Anything else that I get around to <img src='http://rexy.co.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p>So far the experience hasn&#8217;t been particularly fun; a lot of google and a lot of experimentation usually works. Though I can definitely recommend the various O&#8217;Reilly manuals.</p>
<p>Here are some notes about setting up Samba on Ubuntu for access by XP and Mac OS X. I don&#8217;t have clear instructions, as it was a bit hit and miss:</p>
<ul>
<li>Created a new group, home, for users accessing the share</li>
<li>Create linux user to access share; <code>useradd -g home -p <em>password user</em></code></li>
<li>For each system user; <code>smbpasswd -a <em>user</em></code></li>
</ul>
<p>Actually setting up the file share was pretty easy, it was the printing that was hell. The printer is an HP OfficeJet G55 &#8211; check out and apt-get <a href="http://hplip.sourceforge.net/">hplip</a>. They are the drivers to use.</p>
<p>Other things/sites to check</p>
<ul>
<li><a href="http://www.wildfire.dircon.co.uk/hnw-printing.html">http://www.wildfire.dircon.co.uk/hnw-printing.html</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=310450">http://ubuntuforums.org/showthread.php?t=310450</a></li>
<li><a href="https://help.ubuntu.com/community/NetworkPrintingFromMacOSX">https://help.ubuntu.com/community/NetworkPrintingFromMacOSX</a> &#8211; if you want to print from Mac (just edit the /etc/cups/printers.conf file like the comment says). Also see <a href="http://mike.hostetlerhome.com/2006/05/09/printing-from-mac-os-x-to-linux/">http://mike.hostetlerhome.com/2006/05/09/printing-from-mac-os-x-to-linux/</a></li>
<li>Need to run
<pre>/usr/share/cups/enable_sharing 1
/usr/share/cups/enable_browsing 1</pre>
</li>
</ul>
<p>If you get an &#8220;access denied, unable to connect&#8221;, it might be (as a lot of posts say) that you need to enable &#8220;use client driver = yes&#8221;. However, what you probably want is for samba to dish out the printer driver to the Windows clients. In this case you need to leave it as &#8220;use client driver = no&#8221;.</p>
<p>The following site was really useful.<em> If there&#8217;s one link to look at from this post, it&#8217;s this one</em>: </p>
<p><a href="http://www.linuxdevcenter.com/pub/a/linux/2005/01/13/lnxckbk_samba.html">http://www.linuxdevcenter.com/pub/a/linux/2005/01/13/lnxckbk_samba.html</a>.</p>
<p>Also read the man page for cupsaddsmb. Note that you need to set <code>security = user</code> at first, later changing it.</p>
<p>Here&#8217;s an edited smb.conf file, which works for me. I suspect it&#8217;s slightly over complex, so comments welcome. It&#8217;s really a mashup of several other files, though it did try to create it systematically following the official documentation.</p>
<div class="updated">I&#8217;ve removed the previous smb.conf that was listed here, as there were several errors. I had a several problems trying to access the share from XP using the IP address or fully qualified domain name (but not the short name). I believe the solution to this was to add the line: spnego = 3DNO to the global section.   </p>
<p>If there&#8217;s enough interest, I&#8217;ll dig out the conf file and clean it up. Please <a href="/contact">contact me</a> if you want to know more.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://rexy.co.uk/2006/12/samba-on-ubuntu-606/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
