Get Control of Mountain Lion with a huge list of command line tweaks…..

Apple, CLI, Lion, Macintosh, Mountain Lion, OSX, osx Server
As pointed out to me in the comments the original Author -- Mathias Bynens -- is constantly updating this document. You can find the latest up to date version at http://mths.be/osx # ~/.osx — http://mths.be/osx ############################################################################### # General UI/UX # ############################################################################### # Set computer name (as done via System Preferences → Sharing) scutil --set ComputerName "MathBook Pro" scutil --set HostName "MathBook Pro" scutil --set LocalHostName "MathBook-Pro" # Menu bar: disable transparency defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false # Menu bar: show remaining battery time (on pre-10.8); hide percentage defaults write com.apple.menuextra.battery ShowPercent -string "NO" defaults write com.apple.menuextra.battery ShowTime -string "YES" # Menu bar: hide the useless Time Machine and Volume icons defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/AirPort.menu" "/System/Library/CoreServices/Menu Extras/Battery.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu" # Always show scrollbars defaults write…
Read More

Create a Mountain Lion Install DVD or USB Drive after App Store purchase

Apple, Macintosh, Mountain Lion, OSX, osx Server
Once you've purchased Mountain Lion from the App Store, follow these steps to create a backup install DVD or flash drive Download Lion from the Mac App Store—but don't install it yet, because of the disappearing installer issue noted above. Find the installer in your Applications folder and right-click on it then select "Show Package Contents." Head to Contents and SharedSupport and look for the file called "InstallESD.dmg" Open up Disk Utility from your Applications and Utilities folder and drag the DMG file into the sidebar on the left. If you're burning to DVD: insert your disk, select the DMG file in the sidebar, and hit "Burn." Skip to step 6. If you're burning to USB, you'll need to first format the drive properly: Insert the disk and select it…
Read More

SSH to your remote machine using Back to My Mac iCloud Service

Apple, CLI, Macintosh, OSX, osx Server, ssh, XServe
This is kinda cool. It only works if you have access to "Back to My Mac" service and you have it turned on in the remote mac's preferences (under iCloud preferences). If you ever need to find out the FQDN (Fully Qualified Domain Name) of your remote mac and connect to it via ssh or something like it you can use the following command in the terminal: echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p' This should spit out the "domain name" for your "personal" iCloud DNS. The output looks something like this: 12345678.members.btmm.icloud.com To use this in a ssh command you would need the name of the remote machine plus the information above: ssh -2 -6 remote-hostname.12345678.members.btmm.icloud.com That's it…..you should see a prompt for ssh login…
Read More

Get the “Bounce” command back in Mail application under OSX Lion

Apple, Automator, Lion, Macintosh, OSX
The "Bounce" command is really useful for those times when you're receiving spam mail that gives you no recourse to opt-out. Usually Ads and announcements have a link to unsubscribe, but if they don't I usually just "bounce" the mail back to the sender and that usually causes the sender to take me off their mailing list. As of the release of Lion, apple (for some reason) has decided to take that functionality and the associated button away from the Mail app. To be more precise, they've removed the icon and the menu option, but the function is still there, buried in the guts of mail. You can get it back by creating the following Automator Service script. Follow the instructions below: Open Automator application Create a new Service when…
Read More

Using iCloud to sync files just like dropbox

Apple, iCloud, ipad, iPhone, iPod, iPodTouch, Macintosh, OSX, osx Server, XServe
If you didn't know, iCloud has a really neat feature that allows it to act just like dropbox. If you activate the "Document & Data" synching option in the iCloud pref panel, it allows you to sync any file using iCloud. This is contrary to what Apple is selling the service as being just for "Custom" Apps that have the iCloud feature (i.e.: keynote, numbers, etc.). So here is how you take advantage of this. Once you've turned on the feature in the preferences panel, you open up Finder. Hold down the "option/alt" key and from the finder menus choose "Go/Library". This should land you in your not so secret Library directory. You need to hold down the option key to see this, since OSX Lion hides the users Library…
Read More

Lion Tip: Adding your digital signature to PDF files….

Apple, Macintosh, OSX
If you ever are in need of signing a PDF file, you don't need to print/sign/scan it anymore, Lion's new preview app lets you insert/sign those pdf docs in a flash. Here is how you get your signature "scanned". Use a Sharpie marker and sign your name on a plain piece of paper. Make sure it's a plain sheet of paper with nothing written on either side. Open the Preview App and go to Preferences>Signatures and Press the small + button to add a new signature. A new window will pop up with your webcam video inside. Hold up the paper with your signature in front of the camera and make sure there is enough light in the room for the camera to get a clean image Align the signature…
Read More

Lions new Finder Tricks….

Apple, Macintosh, OSX
Now that I'm getting settled in the latest OSX, I thought I share with you a couple of finder gems that might not be obvious right from the get go: 1) You now have the ability to select multiple files in a folder and right click on them to choose "New Folder with X Selections". This will create a new folder and move the selected files into that folder. Kinda neat and makes the process of moving large number of files a bit simpler. 2) You can now "move" files and folders from one place to another. First "copy" the file/folder in question by selecting it and using the command-c shortcut. Then find the place you want to move them to and instead of using the usual command-v (which copies…
Read More