Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

展示するときに、必要な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版

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした