Macbook Air に Apple Developers Tools を入れるには

まず DVD ドライブがないので Windows PC のものをネットワーク共有する Windows PC で「Mac OS X Install Disc 1」を入れて、表示されるメニュー(または setup.exe を実行して)から「DVD または CD 共有」をインストールする。再起動後 コントロールパネルの「DVD または CD 共有オプション」で全てチェックを入れる。 Apple Developers Tools をインストール 本来は、 Windows PC で「Mac OS X Install Disc 1」の setup.exe を実行して「リモートインストール Mac OS X」を選択して、ダイアログに従って進める。 とするのが正攻法らしいが30分放置しても接続中のままカスタマイズ選択画面まで行かなかったので諦めて、直接「Mac OS X Install Disc 2」から入れることにした。 Windows PC で「Mac OS X Install Disc 2」をセットする。 Macbook Air で Finder の「リモートディスク」を選択する。 表示される Windows PC を選択して「Mac OS X Install Disc 2」を選択する。 Xcode Tools を選択する。 XcodeTools.mpkg を実行し、ダイアログに従ってインストールする。 WebObjects.mpkg を実行し、ダイアログに従ってインストールする。 Dashcode.pkg を実行し、ダイアログに従ってインストールする。 以上で、Macintosh HD の下の Developer フォルダに一式インストールされる。 ※ Mac からアクセス中の DVD に Windows 側でアクセスするとドライブから取り出しが走ったりして失敗してしまうので注意。

2008年5月8日 · Toshimitsu Takahashi

Mac OS X で自動ログインを復活させるには

家で Mac mini を iTunes サーバとして使っているが、バックアップ用にユーザを追加してから自動ログインが働かなくなってしまった。 毎回起動の度にディスプレイを切り替えるのが面倒なので調べたところ・・・ Apple - Support の方法で直すことができた。 ちなみに iTunes は自動起動にしている。

2008年3月23日 · Toshimitsu Takahashi

Mac OS X で system_profiler を使ってシステムプロファイルを調べる

