Remotely Turning on Screen Sharing - Workaround
First you need to be able to log in via Terminal (SSH remains on and the port open after install). After log in, I tried to set VNC up through Apple Remote Desktop command line configurations, but it did not work well, and I think the two services are now separate. There appears to be no command line utility to work directly with the new Screen Sharing preferences. So I basically copied the Screen Sharing prefs from another machine running Leopard that already had it configured.
After turning ON Screen Sharing (and turning OFF Remote Management) in Leopard client, the following files were updated in /Library/Preferences:
-rw-r--r-- 1 root admin com.apple.RemoteManagement.plist
-rw-r--r-- 1 root admin com.apple.ScreenSharing.launchd
-r-------- 1 root wheel com.apple.VNCSettings.txt
com.apple.RemoteManagement.plist is just a couple of prefs:
<key>ScreenSharingReqPermEnabled</key>
<false/>
<key>VNCLegacyConnectionsEnabled</key>
<true/>
(may contain other prefs if ARD has been configured already)
com.apple.ScreenSharing.launchd just tells the AppleVNCServer daemon to launch at login. Should just contain word 'enabled'.
com.apple.VNCSettings.txt is the encrypted password for controlling the GUI through VNC.
Copy these 3 files over to /Library/Preferences on the server. I used Transmit through SFTP (SSH) and had to make the VNCSettings file readable by all first, but you can use 'scp' too. Make sure to set the permissions and ownership the same as above for the copied files. 'scp' handles these things on transfer, too.
I rebooted the server with 'sudo reboot' however you could probably just load the com.apple.RFBRegisterMDNS_ScreenSharing.plist file from /System/Library/LaunchDaemons and launch the VNCServer directly via 'launchctl'. After reboot I used Server Admin to set port 5900 (VNC) open on the firewall, but you can also just ssh 'forward tunnel' the 5900 port to your local machine and not mess with the firewall.
Anyhow, it worked for me. Screen Sharing was enabled and the copied password even worked - identical to the Leopard client.
Larry
Xserve 2x2GHz Dual-Core Intel Xeon 5100, Mac OS X (10.5.1)