mirror of
https://github.com/tommytran732/macOS-Setup-Script
synced 2024-11-08 03:41:34 -05:00
Compare commits
1 Commits
9b0e1f833b
...
dd4ee3fef4
Author | SHA1 | Date | |
---|---|---|---|
dd4ee3fef4 |
@ -1,4 +1,3 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
# shellcheck disable=SC1071
|
|
||||||
|
|
||||||
echo 'butane="docker run -i --rm --pull always quay.io/coreos/butane:release --pretty --strict <"' >> ~/.zshrc
|
echo 'butane="docker run -i --rm --pull always quay.io/coreos/butane:release --pretty --strict <"' >> ~/.zshrc
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
# shellcheck disable=SC1071
|
|
||||||
|
|
||||||
# Comment this line out if you don't have Touch ID
|
# Comment this line out if you don't have Touch ID
|
||||||
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
|
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
|
||||||
@ -16,6 +15,9 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
|||||||
#Enable Safari debug menu
|
#Enable Safari debug menu
|
||||||
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
||||||
|
|
||||||
|
# Disable cupsd
|
||||||
|
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||||
|
|
||||||
#Install Brew
|
#Install Brew
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/$(USERS)/.zprofile
|
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/$(USERS)/.zprofile
|
||||||
@ -44,4 +46,4 @@ sudo chmod 744 '/Library/Tomster Corporation/scripts/apply_prefs.sh'
|
|||||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
||||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
||||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/main/etc/Library/LaunchDaemons/io.tommytran.prefs.plist | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/main/etc/Library/LaunchDaemons/io.tommytran.prefs.plist | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
||||||
sudo launchctl load -w /Library/LaunchDaemons/io.tommytran.prefs.plist
|
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
# shellcheck disable=SC1071
|
|
||||||
|
|
||||||
/bin/sleep 5
|
/bin/sleep 5
|
||||||
/bin/cp -r '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences/'
|
/bin/cp -r '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences/'
|
@ -1,6 +1,3 @@
|
|||||||
#!/bin/zsh
|
|
||||||
# shellcheck disable=SC1071
|
|
||||||
|
|
||||||
echo "gpgconf --launch gpg-agent" >> ~/.zshrc
|
echo "gpgconf --launch gpg-agent" >> ~/.zshrc
|
||||||
echo "export SSH_AUTH_SOCK=$HOME/.gnupg/S.gpg-agent.ssh" >> ~/.zshrc
|
echo "export SSH_AUTH_SOCK=$HOME/.gnupg/S.gpg-agent.ssh" >> ~/.zshrc
|
||||||
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
|
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
# shellcheck disable=SC1071
|
|
||||||
|
|
||||||
# Comment this line out if you don't have Touch ID
|
# Comment this line out if you don't have Touch ID
|
||||||
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
|
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo | sudo tee /etc/pam.d/sudo
|
||||||
@ -16,6 +15,9 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
|||||||
# Enable Safari debug menu
|
# Enable Safari debug menu
|
||||||
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
||||||
|
|
||||||
|
# Disable cupsd
|
||||||
|
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||||
|
|
||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
# Setup Edge Enterprise Policies
|
# Setup Edge Enterprise Policies
|
||||||
@ -25,4 +27,4 @@ sudo chmod 744 '/Library/Tomster Corporation/scripts/apply_prefs.sh'
|
|||||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
||||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
||||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/main/etc/Library/LaunchDaemons/io.tommytran.prefs.plist | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/main/etc/Library/LaunchDaemons/io.tommytran.prefs.plist | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
||||||
sudo launchctl load -w /Library/LaunchDaemons/io.tommytran.prefs.plist
|
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist
|
Loading…
Reference in New Issue
Block a user