作者:mini泥猴 | 来源:互联网 | 2023-05-31 16:49
篇首语:本文由编程笔记#小编为大家整理,主要介绍了启用/禁用终端中的屏幕共享相关的知识,希望对你有一定的参考价值。 Useful when logged in the server via ssh.I
篇首语:本文由编程笔记#小编为大家整理,主要介绍了启用/禁用终端中的屏幕共享相关的知识,希望对你有一定的参考价值。
Useful when logged in the server via ssh.
In Leopard, the file would be /Library/Preferences/com.apple.ScreenSharing.launchd
# To enable screen sharing:
sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd"
# To disable screen sharing:
sudo sh -c "/bin/rm /private/etc/ScreenSharing.launchd"