1
0
mirror of https://github.com/tommytran732/macOS-Setup-Script synced 2024-09-16 14:14:42 -04:00

Compare commits

..

1 Commits

Author SHA1 Message Date
dd4ee3fef4
Disable cupsd
Signed-off-by: Tommy <contact@tommytran.io>
2024-03-30 16:37:12 -07:00
5 changed files with 8 additions and 9 deletions

View File

@ -1,4 +1,3 @@
#!/bin/zsh
# shellcheck disable=SC1071
echo 'butane="docker run -i --rm --pull always quay.io/coreos/butane:release --pretty --strict <"' >> ~/.zshrc

View File

@ -1,5 +1,4 @@
#!/bin/zsh
# shellcheck disable=SC1071
# 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
@ -16,6 +15,9 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
#Enable Safari debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu 1
# Disable cupsd
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
#Install Brew
/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
@ -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/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
sudo launchctl load -w /Library/LaunchDaemons/io.tommytran.prefs.plist
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist

View File

@ -1,5 +1,4 @@
#!/bin/zsh
# shellcheck disable=SC1071
/bin/sleep 5
/bin/cp -r '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences/'

View File

@ -1,6 +1,3 @@
#!/bin/zsh
# shellcheck disable=SC1071
echo "gpgconf --launch gpg-agent" >> ~/.zshrc
echo "export SSH_AUTH_SOCK=$HOME/.gnupg/S.gpg-agent.ssh" >> ~/.zshrc
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf

View File

@ -1,5 +1,4 @@
#!/bin/zsh
# shellcheck disable=SC1071
# 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
@ -16,6 +15,9 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
# Enable Safari debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu 1
# Disable cupsd
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
umask 022
# 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/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
sudo launchctl load -w /Library/LaunchDaemons/io.tommytran.prefs.plist
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist