MacBook 5.1¶ ↑
-
en.wikipedia.org/wiki/MacBook#Model_specifications_2
Release date: October 14, 2008 (ie 8 years old now!)
-
en.wikipedia.org/wiki/MacBook#Timeline_of_the_MacBook_family
Therefore the aluminium unibody MacBook had a very short shelf life before becoming MacBook Pro!
It's amazing that I didn't realise that before 23 Nov 2016 (but ringing bells about what I was told when bought in Oxford Apple store on Sat 2 May 2009), and the result of trying to upgrade to Xenial Xerus on 3 Nov 2016, 7.5 years (90 months) later... :)
Reinstall SnowLeopard¶ ↑
-
Install Git + Clone 'github.com/doughazell/spree-dynamic.git'
Download 'git-2.3.5-intel-universal-snow-leopard.dmg'
See 'oldHome3/src/devlogeD/old/2013/apr26-SnowLeopard'
-
Install Homebrew:
Remove from '.profile'
export SSL_CERT_FILE export SSL_CERT_FILE export DYLD_LIBRARY_PATH
$ ruby -e “$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/install)”
-
RVM:
$ curl -sSL get.rvm.io | bash -s stable –rails
-
Qt:
$ brew install qt Needed for gem 'capybara-webkit'
-
Install Postgresql:
$ brew install postgresql $ brew info postgresql $ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist $ initdb /usr/local/var/postgres -E utf8 The files belonging to this database system will be owned by user "doug". This user must also own the server process. Alter 'config/database.yml' 'username: postgres' to 'username: doug'
-
Imagemagick:
$ brew update $ brew install imagemagick
-
Firefox
Add-ons:
SQLite Manager
-
Perian
-
WireTap Pro
If accidentally press “Register…” button and delete KEXT (Kernel Extension) then:
-
Install and uninstall downloads.ambrosiasw.com/snapzprox/essentials/SnapzProX2.3.3.dmg whilst leaving KEXT
(forums.macrumors.com/threads/wiretap-pro-alternative-for-snow-leopard.1532877/)
-
File, Record From: Mac Audio
(Otherwise get trial voice-over for Microphone/Line In)
Also be aware that WireTap Pro uninstaller leaves 'Music/WireTap Pro Recordings' (that may be used to check prior install)
-
-
Additional items:
$ brew install wget
1 - Eject stuck DVD¶ ↑
$ drutil tray eject;
2 - Create subdomains¶ ↑
Not so far…
3 - Grep only certain files¶ ↑
$ find . -name 'devise.rb'|xargs grep 'Devise.secret_key';
Much faster than:
$ grep -r 'Devise.secret_key' *;
$ grep -r –exclude='*.log' 'spree_bsc' *;
3b - Grep hidden files¶ ↑
$ grep -i path .*
4 - Vi¶ ↑
-
Toggle case under cursor
~
-
Show hidden characters
:set list :set nolist
-
Multiple windows
www.cs.oberlin.edu/~kuperman/help/vim/windows.html
:split ctrl-w arrow (move windows) :hide
5 - Package management systems¶ ↑
-
MacPorts - Based on FreeBSD Ports system [NOW, NOT INSTALLED ON MY SNOW LEOPARD REINSTALL]
Eschews Apple-supplied libs and links against its own to ensure consistency
Uses 'subversion' as its code manager
-
Fink - Based on Debian's dpkg and apt-get [NOT INSTALLED ON MY SNOW LEOPARD]
-
Homebrew - Overcome MacPorts perceived downfalls
Written in Ruby + works with OSX's existing frameworks/libs
Uses 'git' as its code manager
Formula: /usr/local/Library/Formula
Downloads: /Library/Caches/Homebrew
$ brew install --cc=gcc-5 poco
5c - Homebrew auto-updates¶ ↑
Homebrew auto-updates (github.com/Homebrew/brew/issues/288)
but 1.1.0 requires CLI > 4.0 (github.com/Homebrew/brew/commit/4015d0465a975aaac26d5a47395ab61e29d1702f)
In order to keep SnowLeopard running a bit longer (although the death-sentence is looming…)
-
Set 'brew' to 1.0.9 tag
$ cd /usr/local/Homebrew ; git reset --hard 1.0.9
-
'export HOMEBREW_NO_AUTO_UPDATE=1' in '~/.profile'
5c - Homebrew docs¶ ↑
(See 10 - Open file from Terminal)
5c - Homebrew commands¶ ↑
-
Revert to previous version of package 'readline'
$ brew info readline $ brew switch readline 6.3.8
-
Edit brew formula
$ brew edit python
-
Reinstall formula
$ brew reinstall python
6 - Nested backticks¶ ↑
Use $(command) rather than `command`
eg:
$ pushd $(dirname $(which rails));
7 - Share files with linux¶ ↑
Accessing OSX fs from linux¶ ↑
(15/5/16)
-
Make directory read-write by all
$ chmod -R 777 src
$ chmod -R 755 Documents
-
Disable Journalling
Disk utility-Select partition-Alt+File menu-Disable Journaling
-
Reboot into linux
-
Reenable Journalling when reboot OSX
-
Make linux files accessible from osx
$ sudo chmod -R 777 src
Accessing linux fs from OSX¶ ↑
(4/11/16)
(osxdaily.com/2014/03/20/mount-ext-linux-file-system-mac/)
-
Install OSXFuse
github.com/osxfuse/osxfuse/releases/download/osxfuse-3.5.3/osxfuse-3.5.3.dmg
-
Install 'fuse-ext2-0.0.7.dmg'
-
$ sudo fuse-ext2 /dev/disk0s3 ~/ubuntu/
(github.com/alperakcan/fuse-ext2/issues/35#issuecomment-258617429)
8 - Booting MacBook 5.1 into 64-bit mode¶ ↑
(21/5/16)
Check whether EFI can boot 64-bit kernel:
$ ioreg -l -p IODeviceTree | grep firmware-abi | | "firmware-abi" = <"EFI64">
Only MacBook “Pro” supports ability to boot 64-bit kernel with 64-bit EFI
macperformanceguide.com/SnowLeopard-64bit.html
forums.macrumors.com/threads/64-bit-kernel-macbook-5-1.1184959/
http://dl.dropbox.com/u/35856129/x64patch-10.6.8.tar.bz2 $ cd ~/Downloads/x64patch-10.6.8 ; more readme.txt
System Software Overview:
64-bit Kernel and Extensions: Yes
Holding down 3 + 2 until Apple appears gives:
64-bit Kernel and Extensions: No
9 - Disk commands¶ ↑
(14/11/16)
-
$ sudo diskutil unmount /Volumes/DISK0S3
-
$ diskutil mount /dev/disk0s3
-
$ diskutil info /dev/disk0s3
-
$ diskutil zeroDisk /dev/disk0s3
-
$ diskutil listFilesystems
"fuse-ext2" listed (but not in Disk Utility) "Free Space" is also listed
10 - Open file from Terminal¶ ↑
(11/12/16)
Like double clicking in Finder:
$ cd `brew --repository`/docs $ open brew.1.html
11 - Time of suspend/wake¶ ↑
(2/4/17)
$ grep SleepWakeCallback /var/log/system.log $ bzcat /var/log/system.log.*|grep SleepWakeCallback