Similar as on FreeBSD and Linux, you can add/remove static network routes through the command line with the route command. The syntax somewhat differs from Linux, though.
To add a route (e.g. subnet 192.168.3.0/24 to gateway 192.168.1.254):
sudo route -n add -net 192.168.3.0/24 192.168.1.254
To remove a route:
sudo route -n delete -net 192.168.3.0/24
To show the current route table, you can use netstat:
You can very easily properly uninstall the Palo Alto GlobalProtect client on Mac OSX by running the included uninstallation script:
Open a Terminal and then run it by typing:
Provide your password when asked and the script will uninstall GlobalProtect.
I had an issue with an app being stuck in Paused mode in Launchpad, and was unable to cancel/resume the update from the App Store because it wasn't listed in the updates list.
The solution, as stated here, was to open Launchpad, hold down the mouse on the app until it started jiggling, then clicking the delete button (x). The app reappeared normally and was even updated correctly.
The reason was probably the app got updated along with a system update, and Launchpad was unaware the update was completed.
When running an app, you may encounter the following error:
When attempting to reinstall the app, the error persists.
To resolve, try running the following command from a terminal:
sudo xattr -rc /Applications/Application.app
Replace Application.app with the full path of the application that has the problem.
I had this problem when installing Wineskin Winery on a Mac OS X 10.8.5. A freshly downloaded copy immediately gave the error but after adjusting the attributes on the app, it worked properly.
|Control + Shift + Eject*||Locks your Mac so you will have to unlock it with your password. Note that this will also sleep the display but the Mac will continue to run.|
|Command + Option + Eject*||Puts the entire Mac asleep. This is the same as clicking on the Apple-icon at the left-top and choose "Sleep".|
* Newer Macs: Eject = Power
To properly "lock" your Mac when using either of the shortcuts, you will have to enable Require password after sleep or screen saver begins (System Preferences → Security & Privacy). When not set to immediately, the configured delay will be used when using the shortcuts.
You can use Terminal in combination with AppleScript to set/change the wallpaper on your Mac. While not immediately obvious when you would need this, it might come in handy for automation purposes.
Open a Terminal and run the following command:
osascript -e 'tell application "Finder" to set desktop wallpaper to POSIX file "/path/to/file.jpg"'
Replace /path/to/file.jpg with the full path of the file you want to use. All common formats (JPG, PNG, etc.) are supported.
With the latest updates of Outlook 2011 for Mac, when opening a message, the Save As function is grayed out, so you can no longer save individual messages like that.
However, you can still drag the message from the Outlook window to your desktop or to a folder in Finder. This creates a eml file that Outlook can read later when you double-click it, and also includes all attachments of that message.
If you need an e-mail as a PDF, you can simply use OSX'es built-in "print-to-PDF" functionality.
It may be useful to know whether your Mac has a 32-bit or 64-bit EFI. This can be done by running the following command from an OSX Terminal (can run from the installer or recovery partition):
ioreg -l -p IODeviceTree | grep firmware-abi
This should return something like the following:
|• For 32-bit EFI:||| | "firmware-abi" = <"EFI32">|
|• For 64-bit EFI:||| | "firmware-abi" = <"EFI64">|
MacPostFactor 1.0.1 has been officially released:
MacPostFactor is a tool to install Mac OSX 10.8+ on older (Intel) Macbooks that only support up to OSX 10.7 (Lion). It works through a combination of a highly customized installer, a replaced set of drivers and various frameworks, and the original install app from the App Store. The installation can be done directly on a Macbook already running OSX Lion (so no USB disk required), or on an USB media for installation on another system.