Difference between revisions of "Mac tricks"

From dbawiki
Jump to: navigation, search
(Show hidden files)
(Install OSX Mavericks to a USB stick / thumb drive)
Line 8: Line 8:
 
diskutil list
 
diskutil list
 
</pre>
 
</pre>
===Install OSX Mavericks to a USB stick / thumb drive===
+
===Create a bootable OSX Mavericks on a USB stick / thumb drive===
[http://www.techrepublic.com/blog/apple-in-the-enterprise/how-to-create-a-bootable-usb-to-install-os-x-mavericks/ www.techrepublic.com]
+
This way worked for me...
 +
* Download the Installer from the App Store. You end up with a file called "Install OS X Mavericks.app" (5.34Gb) in your Applications folder (and the Install OSX application open)
 +
* Format a USB drive. Use Disk Utility. Partition tab, 1 partition, options... GUID. Call it "Untitled".  Here's the bit... Check the mount point at the bottom of the screen! (Does it say /Volumes/Untitled?)
 +
* Open Terminal. Run the following command...<br />
 +
<pre>
 +
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
 +
</pre>
 +
If the mount point was /Volumes/Untitled then this command will work. If it was anything else, you will get an error. Change the name of the "--volume" attribute to what you saw as the mount point.<br />
 +
It all goes well, be prepared to make a cup of tea and take your time drinking it...
 +
<pre>
 +
Password:
 +
Erasing Disk: 0%... 10%... 20%... 30%...100%...
 +
Copying installer files to disk...
 +
Copy complete.
 +
Making disk bootable...
 +
Copying boot files...
 +
Copy complete.
 +
Done.
 +
</pre>
 +
<br />
 +
or<br />`
 +
* [http://www.techrepublic.com/blog/apple-in-the-enterprise/how-to-create-a-bootable-usb-to-install-os-x-mavericks/ www.techrepublic.com]
 +
 
 
===Show hidden files===
 
===Show hidden files===
 
<pre>
 
<pre>

Revision as of 21:12, 4 June 2014

To clean up the right-click context menu

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Some Terminal tricks

macs.about.com/od/usingyourmac/tp/terminaltricks.htm

List known disks

diskutil list

Create a bootable OSX Mavericks on a USB stick / thumb drive

This way worked for me...

  • Download the Installer from the App Store. You end up with a file called "Install OS X Mavericks.app" (5.34Gb) in your Applications folder (and the Install OSX application open)
  • Format a USB drive. Use Disk Utility. Partition tab, 1 partition, options... GUID. Call it "Untitled". Here's the bit... Check the mount point at the bottom of the screen! (Does it say /Volumes/Untitled?)
  • Open Terminal. Run the following command...
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction

If the mount point was /Volumes/Untitled then this command will work. If it was anything else, you will get an error. Change the name of the "--volume" attribute to what you saw as the mount point.
It all goes well, be prepared to make a cup of tea and take your time drinking it...

Password:
Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.


or
`

Show hidden files

defaults write com.apple.Finder AppleShowAllFiles TRUE;\killall Finder;\say Files Revealed

and on Mavericks

defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder