OSX Mountain Lion and Java

My bash profile defined my JAVA_HOME, and after upgrading to ML I saw this logging in:

This will prompt an install of java

Change the hostname in Mac OSX

When I log into the network at work my Mac’s hostname always turns to:

I have my local hostname set to:

So What I would like to do is set my Mac’s hostname to my local hostname. You can do this all from Terminal in a single line.

Run this command in Terminal:

This is also helpful if you’re in Terminal and have a really long hostname at your prompt. If you want to view your current hostname, run this command in Terminal:

Update (February 13, 2012): Some people have reported that their hostname is not updating. Please try closing your current Terminal session and starting up a new one. Then type “hostname” and you should see your changes.

This is what it looked like for me:

How to change default save location for print screen in Mac OS X

The default location for print screen in Mac is located at the user desktop. Some people don’t like to save files to their desktop. Here’s the way to change default location for print screen in Mac.

To change default save location for print screen in Mac, follow the steps below:-

Go to Finder -> Application -> Terminal

First, type this command. Make sure you change the path to the location you want

Once it’s done, type this command to apply the changes.

Done. You just change the default save location for print screen in mac os x