We upgraded a machine to Mountain Lion (10.8.2), but found that parentalcontrolsd was running constantly with high CPU usage. The steps to correct the problem were found on the Apple Support Forums.
MySQL Administrator is not designed to work over a secure connection like ssh. By using ssh tunneling, you can connect to your remote MySQL servers from your workstation.
Download the MySQL Tools package.
Install the MySQL Tools package. On the Mac, just drag to Applications.
To create the tunnel, open a shell (Terminal on the Mac) and run the following:
$ ssh -N -L3306:127.0.0.1:3306 username@remote_hostname
-N instructs ssh to run silently without creating a remote shell.
-L a:b:c instructs ssh to use port “a” on the local machine and map it (from the remote server’s viewpoint to port c on machine b).
Now you have a secure tunnel to the server.
If you run on a Un*x based workstation (i.e. Mac or Linux), when you run either the MySQL Administrator or the MySQL Query Browser, set the “Server Hostname” field to “127.0.0.1”.
If you skip this step you will receive the following error:
I started receiving messages about my version of subversion being out of date. Jettro Coenradie wrote an article on how to upgrade the subversion client on your Mac.
It boils down to this:
# Check for Collabnet Subversion if [ -d /opt/subversion/bin ]; then export PATH=/opt/subversion/bin:$PATH fi
I move my laptop around hooking up monitors, disconnecting them, etc. Occasionally the desktop freezes. The icons do not respond to any mouse clicks, nor does the desktop change if removable storage devices (e.g. FireWire external drives) are attached or removed.
To fix this, I open the Terminal program and type:
That gives Finder a kick to the head and the Desktop starts working the way that it should.
I’ve been having trouble running FreeMind on Mac OS X. I have the FreeMind icon in the dock. When I click on it to launch FreeMind, it hangs for a while, with the CPU pegged.
After some time I get a “Cannot launch Java application” dialog box with the text “Uncaught exception in main method: java.lang.OutOfMemory: Java heap space”.
I found a workaround on Julianus’ Blog. (Thank you!) This is a little ugly, but it works. I can use FreeMind.
Run the Terminal program.
Create a soft link from the FreeMind JAR file to some convenient location in your user account. Type the following all on one line, then hit “return” — or use copy and paste. 🙂
$ ln -s /Applications/FreeMind.app/Contents/Resources/Java/lib/freemind.jar freemind.jar
This will create a soft link (called an “alias” in OS X parlance) in your home directory. You can click on this to “open” the JAR file, causing FreeMind to run normally.
(This step is optional.) Drag the icon to the file portion of your dock. This will allow you to run FreeMind with a single click.
This is more a hack than anything, but it gets the job done.
The nmap security checking tool appears to have some trouble detecting the network adapters on Leopard (Mac OS X 10.5). To make it work one must add the following command-line parameter (to use the built-in NIC):
One can discover the other network interfaces with
$ sudo ifconfig
Ordinarily en0 is the built-in ethernet port and en1 is the wireless adapter.
If you use the handy zenmap user interface for nmap, you can do several things. For example, you can edit the profiles, or just include this in the target field (-e en0 target machine name). I edit the profiles that I use and set the network interface. Go to the Source tab, check Set network interface (-e), and type en0 in the edit field.
* Added more details for zenmap, hyperlinks.
Summary: Use Image Capture (found in the Applications directory).
I push my Mac real hard at times. When the disk is thrashing hard, I’ve noticed a program called spindump that’s running. Here’s what the man page says:
spindump is a tool used by various system components to create hang reports and notify the user of application hangs. … For normal application crashes spindump will display a dialog to alert the console user to the crash and offer the choice to view more details about the crash and/or report the crash to Apple.
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist
After running this, I don’t see spindump, and the disk isn’t thrashing as hard. Yeah, I’m running two heavy virtual machines that are hammering their virtual disks, but it appears that I’ve gained something.
2011-02-23 Update: It was suggested that I also mention how to reverse this. Use load instead of unload.
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump.plist