2011/07/24

Mac OS X Lion Install

Mac OS X Lion クリーンインストール。
# App Store から Installer をダウンロードした『直後』でインストール始める『直前』に
# /Applications にダウンロードされた Installer をバックアップとらないといけない。ここはまる。ここ「はまる」の意。
# 詳細は googleへ。 記事末尾参照

PRMA クリアして option を押しながら USB フラッシュメモリーから起動。
ユーティリティ->ディスクユーティリティを使ってパーティションの1つを初期化しインストール。

システム環境とターミナル.appをざっと設定し 3 度目の起動 後。
# ソフトウェアアップデートはしていない。
# Wi-Fi (Lion から メニューバーのAirMac は Wi-Fi になった) に繋がることは確認。
# FileVault はオンにしていない。

# lsof
$ sudo lsof -i
$ sudo launchctl list | more

# grep netbios
$ sudo launchctl list | grep netbios

$ pwd
/System/Library/LaunchDaemons
$
$ grep -R netb  .
./com.apple.netbiosd.plist: <string>com.apple.netbiosd</string>
./com.apple.netbiosd.plist:   <string>/usr/sbin/netbiosd</string>
./com.apple.netbiosd.plist:        <string>_netbios</string>
./com.apple.netbiosd.plist:                <string>netbios-ns</string>
./com.apple.netbiosd.plist:                <string>netbios-dgm</string>
$
$ more com.apple.netbiosd.plist

# unload netbiosd
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.netbiosd.plist 
$ sudo lsof -i

# chmod netbiosd
$ which netbiosd
$ sudo chmod a-x /usr/sbin/netbiosd
$ ls -la /usr/sbin/netbiosd 
# chmod smbd
$ sudo chmod a-x /usr/sbin/smbd
$ ls -la /usr/sbin/smbd

# unload blued
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.blued.plist
# unload RemoteDesktop
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.RemoteDesktop.PrivilegeProxy.plist 


# halt
# shift key 押しながら起動。
# login as admin user

# moved RemoteManagement agent
$ sudo mv /System/Library/LaunchAgents/com.apple.RemoteDesktop.plist  ~/backup/com.apple.RemoteDesktop.plist
# moved RemoteManagement
$ sudo mv /System/Library/CoreServices/RemoteManagement/  ~/backup/RemoteManagement/

# moved IOBluetooth
$ cd /System/Library/Extensions
$ sudo mv IOBluetoothFamily.kext/  ~/backup/IOBluetoothFamily.kext/
$ sudo mv IOBluetoothHIDDriver.kext/  ~/backup/IOBluetoothHIDDriver.kext/
$ sudo mv AppleBluetoothMultitouch.kext ~/backup/AppleBluetoothMultitouch.kext

# important touch
$ sudo touch /System/Library/Extensions/

# chmod blued
$ which blued
$ sudo chmod a-x /usr/sbin/blued
$ ls -la /usr/sbin/blued 

# reboot
# login as admin user
# system log
$ syslog -w 200 | more


# system error log

$ syslog -k Level Nle error
Jul 24 10:38:59 localhost UserEventAgent[11] <Error>: CaptiveNetworkSupport:CaptiveSCRebuildCache:81 Failed to get service order
--- last message repeated 3 times ---
Jul 24 10:38:59 localhost airportd[21] <Error>: _processDLILEvent: en0 attached (down)
Jul 24 10:39:00 localhost UserEventAgent[11] <Error>: CaptiveNetworkSupport:CaptiveSCRebuildCache:81 Failed to get service order
--- last message repeated 1 time ---
Jul 24 10:39:00 localhost configd[14] <Error>: bootp_session_transmit: bpf_write(en0) failed: Network is down (50)
Jul 24 10:39:00 localhost configd[14] <Error>: DHCP en0: INIT-REBOOT transmit failed
Jul 24 10:39:01 osx mDNSResponder[47] <Error>: mDNSResponder mDNSResponder-320.5 (Jun 16 2011 17:42:39) starting OSXVers 11
Jul 24 10:39:02 osx mDNSResponder[47] <Error>: D2D_IPC: Loaded
Jul 24 10:39:02 osx mDNSResponder[47] <Error>: D2DInitialize succeeded
Jul 24 10:39:02 osx corestoraged[73] <Error>: .... status = "Locked"
Jul 24 10:39:02 osx systemkeychain[33] <Error>: done file: /var/run/systemkeychaincheck.done
Jul 24 10:39:02 osx loginwindow[49] <Error>: Login Window Application Started
Jul 24 10:39:03 osx mds[46] <Error>: (Normal) FMW: FMW 0 0
Jul 24 10:39:05 osx loginwindow[49] <Error>: Login Window Started Security Agent
Jul 24 10:39:05 osx WindowServer[99] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Jul 24 10:39:05 osx loginwindow[49] <Error>: kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type
Jul 24 10:39:05 osx loginwindow[49] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Jul 24 10:39:06 osx SecurityAgent[118] <Error>: Echo enabled
Jul 24 10:39:08 osx SecurityAgent[118] <Error>: kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type
Jul 24 10:39:08 osx SecurityAgent[118] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Jul 24 10:39:18 osx SecurityAgent[118] <Error>: Login Window login proceeding
Jul 24 10:39:18 osx loginwindow[49] <Error>: Login Window - Returned from Security Agent
$_


# :) を検索
$ syslog -k Message Seq ':)'

[2011-07-25]

yebo blog: OS X Lionのディスクを作成する方法
http://yebo-blog.blogspot.com/2011/06/os-x-lion_18.html

http://osxdaily.com/2011/07/08/make-a-bootable-mac-os-x-10-7-lion-installer-from-a-usb-flash-drive/

Install Mac OS X Lion on More Than One Computer
http://osxdaily.com/2011/07/21/install-mac-os-x-lion-multiple-macs/

OS X Lion: About Lion Recovery
http://support.apple.com/kb/HT4718

OS X Lion: About FileVault 2
http://support.apple.com/kb/HT4790

Inside Mac OS X 10.7 Lion: New Wi-Fi Diagnostics tool
http://www.appleinsider.com/articles/11/03/15/inside_mac_os_x_10_7_lion_new_wifi_diagnostics_tool.html

0 件のコメント: