niu12503 / Note

Some Note

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note

MacOS

Uncheck "Reopen windows when logging back in" by defaults

defaults write com.apple.loginwindow TALLogoutSavesState -bool FALSE

Disable system update

defaults write com.apple.systempreferences AttentionPrefBundleIDs 0

Disable App Store Update Notification

sudo defaults write /Library/Preferences/com.apple.AppStore.plist DisableSoftwareUpdateNotifications -bool TRUE

Delete system file

# Disbale SIP
csrutil disable

# Mount '/' as write
sudo mount -uw /

# Do something
sudo rm -rf /System/Applications/TV.app
sudo rm -rf /System/Applications/Home.app
sudo rm -rf /System/Applications/Books.app
sudo rm -rf /System/Applications/Chess.app
sudo rm -rf /System/Applications/Podcasts.app
sudo rm -rf /System/Applications/Stocks.app
sudo rm -rf /System/Applications/Music.app

# Enable SIP
csrutil enable

Modify user name and folder

  • Create a user as Administrator, like "temp".
  • Login "temp".
  • Change user name and folder.
  • Disable SIP.
  • Use sudo mv <OldFolder> <NewFolder> to rename folder.
  • Enable SIP.
  • Login.
  • Delete user "temp".

About

Some Note


Languages

Language:Shell 41.9%Language:Python 35.7%Language:JavaScript 14.0%Language:Perl 4.6%Language:HTML 3.7%