Keyboard shortcuts:
⇧⌥⌘V | paste as plain text |
⇧⌘. | in an open/save dialog box, shows hidden files |
⌘⇧ | go to parent directory |
Change lost password
hold on powerup for single user mode
at root prompt:
- mount -uw /
- sh /etc/rc
- passwd
Updating hacked machine:
turn off journaling in Disk Utility:
- select partition
- hold down option and click “file” menu
reboot with live CD (hold down alt key)
backup to external drive: see here
- example from above link: dd if=/dev/sdc bs=4M conv=sync,noerror | pv -s 160G | dd of=/dev/sdd bs=4M
reboot to original internal drive
do update but don't restart if that is an option
reboot to live CD
delete platform.support.plist (mentioned here)
- perhaps this file is at System/Library/CoreServices as mentioned here
boot original internal drive profit Resources:
- http://superuser.com/questions/84446/how-to-mount-a-hfs-partition-in-ubuntu-as-read-write
Hide the dock by making it really small:
defaults write com.apple.dock tilesize -int 1 killall Dock