Mac OS X: Difference between revisions

From The Incoherency.Net Wiki
Jump to navigation Jump to search
Denis (talk | contribs)
No edit summary
Denis (talk | contribs)
No edit summary
Line 43: Line 43:


defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
== Fix screen Environment ==
Setup .bashrc as follows:
<pre>
if [ -e /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -e /etc/profile ]; then
. /etc/profile
fi
</pre>

Revision as of 18:09, 12 August 2009

http://www.denis.lemire.name/images/posts/leopard.png

Convert icns to PNG

sips -s format png Dictionary.icns --out ~/Desktop/Dictionary_icon

Ripping a DVD

hdiutil makehybrid -udf -udf-volume-name DISTRUBIA_WS -o distrubia.iso ~/Desktop/DISTURBIA_WS

Ripping a Data CD/DVD

  • drutil status
  • diskutil unmountDisk /dev/disk1
  • dd if=/dev/disk1 of=file.iso bs=2048

Enabling Time Machine to use Unsupported Devices

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Removing DS_Store Files

find . -type f -name ".DS_Store" -print0 | xargs -0 rm -f
find . -type f -name "._.DS_Store" -print0 | xargs -0 rm -f

Remotely Enable or Disable Screen Sharing

To enable screen sharing:

$ cd /Library/Preferences
$ echo -n enabled > com.apple.ScreenSharing.launchd

To disable screen sharing:

$ cd /Library/Preferences
$ rm com.apple.ScreenSharing.launchd

Keyboard Shortcuts

  • Shift-Control-Eject - Sleep display

Force Safari to Always Open New Window Links in a Tab

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

Fix screen Environment

Setup .bashrc as follows:

if [ -e /etc/bashrc ]; then
	. /etc/bashrc
fi

if [ -e /etc/profile ]; then
	. /etc/profile
fi