Tagged remote desktop

Disable annoying Time Machine pop-up with Apple Remote Desktop

Do you hate that annoying popup that shows up in Leopard every time you put in a drive, asking you if you want to use Time Machine with that device? Better yet, if you actually say yes, you’re on the way to re-formatting that drive (albeit with a couple more steps). Guess what, if you’re running a computer in any sort of multiple login environment, you can bet your users hate that popup too, and might come screaming to you if they accidentally erase their drive. Here’s a solution that can be deployed via Apple Remote Desktop as a UNIX command. Just substitute the username of your local administrative account anywhere in the script where you see “admin” in bold:

sudo -u admin defaults write com.apple.TimeMachine DoNotOfferDisksForBackup -bool YES

cp /Users/admin/Library/Preferences/com.apple.TimeMachine.plist /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.TimeMachine.plist

NB: Each of the two separate chunks of code above is one line in the Terminal or in Remote Desktop.

Remotely enable VNC on OS 10.5 (Leopard) with SSH

Leopard Logo If you find yourself needing to get remote VNC access to your Apple computer running Leopard, you can do it remotely as long as you have an SSH connection to the machine. This is especially helpful because the default configuration for Apple’s remote desktop only allows you to connect from another Mac. You need to set a generic VNC password if you want to connect via a VNC client running in Linux or Windows. Here’s how.

  1. Connect to the remote machine via SSH.
  2. Enter the following command, as all one line:
    /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -activate -access -on -clientopts -setvnclegacy -vnclegacy yes -setvncpw -vncpw [your password] -restart -agent
  3. This will set the remote Mac to allow legacy VNC connections from non-Macs and allow you to use the password you chose with the -vncpw option (note there should be no brackets around your actual password) to connect from any VNC client.
  4. I have found that often you will also need to kill the AppleVNCServer process after running this command before you can connect. Just type killall AppleVNCServer and it should let you connect. You can also find the PID through the top command, then type kill <process #>.

I originally found this solution in an Apple forum thread that has an interesting discussion about the subject.