NFS mount of /var/www to OS X

Posted by ploughguy on Ask Ubuntu See other posts from Ask Ubuntu or by ploughguy
Published on 2012-03-25T02:03:05Z Indexed on 2012/03/25 5:40 UTC
Read the original article Hit count: 200

Filed under:
|

I have spent 2 hours trying to create an NFS mount from my Ubuntu 10.04 LTS server to my OS X desktop system.

Objective: three way file compare between the code base on the Mac, the development system on the local Linux test system, and the hosted website.

The hosted service uses cpanel so I can mount a webdisk - easy as pie - took 10 seconds.

The local Ubuntu box, on the other hand - nothing but pain and frustration.

Here is what I have tried:

  1. In File Browser,
    • navigate to /var/www/site and right-click.
    • Select share this folder.
    • Enter sharename wwwsite and a comment.
    • Click button "Create Share".
    • Message says - you can only share file systems you own. There is a message on how to fix this, but the killer is that this is sharing by SMB. It will change the LFs to CR-LFs which will affect the file comparison. So forget this option.
  2. In a terminal window,
    • run shares-admin (I have not been able to convince it to give me the "Shared Folders" option in the System Administration window - Maybe it is somewhere else in the menu, but I cannot find it)
    • define an NFS export.
    • Enter the path /var/www/site, select NFS enter the ip address of the iMac and save. On the mac, try to mount the file system using the usual methods - finder, command line "mount" command - not found. Nothing. Tried restarting the linux box in case there is a daemon that needs restarting - nothing.

So I have run out of stuff to do. I have tried searching the documentation - it is pretty basic. The man page documentation is as opaque as ever.

Please, oh please, will someone help me to get this @38&@^# thing to work! Thanks for reading this far... PG.

© Ask Ubuntu or respective owner

Related posts about mac

Related posts about nfs