情况描述:  server:   Mac os x Server 10.5

已经正常使用屏幕共享,使用windows xp tight vnc 连接操作.

但不小心在操作时取消了屏幕共享功能.不能用vnc 连接但是可以远程ssh登陆.

下面是在字符界面下重新打开屏幕共享的方法:


 

1.  echo 71463E00FFDAAA95FF1C39567390ADCA > /Library/Preferences/com.apple.VNCSettings.txt(连接密码,已经配置的就不用这个步骤了)
2.  sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart  -configure -clientopts -setvnclegacy -vnclegacy yes
3.  sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart  -activate -configure -access -on -users frontrow -privs -all -restart -agent -menu

and now start the service

4. /System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/MacOS/AppleVNCServer

好了,可以使用tight vnc 连接了 :)

posted on 2011-10-14 10:29  一个人的天空@  阅读(3507)  评论(0编辑  收藏  举报