system_profiler コマンドを使うと、詳細なシステムプロファイル情報をターミナルで確認することができる。ご覧のとおり、長いので | less した方がいい。 $ system_profiler Hardware: Hardware Overview: Machine Name: Mac mini Machine Model: PowerMac10,1 CPU Type: PowerPC G4 (1.2) Number Of CPUs: 1 CPU Speed: 1.42 GHz L2 Cache (per CPU): 512 KB Memory: 512 MB Bus Speed: 167 MHz Boot ROM Version: 4.8.9f4 Serial Number: YM********* Network: Bluetooth: Type: PPP (PPPSerial) Hardware: Modem BSD Device Name: Bluetooth-Modem Has IP Assigned: No IPv4: Configuration Method: PPP IPv6: Configuration Method: Automatic Proxies: Proxy Configuration Method: Manual ExcludeSimpleHostnames: 0 FTP Passive Mode: Yes Auto Discovery Enabled: No 内蔵 Ethernet: Type: Ethernet Hardware: Ethernet BSD Device Name: en0 Has IP Assigned: Yes IPv4 Addresses: 2001:0c90:12f1:0ae2:0214:51ff:fe09:7a1c IPv4: Addresses: 192.168.1.11 Configuration Method: Manual Interface Name: en0 Router: 192.168.1.1 Subnet Masks: 255.255.255.0 IPv6: Addresses: 2001:0c90:12f1:0ae2:0214:51ff:fe09:7a1c Configuration Method: Automatic Flags: 32832 Interface Name: en0 Prefix Length: 64 Router: fe80:0000:0000:0000:0212:daff:fe43:081a DNS: Server Addresses: 192.168.1.1 Proxies: FTP Proxy Enabled: No FTP Passive Mode: Yes Gopher Proxy Enabled: No HTTP Proxy Enabled: No HTTPS Proxy Enabled: No RTSP Proxy Enabled: No SOCKS Proxy Enabled: No Ethernet: MAC Address: 00:14:51:09:7a:1c Media Options: Full Duplex Media Subtype: 100baseTX 内蔵 FireWire: Type: FireWire Hardware: FireWire BSD Device Name: fw0 Has IP Assigned: No IPv4: Configuration Method: DHCP IPv6: Configuration Method: Automatic Proxies: Proxy Configuration Method: Manual ExcludeSimpleHostnames: 0 FTP Passive Mode: Yes Auto Discovery Enabled: No Ethernet: MAC Address: --:--:--:--:--:--:--:-- Media Options: Full Duplex Media Subtype: autoselect AirMac: Type: AirPort Hardware: AirPort BSD Device Name: en1 Has IP Assigned: Yes IPv4 Addresses: 2001:0c90:12f1:0ae2:0211:24ff:fea0:3324 IPv4: Addresses: 192.168.1.11 Configuration Method: Manual Interface Name: en1 Router: 192.168.1.1 Subnet Masks: 255.255.255.0 IPv6: Addresses: 2001:0c90:12f1:0ae2:0211:24ff:fea0:3324 Configuration Method: Automatic Flags: 32832 Interface Name: en1 Prefix Length: 64 Router: fe80:0000:0000:0000:0212:daff:fe43:081a DNS: Server Addresses: 192.168.1.1 Proxies: Proxy Configuration Method: Manual ExcludeSimpleHostnames: 0 FTP Passive Mode: Yes Auto Discovery Enabled: No Ethernet: MAC Address: 00:11:24:a0:33:24 Media Options: Media Subtype: autoselect Software: System Software Overview: System Version: Mac OS X 10.4.10 (8R218) Kernel Version: Darwin 8.10.0 Boot Volume: Macintosh HD Computer Name: host User Name: □□□□ (user) ATA: ATA Bus: ST9808210A: Capacity: 74.53 GB Model: ST9808210A Revision: 3.04 Serial Number: 3LF17HVC Removable Media: No Detachable Drive: No BSD Name: disk0 Protocol: ATA Unit Number: 0 Socket Type: Internal OS9 Drivers: No S.M.A.R.T. status: Verified Volumes: Macintosh HD: Capacity: 74.41 GB Available: 50.08 GB Writable: Yes File System: Journaled HFS+ BSD Name: disk0s3 Mount Point: / Volumes: disk0s3: Capacity: 74.41 GB Available: 50.08 GB Writable: Yes File System: Journaled HFS+ MATSHITACD-RW CW-8124: Model: MATSHITACD-RW CW-8124 Revision: DACD Serial Number: Detachable Drive: No Protocol: ATAPI Unit Number: 1 Socket Type: Internal Audio (Built In): Built In Sound Card: Devices: LoadToonie: Inputs and Outputs: Headphones: Controls: Mute, Left, Right PluginID: Toonie Internal Speakers: Controls: Mute, Master PluginID: Toonie Formats: PCM 16: Bit Depth: 16 Bit Width: 16 Channels: 2 Mixable: Yes Sample Rates: 32 KHz, 44.1 KHz, 48 KHz, 88.2 KHz, 96 KHz PCM 24: Bit Depth: 24 Bit Width: 32 Channels: 2 Mixable: Yes Sample Rates: 32 KHz, 44.1 KHz, 48 KHz, 88.2 KHz, 96 KHz Bluetooth: Apple Bluetooth Software Version: 1.7.14f14 Services: Bluetooth File Transfer: Folder other devices can browse: ~/Public Requires Authentication: Yes State: Disabled Bluetooth File Exchange: Folder for accepted items: ~/Documents Requires Authentication: No When other items are accepted: Ask When PIM items are accepted: Ask When receiving items: Prompt for each file State: Enabled Incoming Serial Ports: Serial Port 1: Name: Bluetooth-PDA-Sync RFCOMM Channel: 3 Requires Authentication: No Outgoing Serial Ports: Serial Port 1: Address: Name: Bluetooth-Modem RFCOMM Channel: 0 Requires Authentication: No Diagnostics: Power On Self-Test: Last Run: 07/09/29 15:45 Result: Passed Disc Burning: MATSHITA CD-RW CW-8124: Firmware Revision: DACD Interconnect: ATAPI Burn Support: Yes (Apple Shipped/Supported) Cache: 2048 KB Reads DVD: Yes CD-Write: -R, -RW Burn Underrun Protection CD: Yes Write Strategies: CD-TAO, CD-SAO, CD-Raw Media: No FireWire: FireWire Bus: Maximum Speed: Up to 400 Mb/sec Graphics/Displays: ATI Radeon 9200: Chipset Model: ATY,RV280 Type: Display Bus: AGP VRAM (Total): 32 MB Vendor: ATI (0x1002) Device ID: 0x5962 Revision ID: 0x0001 ROM Revision: 113-xxxxx-120 Displays: RDT1711S: Resolution: 1280 x 1024 @ 60 Hz Depth: 32-bit Color Core Image: Not Supported Main Display: Yes Mirror: Off Online: Yes Quartz Extreme: Supported Rotation: Supported Memory: DIMM0/J11: Size: 512 MB Type: DDR SDRAM Speed: PC3200U-30330 Status: OK Power: System Power Settings: AC Power: System Sleep Timer (Minutes): 180 Disk Sleep Timer (Minutes): 10 Display Sleep Timer (Minutes): 10 Sleep On Power Button: Yes Automatic Restart On Power Loss: No Wake On AC Change: No Wake On LAN: Yes Wake On Modem Ring: Yes USB: USB High-Speed Bus: Host Controller Location: Built In USB Host Controller Driver: AppleUSBEHCI PCI Device ID: 0x00e0 PCI Revision ID: 0x0004 PCI Vendor ID: 0x1033 Bus Number: 0x5b USB Bus: Host Controller Location: Built In USB Host Controller Driver: AppleUSBOHCI PCI Device ID: 0x003f PCI Revision ID: 0x0000 PCI Vendor ID: 0x106b Bus Number: 0x1a Bluetooth HCI: Version: 15.86 Bus Power (mA): 500 Speed: Up to 12 Mb/sec Product ID: 0x8204 Vendor ID: 0x05ac (Apple Computer, Inc.) USB Bus: Host Controller Location: Built In USB Host Controller Driver: AppleUSBOHCI PCI Device ID: 0x0035 PCI Revision ID: 0x0043 PCI Vendor ID: 0x1033 Bus Number: 0x1b Hub in Apple Pro Keyboard: Version: 4.10 Bus Power (mA): 500 Speed: Up to 12 Mb/sec Manufacturer: Mitsumi Electric Product ID: 0x1003 Vendor ID: 0x05ac (Apple Computer, Inc.) Logitech USB Optical Mouse: Version: 43.00 Bus Power (mA): 100 Speed: Up to 1.5 Mb/sec Manufacturer: Logitech Product ID: 0xc019 Vendor ID: 0x046d Apple Pro Keyboard: Version: 4.10 Bus Power (mA): 250 Speed: Up to 12 Mb/sec Manufacturer: Mitsumi Electric Product ID: 0x020d Vendor ID: 0x05ac (Apple Computer, Inc.) USB Bus: Host Controller Location: Built In USB Host Controller Driver: AppleUSBOHCI PCI Device ID: 0x0035 PCI Revision ID: 0x0043 PCI Vendor ID: 0x1033 Bus Number: 0x3b AirPort Card: AirPort Card Information: Wireless Card Type: AirPort Extreme Wireless Card Locale: Japan Wireless Card Firmware Version: 405.1 (3.90.34.0.p18) Current Wireless Network: ********** Wireless Channel: 1 Locations: Automatic: Active Location: Yes Services: Bluetooth: Type: PPP IPv4: Configuration Method: PPP IPv6: Configuration Method: Automatic Proxies: Proxy Configuration Method: 2 ExcludeSimpleHostnames: 0 FTP Passive Mode: 1 Auto Discovery Enabled: 0 PPP: ACSP Enabled: 0 Display Terminal Window: 0 Redial Count: 1 Redial Enabled: 1 Redial Interval: 5 Use Terminal Script: 0 Dial On Demand: 0 Disconnect On Fast User Switch: 1 Disconnect On Idle: 1 Disconnect On Idle Timer: 600 Disconnect On Logout: 1 Disconnect On Sleep: 1 Idle Reminder: 0 Idle Reminder Time: 1800 IPCP Compression VJ: 1 LCP Echo Enabled: 0 LCP Echo Failure: 4 LCP Echo Interval: 10 Log File: /var/log/ppp.log Verbose Logging: 0 内蔵 Ethernet: Type: Ethernet BSD Device Name: en0 Hardware (MAC) Address: 00:14:51:09:7a:1c IPv4: Addresses: 192.168.1.11 Configuration Method: Manual Router: 192.168.1.1 Subnet Masks: 255.255.255.0 IPv6: Configuration Method: Automatic AppleTalk: Configuration Method: Node DNS: Server Addresses: 192.168.1.1 Proxies: FTP Proxy Enabled: 0 FTP Passive Mode: 1 Gopher Proxy Enabled: 0 HTTP Proxy Enabled: 0 HTTPS Proxy Enabled: 0 RTSP Proxy Enabled: 0 SOCKS Proxy Enabled: 0 内蔵 FireWire: Type: FireWire BSD Device Name: fw0 Hardware (MAC) Address: 00:14:51:ff:fe:09:7a:1c IPv4: Configuration Method: DHCP IPv6: Configuration Method: Automatic AppleTalk: Configuration Method: Node Proxies: Proxy Configuration Method: 2 ExcludeSimpleHostnames: 0 FTP Passive Mode: 1 Auto Discovery Enabled: 0 AirMac: Type: IEEE80211 BSD Device Name: en1 Hardware (MAC) Address: --:--:--:--:--:-- IPv4: Addresses: 192.168.1.11 Configuration Method: Manual Router: 192.168.1.1 Subnet Masks: 255.255.255.0 IPv6: Configuration Method: Automatic AppleTalk: Configuration Method: Node DNS: Server Addresses: 192.168.1.1 Proxies: Proxy Configuration Method: 2 ExcludeSimpleHostnames: 0 FTP Passive Mode: 1 Auto Discovery Enabled: 0 IEEE80211: AllowNetCreation: 1 JoinMode: Ranked MAC Address: --:--:--:--:--:--

