#!/bin/sh # 自動更新OFF echo "Disable : SystemPreferences -> AppStore -> Automatically check for updates" defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false # 未承認のアプリでも右クリックなく開ける echo "Disable Warning on opening new App." spctl --master-disable # ノーティフィケーションセンターはいらん echo "Disable Notification center." launchctl unload /System/Library/LaunchAgents/com.apple.notificationcenterui.plist # 自動ログインに。 echo "Setup auto login." defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser $(whoami) # リモートマネジメントを許可。sshログインとか # echo "Enable Remote Management." # /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all -allUsers # デスクトップピクチャは黒いものに。ほんとは自分で真っ黒なpng用意するほうがいい。 echo "Change Desctop Pictures" osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Pro Ultra Dark.png"' # 起動時のクラッシュワーニングはいらん echo "Disable crash working on application start." defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false # ウィンドウ復元無効化 echo "Disable resume on start" defaults write -g ApplePersistenceIgnoreState YES # クラッシュレポーターは出さないよ echo "Disable crash reporter" defaults write com.apple.CrashReporter DialogType none # Show all filename extensionsin Finder echo "Show all filename extensions in Finder" defaults write NSGlobalDomain AppleShowAllExtensions -bool true