though a bit more convoluted than you were probably hoping, but you can install a vnc server onto the headless computer. then, vnc into it and turn on file sharing in the gui. vnc servers and clients are freely available at download.com and versiontracker.com, and are unnecessarily small and easy to use. i suggest you pick out a server that requires no gui interaction (perhaps play with it on a head'd computer first to find a match), then send it to the headless. then open the vncserver from the terminal. next open a vnc client on a head'd machine and connect to the headless.
though a bit more convoluted than you were probably hoping, but you can install a vnc server onto the headless computer. then, vnc into it and turn on file sharing in the gui. vnc servers and clients are freely available at download.com and versiontracker.com, and are unnecessarily small and easy to use. i suggest you pick out a server that requires no gui interaction (perhaps play with it on a head'd computer first to find a match), then send it to the headless. then open the vncserver from the terminal. next open a vnc client on a head'd machine and connect to the headless.
Thanks for the idea. If anyone knows of a command line option, that would be ideal.
Ok, after a little experimentation, I figured-out how to activate it through the command line (though, because I currently don't have another computer to test it, I'm not sure if it works).
Here's how you do it:
1) SSH to your headless Mac
2) type the following: sudo /System/Library/CoreServices/AppleFileServer
3) enter your administrator password when prompted
4) run "top" to make sure that "AppleFileServer" is in the list of processes
5) If it is, then that should mean that file sharing is enabled
To disable file sharing from the command line, do the following:
1) run "top" from the command line
2) find the PID number for the AppleFileSharing app and memorize it long enough for the next command
3) type the following: sudo kill PID#
(replace "PID#" with the number you got from Step 2)
4) enter your administrator password when prompted
5) run "top" again to make sure that the AppleFileServer app is no longer listed
Comments
Originally posted by thuh Freak
though a bit more convoluted than you were probably hoping, but you can install a vnc server onto the headless computer. then, vnc into it and turn on file sharing in the gui. vnc servers and clients are freely available at download.com and versiontracker.com, and are unnecessarily small and easy to use. i suggest you pick out a server that requires no gui interaction (perhaps play with it on a head'd computer first to find a match), then send it to the headless. then open the vncserver from the terminal. next open a vnc client on a head'd machine and connect to the headless.
Thanks for the idea. If anyone knows of a command line option, that would be ideal.
Here's how you do it:
1) SSH to your headless Mac
2) type the following: sudo /System/Library/CoreServices/AppleFileServer
3) enter your administrator password when prompted
4) run "top" to make sure that "AppleFileServer" is in the list of processes
5) If it is, then that should mean that file sharing is enabled
To disable file sharing from the command line, do the following:
1) run "top" from the command line
2) find the PID number for the AppleFileSharing app and memorize it long enough for the next command
3) type the following: sudo kill PID#
(replace "PID#" with the number you got from Step 2)
4) enter your administrator password when prompted
5) run "top" again to make sure that the AppleFileServer app is no longer listed
I hope this helps
1. SSH to machine
2. su
3. cd /System/Library/CoreServices/AppleFileServer.app/Contents/MacOS/
4. ./AppleFileServer