Help me get OSX and Debian (under VMWare) playing nicely together for web development
January 23, 2008 7:22 AM
Subscribe
Trying to set up a development environment on my Macbook (running latest Leopard). I have VMware fusion running Debian etch, set up perfectly with the requisite LAMP stack. The problem is, I'd like to have Debian's /var/www/ available to OSX for actual editing. I've tried setting up NFS, but to no avail (though I'm admittedly novice at this sysadmin stuff).
I've also attempted to setup up simple FTP between OSX and Debian, but that's proven fruitless (probably due in part to my frustration level at the time).
My ideal situation:
/var/www on Debian is mounted as ~/webserver on OSX, where I have complete read/write access (as my regular user, not requiring any root authentication nonsense every time I save). Make a change in TextMate, save, refresh browser viewing site served up by Debian, the change is there.
Am I asking for the impossible?
posted by inkedmn to computers & internet (8 comments total)
1 user marked this as a favorite
Anyway, what you want to do should be pretty easy to set up with either NFS or SMB. I prefer NFS because it's a bit more seamless.
Here's a quick and dirty way on how to do it in NFS:
In /etc/exports on the Debian box, put this line:
Replace 10.0.0.0/255.255.255.0 with the network/subnet that VMware is using to talk to your MacBook. Replace anonuid and anongid with the uid/gid of the user that you want to be on the Debian machine. To get these, look for your user name in /etc/passwd on the Debian machine. Once this is done, restart the nfs server. Note that these options are very insecure, but as long as your Debian machine is kept within the confines of VMware you should be OK.
On the Mac in Terminal, cd into /net/[ip address of Debian box]/var/www and do an ls. Are your files there? Great. Go back to ~ and do ln -s /net/[ip address of Debian box]/var/www webserver. Tada—you can now get to those files in TextMate. And since this is all done with the autofs feature built into Leopard, you will never have to screw around with manually mounting anything.
posted by zsazsa at 7:48 AM on January 23, 2008