- Published on
Ghi chú sử dụng MacOS
- Authors
- Name
Table of Contents
Một số kinh nghiệm khi sử dụng MacOS
Cấu hình hệ thống
Tắt hiệu ứng
- Vào biểu tượng
Apple
sau đó
Tăng tốc độ magic trackpad
Apps thường dùng
Tips
Mở trình duyệt với tham số folder profile
- Mở
Microsoft EDGE
từ profile folder tênadmin
open -n -a "Microsoft EDGE" --args --profile-directory=admin
- Mở
Google Chrome
từ profile folder tênadmin
open -n -a "Google Chrome" --args --profile-directory=admin
Mở ứng dụng từ user khác
- Mở trình duyệt
EDGE
từ useradmin
sudo -u admin /Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge
Bật-Tắt GateKeeper
- Check status
spctl --status
- Bật
sudo spctl --master-enable
- Tắt
sudo spctl --master-disable
Bật-Tắt SIP (Chạy từ Recovery Mac)
- Bật
csrutil clear hoặc csrutil enable
- Tắt
csrutil disable
Không tắt SIP, GateKeeper
sudo xattr -cr
[Kéo file cần chạy vào và Enter, sau cr có khoảng trắng]
Bật Trim
Bật tuỳ chọn này với máy chạy SSD
sudo trimforce enable
Sửa lỗi index Spotlight
Cách 1: Dùng terminal
- Bước 1:
sudo mdutil -i off /
- Bước 2:
sudo mdutil -i on /
- Bước 3:
sudo mdutil -E /
Cách 2: Xoá folder cache .Spotlight-V100
sudo rm -rf /.Spotlight-V100
By Pass trial Parallels Desktop
- Chỉ áp dụng trên version: 17.0.1
- Lệnh chạy máy ảo có tên
w10
prlctl start w10
Sau khi chạy xong lệnh thì mở Parallels Desktop lên
Command
Kiểm tra tiến trình ngăn MacOS Sleep
pmset -g assertions
Vào Activity Monitor (nhấn Cmd + Space và nhập Activity Monitor) để tắt chúng.
Tìm ứng dụng đang dùng SecureInput
ioreg -l -w 0 | grep SecureInput
Tìm ra PID
tiếp tục chạy lệnh
sudo kill {PID} PID
Bật tắt Time Machine
- Stop backup Time Machine
sudo tmutil stopbackup
- Disable Time Machine
sudo tmutil disalbe
Truy cập các chế độ MacOS
Chế độ Recovery Nhấn và giữ các phím
Option/Alt-Command-R
hoặcShift-Option/Alt-Command-R
để buộc thiết bị phải khởi động vào Recovery Mode của macOS qua kết nối internet.Truy cập Terminal thông qua Recovery Mode
- Khởi động hệ thống vào Recovery Mode.
- Nhấp vào tùy chọn Utilities.
- Click vào Terminal.
By Pass TTL
sudo sysctl -w net.inet.ip.ttl=65
sudo sysctl -w net.inet6.ip6.hlim=65