Time Machine

März 19th, 2013 No Comments »

If you’re using an SSD and trying to conserve disk space, you might want to disable the Time Machine local backups feature. This feature places Time Machine backups on your local drive while you are disconnected from your Time Machine external hard drive.

Disable local TM Backup

sudo tmutil disablelocal
reboot

Enable local TM Backup

sudo tmutil enablelocal
reboot

Repair Keychain System

März 18th, 2013 No Comments »

Repair System Keychain

1. As root copy “/var/db/SystemKey” from a working system to the defective one
2. Preserve permissions (0400) for “/var/db/SystemKey”
3. Create a new System Keychain

# /usr/sbin/systemkeychain -C -f

4. Reboot
5. Readd all system keys

Networking Configuration

Januar 1st, 2013 No Comments »

Show Network Adaptors

# sudo networksetup -listallnetworkservices
# ifconfig -a

Disable IPv6

sudo networksetup -setv6off Wi-Fi

Outlook 2011

Dezember 28th, 2012 No Comments »

Disable Autoconfiguration

1. In Outlook check the Mail-Account-Name
2. Check, that Outlook ist running
3. Open AppleScript-Editor
4. In AppleScript-Editor execute

	tell application "Microsoft Outlook"
		set background autodiscover of exchange account "Profilname-aus-Schritt1" to false
	end tell

5. Restart Outlook
6. In Outlook Mail-Account-Settings change the Server-Address to the Webmail-URL
6. Restart Outlook.
7. Outlook comes online

Switch JRE

Dezember 25th, 2012 No Comments »

Downgrade to JRE 1.6

# sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
# sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
# sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
# sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws

Reactivate JRE 1.7

# sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws /usr/bin/javaws 

HDD Spindown

Dezember 25th, 2012 No Comments »

Set Spindown Time

 # sudo pmset disksleep 20

Convert Images with hdiutil

Oktober 29th, 2012 No Comments »

Convert an .IMG-Image to an .ISO-Image

hdiutil convert ~/Desktop/SourceImage.img -format UDRW -o ~/Desktop/TargetImage.iso

Convert an .ISO-Image to an .IMG-Image

hdiutil convert ~/Desktop/SourceImage.iso -format Rdxx -o ~/Desktop/TargetImage.img

Mac OS Port-to-Service List

Oktober 15th, 2012 No Comments »

List Ports with their Service

lsof -i | grep LISTEN

Mac OS Logon Objects

September 28th, 2012 No Comments »

Manage Objects, launched at start

Edit the startup objects manually

/System/Library/StartupItems
/Library/StartupItems

Manage Objects, launched at logon

List Items

osascript -e 'tell application "System Events" to get the name of every login item'

Add Item

osascript -e 'tell application "System Events" to make login item at end with properties {path:"/path/to/itemname", hidden:false}' 

Remove Item

osascript -e 'tell application "System Events" to delete login item "itemname"' 

Edit the startup objects manually

~/Library/Preferences/com.apple.loginitems.plist

Mac OS Finder

September 28th, 2012 No Comments »

Tweak the Finder

Add “Quit”

defaults write com.apple.Finder QuitMenuItem -bool YES
killall Finder

Show full Path in Window Title

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
killall Finder

Clear “Open with” Menu

After a while, when you have a lot of applications installed, your “Open with” menu will get overwhelmed.
Delete Elements from

~/Library/Preferences and delete the file “com.apple.LaunchServices.plist

Disable/Reenable download warnings

defaults write com.apple.LaunchServices LSQuarantine -bool FALSE

Reenable download warnings

defaults write com.apple.LaunchServices LSQuarantine