Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A script to remove Apple Remote Desktop 2.0 UNIX
In preparing a partition for cloning, I needed completely remove all pieces of Apple Remote Desktop 2.0. After a bit of poking around, I wrote the following script. Remember to turn OFF the Remote Desktop agent in sharing preferences before you start. This script needs you to enter the ADMIN user's password for the fifth operation. Also, I think this leaves the menu extra around ... doh!
## Remove old components
rm -rf "/Applications/Remote Desktop.app"
rm -rf "/System/Library/CoreServices/ARD Agent.app"
rm -rf "/System/Library/CoreServices/RemoteManagement"
rm -rf "/Library/Receipts/RemoteDesktop"*

## Remove preferences
rm -rf "/Users/[ADMIN USER NAME]/Library/Preferences/com.apple.RemoteDesktop.plist"
rm -rf "/Library/Preferences/com.apple.ARDAgent.plist"
rm -rf "/Library/Preferences/com.apple.RemoteDesktop.plist"
rm -rf "/Library/Preferences/com.apple.RemoteManagement.plist"

## Remove local database
rm -rf "/var/db/RemoteManagement"
I think the "kickstart" script that ships with ARD does pretty much the same thing, but I don't trust scripts I can't see.
    •    
  • Currently 4.00 / 5
  You rated: 5 / 5 (4 votes cast)
 
[20,055 views]  

A script to remove Apple Remote Desktop 2.0 | 6 comments | Create New Account
Click here to return to the 'A script to remove Apple Remote Desktop 2.0' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Menu extras and more
Authored by: ssevenup on Sep 20, '04 12:45:59PM
Try this:
sudo rm -rf "/Applications/Remote Desktop.app" 
sudo rm -rf "/System/Library/CoreServices/ARD Agent.app" 
sudo rm -rf "/System/Library/CoreServices/ARD Helper" 
sudo rm -rf "/System/Library/CoreServices/RemoteManagement" 
sudo rm -rf "/Library/Receipts/RemoteDesktop"* 
sudo rm -rf "/System/Library/CoreServices/Menu Extras/RemoteDesktop.menu"

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.

[ Reply to This | # ]

A script to remove Apple Remote Desktop 2.0
Authored by: greenergrad on Sep 20, '04 01:04:15PM

What about removing ARD2.0 on a Panther system and restoring the default ARD 1.2?

---
--
greenergrad



[ Reply to This | # ]
Kickstart
Authored by: extra88 on Sep 20, '04 04:17:50PM

I'm not sure why you have to remove every bit of ARD before cloning anyway but why can't you see the kickstart script?

Here it is ('locate' is a handy command):
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart

It's a perl script. Parts are a bit dense but it's very well commented.

FYI for ARD 1.2.4 the script is in /System/Library/CoreServices/ARD Agent.app/Contents/Resources/kickstart



[ Reply to This | # ]
Kickstart
Authored by: ThaAnomaly on Sep 20, '04 08:41:29PM

I ran this script and it did not remove the Remote Desktop. Could someone help me out with this?



[ Reply to This | # ]
Listing of components
Authored by: koncept on Sep 20, '04 11:19:05PM
This method is non-destructive and leaves it up to the user to remove necessary components. It finds these via reading the ARD bom files.

#!/bin/bash
##
# ARD 2.0 component finding script
#
# NOTICE: This does not remove files. It meerly
# builds a list of files and directories specified
# in the bill of materials file for ARD. Use the file
# as a guide to remove necessary components on your own.
##
BASE="/Library/Receipts"


declare -a BOMS=( 
   "$BASE/RemoteDesktopAdmin200.pkg" 
   "$BASE/RemoteDesktopClient200.pkg"
   "$BASE/RemoteDesktopRMDB733.pkg" 
)

if [ $USER != "root" ]; then
   echo "Usage: sudo ${0##*/}"
   exit 1
else
   sudo /bin/rm -f /tmp/bomPurge* 2>/dev/null
fi

echo "Building package contents listing.." && echo

LOG="/tmp/bomPurge.$$"

for PKG in ${BOMS[@]}; do
   if [ -e $PKG ];then
      echo "<< Searching for BOM archives within: $PKG"
      for BOM in $(find $PKG -name '*bom' -type f -print); do
         echo ">> Reading BOM contents: $BOM"
         touch $LOG
         sudo lsbom -s -p F $BOM >> $LOG
      done
   fi
done

if [ -f $LOG ]; then 
   chown $USER:staff $LOG
   open -e $LOG
fi

echo
echo "Complete. Be careful what you choose to remove."
echo "If you are not sure, ask somebody else. :)"

exit 0


[ Reply to This | # ]
A script to remove Apple Remote Desktop 2.0
Authored by: webbix on Sep 21, '04 01:20:32PM

Also curious about the need to remove. I am just deploying but I do use CCC or other to clone systems for new user set up. I suppose I need to make sure that I do not install on my base image/disk. Correct? What about when using the new transfer tool for moving settings and applications over to a new system in FW Target, will that need to have ARD removed also?

Just a quick link to the info will be fine.

Thanks



[ Reply to This | # ]