Editing
Mac OS X
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
http://www.denis.lemire.name/images/posts/leopard.png == Convert icns to PNG == <pre>sips -s format png Dictionary.icns --out ~/Desktop/Dictionary_icon</pre> There are some cool, highres system icons in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources == 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: <pre> if [ -e /etc/bashrc ]; then . /etc/bashrc fi if [ -e /etc/profile ]; then . /etc/profile fi </pre> == Write Bootable Image to Thumb Drive == # Run diskutil list to get the current list of devices # Insert your flash media # Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2) # Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command) # Execute sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m # Run diskutil eject /dev/diskN and remove your flash media when the command completes == Find system serial number from shell == ioreg -l | awk '/IOPlatformSerialNumber/ { split($0, line, "\""); printf("%s\n", line[4]); }' or system_profiler SPHardwareDataType | awk '/Serial Number/ { print $4; }' == Find build number of OS X Media == System/Library/CoreServices/SystemVersion.plist == Reset User password from Single User Mode == # Boot into single user mode (press Command-S at power on) # fsck -fy # mount -uw / # launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist # dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password. # Reboot
Summary:
Please note that all contributions to The Incoherency.Net Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
The Incoherency.Net Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main Page
Recent changes
Random page
Denis Lemire's Site
Help
Tools
What links here
Related changes
Special pages
Page information