2007年9月27日 · Toshimitsu Takahashi

Mac OS X で hostinfo を使ってホスト情報を調べる

hostinfo コマンドを使うと、カーネルバージョン、CPU プロセッサの情報、ロードアベレージなどのホスト情報を調べることができる。 $ hostinfo Mach kernel version: Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Kernel configured for a single processor only. 1 processor is physically available. Processor type: ppc7450 (PowerPC 7450) Processor active: 0 Primary memory available: 512.00 megabytes Default processor set: 81 tasks, 259 threads, 1 processors Load average: 1.69, Mach factor: 0.18

2007年9月26日 · Toshimitsu Takahashi

rsync + ssh で Mac のデータを Linux サーバにバックアップする

Mac OS X の blue というホストから Cent Os の red というホストに Subversion のデータをバックアップしてみる。blue の ユーザは、backup として作成した。red には バックアップ元のホスト名をユーザにした blue を作成した。 Mac OS X (blue) でユーザ backup を作成し、SSH のキーを生成する。 # niutil -create / /users/backup # niutil -createprop / /users/backup shell /bin/bash # niutil -createprop / /users/backup realname “Backup User” # niutil -createprop / /users/backup uid 301 # niutil -createprop / /users/backup gid 20 # niutil -createprop / /users/backup home /Users/backup # niutil -appendprop / /groups/wheel users backup # mkdir /Users/backup # chown backup /Users/backup # su - backup $ ssh-keygen -t rsa -N "" ...

