使用者工具

網站工具


apple:mac_os_x

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版前次修改
下次修改
前次修改
apple:mac_os_x [2014/10/11 16:54] – sarsapple:mac_os_x [2017/09/29 17:01] (目前版本) – sars
行 7: 行 7:
 加上 control 鍵則直接複製到剪貼簿。 加上 control 鍵則直接複製到剪貼簿。
  
-===== 複製光碟成 iso ===== +===== 製作 macOS 10.13 High Sierra 安裝 ISO 檔 ===== 
-查看光碟資訊與掛載資訊 +  sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/[USBDisk]
-  $ drutil status+
  
-<code> +===== 製作 macOS 10.11 安裝 ISO 檔 ===== 
- Vendor   Product           Rev  +  hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app 
- MATSHITA DVD-R   UJ-868    KB19+  hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J 
 +  hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build 
 +  asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase 
 +  rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages 
 +  cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ 
 +  cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist 
 +  cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg 
 +  hdiutil detach /Volumes/install_app 
 +  hdiutil detach /Volumes/OS\ X\ Base\ System/ 
 +  hdiutil convert /tmp/ElCapitan.cdr.dmg -format UDTO -o /tmp/ElCapitan.iso 
 +  mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso
  
-           Type: DVD+R                Name: /dev/disk1 +===== Mavericks(10.9) 掛載 NTFS 硬碟 ===== 
-       Sessions: 1                  Tracks: 1  +Ref: http://coolestguidesontheplanet.com/how-to-write-to-a-ntfs-drive-from-os-x-mavericks/
-   Overwritable:   00:00:00         blocks:        0 /   0.00MB /   0.00MiB +
-     Space Free:   00:00:00         blocks:        0 /   0.00MB /   0.00MiB +
-     Space Used:  426:04:28         blocks:  1917328 /   3.93GB /   3.66GiB +
-    Writability:  +
-      Book Type: DVD-ROM (v1) +
-       Media ID: CMC MAG E01 +
-</code>+
  
-將光碟卸載 +1. Remove fuse4x if exist
-  $ diskutil unmountDisk /dev/disk1 +
-  Unmount of all volumes on disk1 was successful+
  
-複製光碟檔案至 iso +    brew remove fuse4x 
-  $ dd if=/dev/disk1 of=file.iso bs=2048+ 
 +2. Install ntfs-3g 
 + 
 +    brew install ntfs-3g 
 + 
 +3. Exchange mount_ntfs  
 + 
 +    sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig 
 +    sudo ln -s /usr/local/Cellar/ntfs-3g/2014.2.15/sbin/mount_ntfs /sbin/mount_ntfs 
 + 
 +4. Install osxfuse 
 + 
 +    brew install osxfuse 
 + 
 +5. Install osxfuse kernel instructions 
 + 
 +    sudo /bin/cp -RfX /usr/local/Cellar/osxfuse/2.6.4/Library/Filesystems/osxfusefs.fs /Library/Filesystems 
 +    sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs 
 + 
 +Ignore the warning dialog.
  
 ===== Mountain Lion 掛載 NTFS 硬碟 ===== ===== Mountain Lion 掛載 NTFS 硬碟 =====
行 42: 行 61:
   - Open Terminal and type “open /Volumes/THE_NAME_OF_YOUR_VOLUME” (without the quotes)   - Open Terminal and type “open /Volumes/THE_NAME_OF_YOUR_VOLUME” (without the quotes)
   - The Finder pops up automatically and you can see your disk listed there   - The Finder pops up automatically and you can see your disk listed there
- 
 ===== Lion 掛載 NTFS 硬碟 ===== ===== Lion 掛載 NTFS 硬碟 =====
 Ref: [[http://blog.nolar.info/ntfs-3g-in-mac-os-x-lion-10-7-with-read-write-support/|NTFS-3G in Mac OS X Lion (10.7) with read-write support]] Ref: [[http://blog.nolar.info/ntfs-3g-in-mac-os-x-lion-10-7-with-read-write-support/|NTFS-3G in Mac OS X Lion (10.7) with read-write support]]
行 53: 行 71:
  
 另外文章內有提到可以拿舊版 Snow Leopard 裡面的 NTFS 來用,但是可能會導致硬碟分割區整個爛掉,不建議使用。 另外文章內有提到可以拿舊版 Snow Leopard 裡面的 NTFS 來用,但是可能會導致硬碟分割區整個爛掉,不建議使用。
 +
 +===== 讓 .bashrc 生效 =====
 +在 ~/.bash_profile 內加入
 +
 +  if [ -f ~/.bashrc ]; then
 +    source ~/.bashrc
 +  fi
  
 ===== 讓終端機 ls 有顏色 ===== ===== 讓終端機 ls 有顏色 =====
行 81: 行 106:
   * -c 代表只套用到外接電源   * -c 代表只套用到外接電源
   * -a 代表套用到所有電源設定   * -a 代表套用到所有電源設定
 +
 +===== 防止出現.DS_Store 檔案 =====
 +  defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
 +
 +恢復原本設定:
 +  defaults delete com.apple.desktopservices DSDontWriteNetworkStores
 +  
 +批次刪除已存在的.DS_Store
 +  sudo find . -name ".DS_Store" -depth -exec rm {} \;
  
 ===== 用 MacBook 分享無線網路給 iPhone ===== ===== 用 MacBook 分享無線網路給 iPhone =====
行 192: 行 226:
 ===== Java ===== ===== Java =====
 http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard
 +
 +====== 升級、重灌 ======
 +  * https://medium.com/@hlb/clean-install-os-x-el-capitan-5aaa1f805c9#.eenwbzxxx
 +  * https://gist.github.com/jhihguan/2fda54f9a94fff48f21a
 +
 +===== 10.10 Yosemite =====
 +  * [[https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips/|Faster Mac OS X 10.10 Yosemite Upgrades for Developers]]
apple/mac_os_x.1413017666.txt.gz · 上一次變更: 由 sars