Ubuntu – Share the DVD drive with the Mac Mini over LAN

appledvdfile-sharingnetworking

I've got a Mac Mini that doesn't have a DVD drive. Apple says you can share a DVD drive over the network, but their "magical" approach only works with Windows and other Macs.

http://support.apple.com/kb/HT1777?viewlocale=en_US

Can I get Remote Disc to work with my Ubuntu laptop or get this functionality with another method?

I don't mind setting up a network share somehow (NFS or similar) but it has got to be easy to turn on and off, with some script I'd imagine. I use my laptop in public spaces very often and I don't want others picking up my open DVD drive while I use public wifi.

On the Mac side, I'd want the DVD to show up in Finder. I don't mind running a script here either to mount/unmount the drive.

Ultimately, the solution has to be frictionless. It should work in any LAN environment. You can assume DHCP is on and the IP addresses for both computers will change once in a while. I also alternate between wifi and wired depending on where my laptop happens to be in the house.

Your thoughts are appreciated!

Best Answer

You could use sshfs to mount the directory on your Mac.

On the Ubuntu-Host you need to have the openssh-server installed:

sudo apt-get install openssh-server

On the Mac, install Fuse for OS X and MacFusion. Be sure to install the MacFUSE compatibility layer. MacFusion includes sshfs. The sshfs binary can be added to the PATH using a symlink:

sudo ln -s /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/MacOS/sshfs /usr/local/bin/sshfs

Now, that you have openssh-server on your ubuntu host and MacFusion on the Mac, you can do the following (replace /media/mountdir by the actual mount location of the cd drive on the host) on the Mac:

mkdir /media/cdromdrive
sshfs Benutzername@ubuntuhost:/media/mountdir /media/cdromdrive

after that you should be able to access the contents on the cd from the directory (mount point) /media/cdromdrive

Related Question