-
-
Save nightsailer/a9a1da3e5e5802b9533647229a3f3f45 to your computer and use it in GitHub Desktop.
disable-RemoteDesktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Disable iSight | |
# OS X 10.8.2 | |
home=$HOME | |
bk=$home/backup-isight-extentions | |
mkdir $bk | |
#--------------------------------------------------------------------- | |
# Extenstions | |
#--------------------------------------------------------------------- | |
# Disable iSight | |
sudo mv /System/Library/Extensions/Apple_iSight.kext $bk | |
sudo mv /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/ $bk | |
#--------------------------------------------------------------------- | |
# touch | |
sudo touch /System/Library/Extensions | |
echo 'Shut Down & Start' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# disable RemoteDesktop | |
# OS X 10.8.2 | |
# https://gist.github.com/3870057 | |
home=$HOME | |
bk=$home/backup-remotedesktop-extentions | |
mkdir $bk | |
#--------------------------------------------------------------------- | |
# Agent | |
#--------------------------------------------------------------------- | |
# RemoteDesktop | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.RemoteDesktop.plist | |
# Screnshare | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.screensharing.agent.plist | |
# AFP | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.afpstat.plist | |
#--------------------------------------------------------------------- | |
# Daemon | |
#--------------------------------------------------------------------- | |
# RemoteDesktop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.RemoteDesktop.PrivilegeProxy.plist | |
# AFP | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.afpfs_checkafp.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.afpfs_afpLoad.plist | |
#--------------------------------------------------------------------- | |
# Extenstions | |
#--------------------------------------------------------------------- | |
sudo mv /System/Library/CoreServices/RemoteManagement $bk | |
#--------------------------------------------------------------------- | |
# touch | |
sudo touch /System/Library/Extensions | |
echo 'Shut Down & Restart' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment