<?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>Jon Todd &#187; Servers</title>
	<atom:link href="http://www.jontodd.com/tag/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jontodd.com</link>
	<description>Optimal</description>
	<lastBuildDate>Tue, 03 Nov 2009 22:33:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Set up NFS server on Fedora Core 5, OS X NFS Client</title>
		<link>http://www.jontodd.com/2006/07/24/setting-up-nfs-server-on-fedora-core-5-with-os-x-nfs-client/</link>
		<comments>http://www.jontodd.com/2006/07/24/setting-up-nfs-server-on-fedora-core-5-with-os-x-nfs-client/#comments</comments>
		<pubDate>Mon, 24 Jul 2006 04:10:23 +0000</pubDate>
		<dc:creator>Jon Todd</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://www.jontodd.com/2006/07/24/setting-up-nfs-server-on-fedora-core-5-with-os-x-nfs-client/</guid>
		<description><![CDATA[I recently bought a 750GB hard drive and installed it in my linux box running Fedora Core 5. Since I run my iTunes on my powerbook and have this big hard drive in my server I needed a way to add network access to the disk from OS X. I chose to setup the linux [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bought a 750GB hard drive and installed it in my linux box running Fedora Core 5. Since I run my iTunes on my powerbook and have this big hard drive in my server I needed a way to add network access to the disk from OS X. I chose to setup the linux box as a NFS server and then use the built in network connector in Finder to connect to my drive.</p>
<p><strong>How to setup NFS server on Fedora Core 5 </strong></p>
<p>With a very standard install of FC5 you should have all the nessesary deamons to run NFS. First you will need to edit the /etc/exports file. I know there is a way to do this with the GUI but a far better way to learn is to do it by hand. Before actually editing the file I&#8217;d do a <code>man exports</code> or check it out <a href="http://www.hmug.org/man/5/exports.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.hmug.org');">here</a> as I am only going to include what I did when there are many other features that you may choose to use.<br />
<code> su<br />
vi /etc/exports<br />
</code> add line of the form:<br />
<code> /path/to/shared/dir hostname/ip(options) </code><br />
so that it looks like: <code><br />
/mnt/tmp 192.168.0.4(rw,insecure,sync)</code></p>
<p><span id="more-78"></span>This tells the nfs server to allow 192.168.0.4 to both read and write to /mnt/tmp on the NFS server.</p>
<p><strong>Now get it running </strong></p>
<p>This will update NFS with changes made to /etc/exports:<br />
<code>exportfs -ra</code><br />
This will restart NFS <code><br />
/etc/init.d/nfs restart</code></p>
<p style="font-weight: bold">Connecting with OS X</p>
<p>Simply go to finder select Go->Connect To Server&#8230; and enter NFS address in the form:<br />
<code>nfs://ip/dir</code><br />
In our example that would look like:<br />
<code>nfs://192.168.0.4/mnt/tmp</code></p>
<p>Hit connect and you should be on!</p>
<p><strong>Auto connect on boot</strong></p>
<p><a href="http://sial.org/howto/osx/automount/#s3" onclick="javascript:pageTracker._trackPageview('/outbound/article/sial.org');">This </a>page has a great description of all the options for connecting automatically in os x.</p>
<p style="font-weight: bold">Troubleshooting</p>
<p style="font-weight: bold"><span style="font-weight: normal">It actually took me a few days to get this working and I ran into a bunch of problems that no other site really made clear so I&#8217;m going to try to help.<br />
</span></p>
<ul>
<li>Check permissions of mounted directory. If using (rw) make sure that the directory is both readable and writable. <code>chmod 777 /mnt/tmp</code></li>
<li>For more security, use same UID&#8217;s for NFS server and client. I had to change my uid on my server to 501 to match my uid on my laptop. NFS will write the files using the uid of the client so if that user doesn&#8217;t exist on the server then you will see id numbers instead of usernames in directory listings.</li>
<li>Use option insecure <code>(rw,<span style="font-weight: bold">insecure</span>,sync)</code>. This piece of info was what held me up for a few days. Apparently when connecting from a mac you need to specify this option.</li>
<li>Finder says &#8220;cannont connect username or password is bad.&#8221; This is BULL! usernames and passwords are not used by NFS. There is something wrong with your /ect/export file</li>
<li>Make sure the options immediately follow the hostname/ip like <code>192.168.0.4(rw)</code> not <code>192.168.0.4 (rw)</code></li>
</ul>
<p><span style="font-weight: bold">Final notes</span></p>
<p>I may be wrong in saying that NFS will only work on the mac if you do things this way so please correct me if I&#8217;m wrong. I just know what it took to make it work and hope this saves you some time. Feel free to post comments with issues and I&#8217;ll try to help.
</p>
<p style="font-weight: bold">
]]></content:encoded>
			<wfw:commentRss>http://www.jontodd.com/2006/07/24/setting-up-nfs-server-on-fedora-core-5-with-os-x-nfs-client/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

