16
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macで展示とかするときのdotfiles風な。

Last updated at Posted at 2015-12-08

展示するときに、必要なMacの設定をできるだけ自動化したいなとまとめました。
きっとEl Capitanで動くと思います。

setup_mac_signage.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


実行は、色々変えるので要注意&自己責任で。
このコマンド一発

sudo sh -c "$(curl -fsSL https://git.io/vokPq)"

2015-12-09 追記&修正。contributor @gff02521

関連投稿

Macアプリを開いている間はスリープさせない2行。

Gist版

16
17
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?