2007年9月2日 · Toshimitsu Takahashi

コマンドラインでユーザの追加

Mac では設定情報を NetInfo で管理している。adduser ではなく niutil コマンドで追加・削除する。 # niutil -create / /users/backup # niutil -createprop / /users/backup shell /bin/bash # niutil -createprop / /users/backup realname “Backup User” # niutil -createprop / /users/backup uid 301 # niutil -createprop / /users/backup gid 20 # niutil -createprop / /users/backup home /Users/backup # niutil -appendprop / /groups/wheel users backup

2007年9月1日 · Toshimitsu Takahashi

Mac OS X サービスを自動起動する

Mac OS X でのサービスの起動・停止スクリプトを登録してマシンの起動・停止と同期させる方法。 ユーザがインストールしたアプリは、/Library/StartupItems に アプリのディレクトリを掘る drwxr-xr-x 4 root wheel 136 Nov 26 23:16 MySQL その下にスクリプト(MySQL)とStartupParameters.plist(XMLではない表記も可能) ファイルを置く。 MySQL 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 #!/bin/sh # \# /Library/StartupItems/MySQL/MySQL # \# A script to automatically start up MySQL on system bootup \# for Mac OS X. This is actually just a wrapper script around \# the standard mysql.server init script, which is included in \# the binary distribution. # \# (c) 2003 MySQL AB \# Written by Lenz Grimmer <lenz@mysql.com> # \# Suppress the annoying "$1: unbound variable" error when no option \# was given if \[ -z $1 \] ; then echo "Usage: $0 \[start|stop|restart\] " exit 1 fi \# Source the common setup functions for startup scripts test -r /etc/rc.common || exit 1 . /etc/rc.common \# The path to the mysql.server init script. The official MySQL \# Mac OS X packages are being installed into /usr/local/mysql. SCRIPT="/usr/local/mysql5/share/mysql/mysql.server" StartService () { if \[ "${MYSQLCOM:=-NO-}" = "-YES-" \] ; then ConsoleMessage "Starting MySQL database server" $SCRIPT start > /dev/null 2>&1 fi } StopService () { ConsoleMessage "Stopping MySQL database server" $SCRIPT stop > /dev/null 2>&1 } RestartService () { ConsoleMessage "Restarting MySQL database server" $SCRIPT restart > /dev/null 2>&1 } if test -x $SCRIPT ; then RunService "$1" else ConsoleMessage "Could not find MySQL startup script!" fi StartupParameters.plist ...

2007年3月18日 · Toshimitsu Takahashi