techwiki:osx

Differences

This shows you the differences between two versions of the page.


Previous revision
techwiki:osx [2022/07/25 07:37] (current) – [Common Directory] ying
Line 1: Line 1:
 +====== OS X System intro ======
 +
 +  * mac os x is a system that turns outdated very fast, unlike windows machines, new mac can not be installed with old os x system;
 +  * each mac OS is targeting at specific time-period mac machines, so it is more like fixed system
 +    * (unlike windows or linux, you can install any version of OS on any type of machines, as long as the basic hardware drivers works)
 +  * OS X is a system per-bundled with hardware drivers, and sold together with mac hardware.
 +
 +===== Basic Daily Operation =====
 +
 +**Finder operation**
 +
 +| copy file path | right click menu + alt key hold > copy as path name |
 +
 +| Text Navigation | mac    | win    |
 +| go line front | cmd+left | home |
 +| go line end   | cmd+right | end |
 +| go word front | alt+left | ctrl+left |
 +| go word end | alt+right | ctrl+right |
 +| go doc start | cmd+up | ctrl+home |
 +| go doc end | cmd+down | ctrl+end |
 +| text selection | above with shift ||
 +
 +^ text edit: TextEdit ||
 +| make current doc Plain text | cmd+shift+t |
 +^ image eidt: Preview ||
 +| crop image to selection | cmd+k |
 +| screenshot selection | cmd+shift+4 |
 +^ commandline: Terminal ||
 +| a standard bash terminal with copy paste working ||
 +
 +==== Edit hosts ====
 +
 +  * open terminal: <code>sudo vi /etc/hosts</code> or <code>sudo nano /etc/hosts</code> or to view only <code>view /etc/hosts</code>
 +    * note: /private/etc/hosts is actual path, /etc/hosts is a alias to it. vi/nano both are terminal text editor, vi for pro, nano for normal user
 +
 +==== Common Directory ====
 +
 +  * common shared directory /Users/Shared
 +  * Root level directory with symbolic link config <code>echo -e "MyDirName\tUsers/MyUser/MyDirName" | sudo tee -a /etc/synthetic.conf
 +</code>
 +  * another version <code>
 +sudo touch /etc/synthetic.conf
 +sudo echo "MyDirName\tUsers/MyUser/MyDirName" >> /etc/synthetic.conf
 +</code>
 +    * reboot needed for every change to show up
 +    * note: Because the root mount point is read-only as of macOS 10.15, physical files may not be created at this location. All writeable paths must reside on the data volume, which is mounted at /System/Volumes/Data
 +    * /etc/synthetic.conf should be owned by root and group wheel with permissions 0644
 +    * ref: https://www.youtube.com/watch?v=E4qMv0UwCL4
 +
 +
 +===== Font Management in OSX =====
 +
 +  * Mac comes with free tool called "Font Book" for font management,
 +    * install font for single user in "Font Book", basically drag and drop into a collection in the window, it is basically same as manually put in ~/Library/Fonts
 +      * ref: https://www.youtube.com/watch?time_continue=288&v=eOGykGwNreg
 +
 +  * install font manually for single user:
 +    * put font files into ~/Library/Fonts (Note, it is hidden by default, you need Hold Option/Alt key and click Go menu in Finder window, to go Library from there)
 +    * ref: https://www.youtube.com/watch?time_continue=160&v=xUz3b24Ehfw
 +
 +  * the system library: /Library/Fonts/
 +
 +
 +**Other Management Tool**
 +  * FontExplorer X: (paid app) a tool managing font without move to system/user folder, similar to NexusFont for windows (free app)
 +  * FontBase: (free for win,mac,linux): another font manager: https://fontba.se/
 +  * SkyFont: (free for win,mac): http://skyfonts.com/
 +  * Adobe CC app: (paid and locked) it comes with cloud based font management tool, allow you to activate fonts from adobe's own font library and auto shown in all your adobe app linked to your CC account, but most of their font is linked with account and adobe app, once out of their circle, it is not editable.
 +  * Suitcase Fusion: (paid app for win,mac): allow client/project based font manage: https://www.extensis.com/suitcase-fusion/
 +====== 2022 OS X 12.1 Monterey ======
 +
 +**Problem: Stop Music.app keeps popping up and remove Music app from menubar**
 +  * Stop music app: go to Music App, > under main menu > Preference : General tab > notification: off (when song change)
 +  * remove music app from menubar: go System Preference > Dock and menu bar > Now Playing item: off (show in menu bar)
 +
 +====== 2020 OS X 10.15 Catalina ======
 +
 +**Problem: USB Ethernet device Drive installation**
 +  * for "UGREEN USB RJ45 Ethernet Adapter with USB Hub" (Model: 20265)
 +  * need to download lastest mac os driver form website, at the bottom of page: https://www.ugreen.com/product/UGREEN_USB_RJ45_Ethernet_Adapter_with_USB_Hub_and_Gigabit_Ethernet_Port_Support-en.html
 +  * install the dmg as normal, restart computer, then go Security panel > allow the ax88179 driver to load
 +  * now go network > you should see that AX88179 devince in the left panel
 +
 +**Problem: Wacom Driver installation security error prevent wacom working**
 +
 +{{:techwiki:osx:wacom_mac_drive_error.png?400|}}
 +
 +  * Solution:
 +    - after install the wacom driver as normal, ref: https://www.wacom.com/en-th/support?guideTitle=Is-there-a-driver-for-Mac-OS-10.15-Catalina%3F&guideId=015-916
 +    - in System Security panel > Privacy, use right side + sign to add /Library/PrivilegedHelperTools/com.wacom.IOManager file into Accessibility and Input Monitoring side tab \\ {{:techwiki:osx:wacom_mac_drive_error_fix_1.png?400|}} \\ {{:techwiki:osx:wacom_mac_drive_error_fix_2.png?400|}} \\ {{:techwiki:osx:wacom_mac_drive_error_fix_3.png?400|}}
 +
 +**Problem: make mouse extra button works**
 +  * most likely you need to install that device driver from original mouse maker site, and add the mouse device into Security panel > input part to allow the mouse driver to load, like above wacom setup
 +====== 2015 OS X 10.9 Mavericks ======
 +
 +**system setup**
 +  * initial disk backup
 +
 +**Working with Windows**
 +
 +  * windows NTFS disk write:
 +    * http://www.macbreaker.com/2014/06/how-to-enable-writing-to-ntfs-hard.html
 + 
 +**Reference**
 +
 +<code>
 +http://www.imore.com/how-set-and-restore-time-machine-backup
 +http://www.neowin.net/forum/topic/1060844-norton-ghost-type-software-for-mac/
 +https://discussions.apple.com/thread/5630862
 +http://forums.whirlpool.net.au/archive/2210269
 +http://www.macworld.com/article/2056561/how-to-make-a-bootable-mavericks-install-drive.html
 +http://www.macworld.com/article/2151706/create-a-bootable-mavericks-install-drive-for-newer-macs.html
 +http://www.apple.com/support/macbookpro/backup_recovery/
 +http://support.apple.com/kb/HT5943
 +http://support.apple.com/kb/HT4848
 +http://support.apple.com/kb/HT5911
 +http://support.apple.com/kb/HT4718
 +</code>
 +
 +====== 2010 OS X Leopard ======
 +
 +**How to save Mac OS X updates locally from Software Update tool**
 +
 +  * Method 1 (not working): use Apple built-in Software update from Apple Logo > Software Update
 +    - click show details in the Pop-up window
 +    - check the one you want
 +    - go to Update menu > Download only, then it should be at Download folder
 +  * Method 2: the terminal command - "softwareupdate --list" 
 +    - open terminal, type "softwareupdate --list"
 +    - wait for a while for it to show the list, you will see some item like <code>
 +* GBExtraContent-1.0
 +GarageBand Instruments and Apple Loops (1.0), 1170290K [recommended]
 +</code>
 +    - the name after the star sign is the name, like "GBExtraContent-1.0"
 +    - to download the one you want, type in terminal "softwareupdate --download thePackageNameYouFound"
 +    - then it will start downloading, and it will tell where it stores in the end
 +    - Generally, it will be at /Library/updates/
 + 
 +
 +**Mac system customize**
 +
 +  * bash(with mac binary tools) + Spark (app) + AppleScript
 +
 +  * screen capture customize
 +    * no shadow from capture <code>defaults write com.apple.screencapture disable-shadow -bool true</code><code>defaults write com.apple.screencapture disable-shadow -bool false</code>
 +    * custom capture format <code>defaults write com.apple.screencapture type png #format:png,pdf,jpg,gif,tif,bmp,tga</code>
 +    * custom save location <code>defaults write com.apple.screencapture location ~/Desktop #cust path</code>
 +    * custom save name (no recommended) http://hints.macworld.com/article.php?story=20091228142521881<code>defaults write com.apple.screencapture name "txt"</code>
 +    * dashboard on desktop <code bash>defaults write com.apple.dashboard devmode YES</code>
 +
 +  * enable root user <code bash>sudo passwd root</code>
 +    * ref: http://hints.macworld.com/article.php?story=20010324095804436
 +
 +
 +**How to Enable Sharing Feature**
 +  * connect windows share folder
 +    * go to Finder > Go menu > Connect to Server > at the dialog, enter <code>smb://the_computer_name/
 +smb://192.168.56.1 # ip address
 +</code>
 +
 +
 +**Mac system shortcut**
 +
 +^ turn off screen | ctrl+shift+eject | 
 +
 +
 +====== Mac Hardware Guide ======
 +
 +  * macbook pro 2012 upgrade process:
 +    * ram: http://www.youtube.com/watch?v=SPjvXoOIxqU
 +    * hard drive: http://www.youtube.com/watch?v=ShUAGwtVMHg
 +    * optical drive: http://www.youtube.com/watch?v=ds_6IET3siE
 +
 +
 +====== Windows App for talking to Mac ======
 +
 +  * [[http://www.diskinternals.com/linux-reader/|DiskInternals Linux Reader]]: reader for Ext2/3/4, HFS format disk
 +  * [[http://www.mediafour.com/products/macdrive|Mediafour’s MacDrive]]: reader and writer for HFS format disk (not free)
 +  * [[http://www.catacombae.org/hfsx.html|HFSExplorer]]: reader for HFS format disk and DMG files
 +
 +
 +Linux can natively read and write on NTFS, FAT format disk. \\ 
 +Mac can natively read NTFS, and read and write on FAT format disk. \\ 
 +Mac can use ntfs-3g tool to write on NTFS disk, but not recommended, as it's slow and unstable.