Specific products affected
sudo -i cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /IOAHCIBlockStorage.original perl -e -p '"s/(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)/$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2/sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
/* save in file userChrome.css in profile dir */ /* Mac: ~/Library/Application Support/Firefox/Profiles/ */ /* info from: http://generally.wordpress.com/2006/08/31/multiple-row-toolbar-in-firefox/ */ /* Multi-row bookmarks toolbar for Fx3b5pre*/ #bookmarksBarContent {display:block !important;} .places-toolbar-items {display:block !important; height: 50px !important; overflow-y:auto !important;} #bookmarksBarContent toolbarseparator {display:inline !important;} #bookmarksBarContent .bookmark-item {visibility: visible !important;} .chevron {height: 0px !important;}
Shift-Cmd-3
defaults write com.apple.screencapture location ~/Downloads/Screenshots/ defaults write com.apple.screencapture location ~/Google\ Drive/JDGPRIVE/Downloads/Screenshots/ defaults write com.apple.screencapture location ~/Dropbox/Screenshots/ killall SystemUIServer
Use Macports on CMDLINE:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH export MANPATH=/opt/local/share/man:$MANPATH
cat <<HERE >> ~/.profile export PATH=/opt/local/bin:/opt/local/sbin:\$PATH export MANPATH=/opt/local/share/man:\$MANPATH HERE
cat <<HERE >> ~/.bash_profile export PATH=/opt/local/bin:/opt/local/sbin:\$PATH export MANPATH=/opt/local/share/man:\$MANPATH HERE
port -v selfupdate port upgrade outdated port list port search ghost* port install ghostscript
# Extract: tnef --body-pref all --number-backups -f winmail.dat --list tnef --body-pref all --number-backups -f winmail.dat -v # maybe decode BASE64: openssl enc -d -base64 -in myfile.b64 -out myfile.txt
> port install sshfs
Remove TUN/TAP: sudo -i rm /Library/Extensions/tap.kext rm /Library/Extensions/tun.kext rm /Library/StartupItems/tap rm /Library/StartupItems/tun
Dump USB info:
ioreg -c IOSerialBSDClient
Although similar in theoretical maximum transfer rate, FireWire 400 tends to have the performance edge over USB 2.0 Hi-Speed in real-world uses, especially in high-bandwidth use such as external hard-drives. The newer FireWire 800 standard is twice as fast as FireWire 400 and outperforms USB 2.0 Hi-Speed both theoretically and practically.
> cat /Library/StartupItems/AddRoutes/AddRoutes #!/bin/sh # Set up static routing tables # Roark Holz, Thursday, April 6, 2006 . /etc/rc.common StartService () { ConsoleMessage "Adding Static Routing Tables" route add -net 172.16.0./12 172.24.2.60 } StopService () { return 0 } RestartService () { return 0 } RunService "$1" > cat /Library/StartupItems/AddRoutes/StartupParameters.plist { Description = "Add static routing tables"; Provides = ("AddRoutes"); Requires = ("Network"); OrderPreference = "None"; } chmod 755 AddRoutes StartupParameters.plist
> ioreg -l -p IODeviceTree | grep firmware-abi | | "firmware-abi" = <"EFI64">
Hold down the '6' and '4' keys when the Mac starts up (until the Apple log).
Edit this file:
/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
Insert arch=x86_64 into the Kernel Flags field:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Kernel</key> <string>mach_kernel</string> <key>Kernel Flags</key> <string>arch=x86_64</string> </dict> </plist>
Command-S Boot into single user mode (command-line) Command-V Boot using verbose mode Shift Boot using safe mode (temporarily disables login items and non-essential kernel stuff) Option Go into openfirmware and select boot volume
How to extract the DVD.ISO from the Mac.Apps.Installer - Navigate to your applications folder - Right-click (or control-click) on the “Install Mac OS X Lion.app” and select “Show Package Contents” - Open the “Contents” directory and then go into “SharedSupport” - Double-click on “InstallESD.dmg” to mount the Lion disk image onto your Mac desktop
How to install from USB Stick rather than CDROM Am using a USB Stick to install Ubuntu Server 11 on a Linux machine, rather than using CD-ROM. (Am using Mac OSX 10.6.7 to download my iso, configure USB stick, and then copy .iso to it) This worked for me - Insert 4GB USB Stick - Open Disk Utility, Click ERASE. Format USB using MS-DOS (FAT) - When Disk appears in Left hand column, right click and get Information (note down the "Disk Identifier : eg disk6") - Then right click the Disk and select Unmount. (the drive still shows but the disk unmounts) - Switching to the Terminal App - Change to superuser / root, by issuing: sudo su - (then enter your password) - Change directory to where ever your recently downloaded .iso image is stored, eg: Downloads - My file iso is called ubuntu-11.04-server-amd64.iso, (approx 650mb) so use the following command: Code: dd if=ubuntu-11.04-server-amd64.iso of=/dev/disk6 bs=8192 - This will start copying the file to the USB stick. - There is no "verbose" or screen "output" of what is happening. But after 15mins you should see something like: root# dd if=ubuntu-11.04-server-amd64.iso of=/dev/disk6 bs=8192
> lt "/Applications/Install macOS High Sierra.app/Contents/SharedSupport/" total 10081840 -rw-r--r-- 1 root wheel 1.3K Sep 21 04:52 InstallInfo.plist drwxr-xr-x 11 root wheel 374B Sep 21 07:07 ../ -rw-r--r--@ 1 root wheel 4.3G Sep 26 23:53 InstallESD.dmg -rw-r--r--@ 1 root wheel 468M Sep 26 23:54 BaseSystem.dmg -rw-r--r--@ 1 root wheel 1.9K Sep 26 23:54 BaseSystem.chunklist -rw-r--r--@ 1 root wheel 2.5M Sep 26 23:54 AppleDiagnostics.dmg -rw-r--r--@ 1 root wheel 328B Sep 26 23:54 AppleDiagnostics.chunklist drwxr-xr-x 8 root wheel 272B Sep 26 23:54 ./
hdiutil chpass /Users/mark/file.dmg