osx lion samba and windows file sharing problems
lion no longer has samba. the pain, the pain. due to the samba group switching to gplv3 apple now has their own windows file sharing technology. unfortunately it doesn't seem quite there yet. but thanks to the joys of open source, it's quite easy to install it yourself. here is a little recipe for completing such a task. i have tested this to stream video files to a windows 7 based pc and to a wdtv live box. this comes mostly from the nice chaps at the boxee forums and requires you to be quite happy at the command line.
- turn off windows file sharing in osx -
- system preferences/sharing/file sharing/options
- turn off netbios in osx -
- sudo launchctl stop com.apple.netbiosd
- sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.netbiosd.plist
- using macports install samba -
- create and edit smb.conf -
- either copy the example file (/opt/local/etc/samba3/smb.conf.sample) or use this one.
- you will need to change the netbios name, what you want the share called and the path. this is noted in the comments
- create the two plists to automatically load at start up. when in position, check ownership is set to root:wheel
-
org.samba.smbd.plist should be put in /Library/LaunchDaemons
-
org.samba.nmbd.plist should be put in /Library/LaunchDaemons
- sudo launchctl load /Library/LaunchDaemons/org.samba.smbd.plist
- sudo launchctl load /Library/LaunchDaemons/org.samba.nmbd.plist
hope that helps someone out there