1# Current version of MacOSX
2sw_vers -productVersion
3
4# Check if XCode Command Line Tools is installed
5xcode-select —install
6# Should return "/usr/bin/xcrun"
7# If there is any problem, try to install XCode from App Store!
8
9# check if running on ARM or Intel
10arch
11# arm64 -> ARM
12# i386 -> Intel (running with Rosetta)
Go to Keyboard Settings and then,
- Should choose "U.S." instead of "U.S. International" because with the latter, we have underline score below special symbols like
"
- For Vietnamese input method, DON'T choose built-in VNese input options. Use
GoTiengVietEVKey instead (Turn off Gatekeeper before installing bysudo spctl —master-disable
. Then check byspctl —status
→ should returnassessments disabled
)! (Because there will be unconfortable underline when we type). - Note 1: If you are going to use Bitwarden (a password manager, recommended), it will prevent sometimes the input method to work normally (including GoTiengViet and EVKey). In this case, you have to turn off Bitwarden (or restart it). 👉 Update 05 Nov 2021: With MacOS 12.1 Beta, it doesn't have this error anymore!
- Note 2: EVKey works better than GoTiengViet (and it's still maintained) in some cases, for example, when you wanna type "thử nghiệm" on the browser address bar, GoTiengViet gives "thuử nghiệm" instead.
- Touch Bar shows: F1, F2, etc Keys.
- Press ... to: Do Nothing.
- Press and hold ... to: Show Control Srip.
- Tick on "Use F1, F2..."
- Click on Customize Control Strip and change. Below are my customization.
1Brightness - Keyboard Brightness — Media — Volume — Screen Lock — Night Shift — Screen Capture — Dictation — Siri
- Map top-left keyboard to backslash/tilde symbols. Install Karabiner-Elements and setting up "non_us_backslash" to "grave_accent_and_tilde (`)". If you don't know the names of some keys, you can use installed Karabiner Viewer.
- Three fingers to drag (choose texts): System Preferences > Accessibility > Pointer Control > Trackpad Options... > Enable dragging (three fingers drag).
- Install
AltTabHyperSwitch (and use⌘
+⇥
which replaces the default method on mac, be careful!!!) to switch between windows (instead of apps) like on Windows/Linux.
- For external keyboard K380: Download and install Logitech Options. Install this to use
F
keys by default. Remark: Don't open Bitwarden while using K380, otherwise, it won't work normally (for example, F keys).
- Setting up printers (if available). You may need Gutenprint for an alternative driver for printers on chip M1. After installing the drivers, turn on your printer (connect to a common wifi or via an usb cable), then System Preferences > Printers & Scanners > Add printer and choose your own printer, don't forget to choose Gutenprint as driver!
- For scanner app: you can use VueScan (paid) if the current version of app doesn't support chip M1 yet!
- For Canon MG2900 printer/scanner + apps: you may need to download and install drivers from this site. A backup files are here. You may find other useful drivers for other types of printers on this site also.
- Change to use black & white only (or color only): System Preferences > Printers & Scanners > Choose the printer > Options & Supplies > Utility > Open Printer Utility > Ink Cartridge Settings > Black Only.
- Scanner app: use Image Capture (built-in app on Mac) or install Canon IJ Scan Utility2.
- Add necessary folder shortcuts to sidebar.
- Add recycle Bin to sidebar:
⇧
+⌘
+.
to show hidden folders > drag Bin folder to sidebar >⇧
+⌘
+.
to hide hidden folders again.
- Customize some options in Preferences.
- Show status bar: View > Show status bar.
Require: the same wifi network!
- On MacOS: System Preferences > Sharing > Tick on "File Sharing" > choose "Shared Folders" > on "Everyon", change to "Write & Read".
- On Linux: Nautilus, click on "Other Locations" > "Networks" > choose the Macbook (and type macos profile password) > choose the shared folders in previous step > Exchange files/folders you want.
Disable Resume in Preview and QuickTime Player
1defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false
2defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false
👉 Note: Screen recording on MacOS.
For creating a gif, use GIPHY Capture (download from App Store).
- Install Viettien (I use version 5.0b for Mac Big Sur chip M1). Alternative dictionaries can be downloaded from this link (I backed it up for personally using).
- Don't forget to open Security & Privacy and click on Open anyway many times!
- Another option is to install Tinhte's dictionary from this link, copy extracted folder (
Tinhe_anh-viet.dictionary
) to/Users/thi/Library/Dictionaries/
. - After installing successfully, open Dictionary app > Preferences... > Tick on the names which are corresponding to the installed/copied dictionaries.
- There are built-in LacViet dictionaries but they are not activated yet, don't forget them!
Check this list.
Install Messenger app (use the version downloaded from the official site, don’t install the version inside the App Store).
If you encounter “Please give permissions to access stored credentials”, open app “Keychain Access”, find “facebook” and “messenger” and remove all founded. Thanks to this thread.
Using
option
+ C
to open the Inspect Element. Open System Settings → search and open “Keyboards” → “Keyboard Shortcuts…” → App Shortcuts → “+” → Brave → Type the name EXACTLY THE SAME as the name in menu (for example "Inspect elements") > Add a custom shortcut. Pro tip: In order to find the name of the action, you can use Search Help (either click "Help" in the menu bar or press
cmd
+ shift
+ /
.Example for Brave: “Inspect Elements” →
ctrl + c
Using QuickTime Player → open the video → Edit → Trim. Then either File → Export As (always in
.mov
format) or cmd
+ S
to save to the current format.Other way:
cmd
+ y
at the position you want to split.- Dropdown terminal with iTerm2. → 👉 Note: Terminal + ZSH
- After updating
1defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
Need to update Xcode Command-line Tools:
1# option 1
2xcode-select —install
3# output:
4xcode-select: note: install requested for command line developer tools
1# option 2 (if option 1 doesn't work)
2# Login + download from webpage
3<https://developer.apple.com/download/more/>
- In case of error in installing Application with
App is Damaged Can’t Be Opened
1xattr -cr /Applications/App_Name.app
Using Sidecar feature to turn your ipad to an external screen. It ==works normally with cable== (you have to "trust" from both sides each other). In the case you cannot use Sidecar via wireless
- Turn on Hardoff on both Mac (in General) and iPad (in General).
- Turn on Bluetooth and Wifi (connect to the same network).
- Turn off file sharing and VPN.
- Reset network setting on your ipad (General > Reset > ...) > restat > connect again to the same network with your Mac > wait 2 minutes > try Sidecar again!
- Best practice: Using sidecar via a usb cable! If using wifi, we have latency with mouse cursor!
- For ones who using mac's usb-c port. A direct hub (with an lightning output to charge ipad) may not work (not sufficient power to charge ipad). However, usign another usb-dock and connect to the hub is working fine. Other words,
- Not working: mac - hub - ipad.
- Working: mac - hub - usb doc - ipad
If you have any problem with the connection, like The share does not exist on the server. Please check the share name, and then try again., make sure the password doesn't contain
@
! (Source)I use 2 external screens. However, chip Apple M1 doesn't support more than 1 external one. That's why we need an adapter (having DisplayLink technology) + to install DisplayLink driver for Mac.
- I use this adapter (Wavlink's USB 3.0 Laptop Docking Station — WL-UG39DK1) because it's the cheapest one I can find in France.
- DisplayLink driver. Note that, sometimes it doesn't support the rotation screen.
- If you use a portable external screen like mine (Asus zenscreen), you have to use DisplayLink driver (and open it).
1# Use spotlight to find the name of the app, eg. "Calendar"
2# Find the bundle identifier of this app by
3osascript -e 'id of app "Calendar"'
4# which returns: com.apple.iCal
5
6# Turn off dark mode
7defaults write com.apple.iCal NSRequiresAquaSystemAppearance -bool Yes
8# Restore setting
9defaults write com.apple.iCal NSRequiresAquaSystemAppearance -bool No
10
11# Restart the app
- Enable to install unknown softwares: Sometimes, you cannot install some app from the internet, just go to System Preferences > Security & Privacy > There will be some warning line at below of "App Store and identified developers", just click "Open anyway"!
- If you have some issue with
.dmg
file like "resource busy", open Disk Utility, then Images > Verify... > Choose the image file you cannot open then click "Verify"!
- Git: install Gitkraken.
- (Optional) Install Hombrew (missing package control for mac).
1# after install, don't forget to add to PATH
2echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/thi/.zprofile
3eval $(/opt/homebrew/bin/brew shellenv) # refresh
4
5# problem with "old" cask
6# instead of
7brew cask something
8# use
9brew install —cask something
- Add gap to Dock (use multiple times)
1defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
- Paste as plain text (Paste and match style) using
cmd
+shift
+v
(for example): System Preferences > Keyboard > Shortcuts > App Shortcuts > + (Add). Now you choose: all apps; menu title: Paste and Match Style; Keyboard Shortcut:cmd
+shift
+v
(choose your own).