Added iTerm2 options and headless macos stuff
This commit is contained in:
parent
9f683db1a7
commit
60f583462b
2 changed files with 10 additions and 2 deletions
|
@ -17,11 +17,16 @@ if [ -n "$HEADLESS_INSTALL" ] && [ -z "$SSH_CONNECTION" ] && [ -d /System ] && [
|
||||||
# Source: https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/Cloudflare_CA.crt
|
# Source: https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/Cloudflare_CA.crt
|
||||||
# Source: https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/Cloudflare_CA.pem
|
# Source: https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/Cloudflare_CA.pem
|
||||||
### Ensure certificate installed on macOS
|
### Ensure certificate installed on macOS
|
||||||
logg info '**macOS Manual Security Permission** Requesting security authorization for Cloudflare trusted certificate'
|
logg info 'Downloading Cloudflare_CA.crt from https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/Cloudflare_CA.crt to determine if it is already in the System.keychain'
|
||||||
CRT_TMP="$(mktemp)"
|
CRT_TMP="$(mktemp)"
|
||||||
curl -sSL https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/Cloudflare_CA.crt > "$CRT_TMP"
|
curl -sSL https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/Cloudflare_CA.crt > "$CRT_TMP"
|
||||||
|
security verify-cert -c "$CRT_TMP" > /dev/null 2>&1
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
logg info '**macOS Manual Security Permission** Requesting security authorization for Cloudflare trusted certificate'
|
||||||
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain "$CRT_TMP" && logg success 'Successfully imported Cloudflare_CA.crt into System.keychain'
|
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain "$CRT_TMP" && logg success 'Successfully imported Cloudflare_CA.crt into System.keychain'
|
||||||
|
fi
|
||||||
rm -f "$CRT_TMP"
|
rm -f "$CRT_TMP"
|
||||||
|
|
||||||
# Source: https://apple.stackexchange.com/questions/30238/how-to-enable-os-x-screen-sharing-vnc-through-ssh
|
# Source: https://apple.stackexchange.com/questions/30238/how-to-enable-os-x-screen-sharing-vnc-through-ssh
|
||||||
# To disable, run: sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
|
# To disable, run: sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
|
||||||
# Only enable when computer is not a corporate / work computer
|
# Only enable when computer is not a corporate / work computer
|
||||||
|
|
|
@ -4933,6 +4933,9 @@ softwarePackages:
|
||||||
_home: https://iterm2.com/
|
_home: https://iterm2.com/
|
||||||
_name: iTerm2
|
_name: iTerm2
|
||||||
_app: iTerm.app
|
_app: iTerm.app
|
||||||
|
_post:cask: |
|
||||||
|
echo "Setting iTerm2 options location to Install Doctor Chezmoi location" && defaults write com.googlecode.iterm2 PrefsCustomFolder -string "${XDG_DATA_HOME:-$HOME/.local/share}/chezmoi/home/Library/Preferences/com.googlecode.iterm2.plist"
|
||||||
|
echo "Setting iTerm2 to automatically sync with managed options" && defaults write com.googlecode.iterm2 NoSyncNeverRemindPrefsChangesLostForFile_selection -int 2
|
||||||
ansible:darwin: professormanhattan.iterm2
|
ansible:darwin: professormanhattan.iterm2
|
||||||
cask: iterm2
|
cask: iterm2
|
||||||
nativescript:
|
nativescript:
|
||||||
|
|
Loading…
Reference in a new issue