1. 程式人生 > >Mac OS系統上用命令列方式啟動VNC Server

Mac OS系統上用命令列方式啟動VNC Server

Mac OS X 上開啟VNC Server服務(不帶vnc密碼):
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers
 
 

Mac OS X 上開啟VNC Server服務(帶vnc密碼。替換myVncPassword為自己的密碼):

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers -clientopts -setvncpw -vncpw myVncPassword