mirror of
https://github.com/tommytran732/macOS-Setup-Script
synced 2024-10-29 16:51:32 -04:00
Compare commits
No commits in common. "4a518ea6173b93ae21543dd50a6e0acb4170b745" and "1d00ab35c39178d70d79d0d70f357698c80e6985" have entirely different histories.
4a518ea617
...
1d00ab35c3
@ -13,20 +13,6 @@ done
|
||||
echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
||||
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||
|
||||
# Disable cups
|
||||
sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||
|
||||
# Firewall rules
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setallowsignedapp off
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/libexec/remoted
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/libexec/sharingd
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/libexec/sshd-keygen-wrapper
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/sbin/cupsd
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/sbin/smbd
|
||||
|
||||
# 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
|
||||
|
16
primary.sh
16
primary.sh
@ -15,22 +15,6 @@ sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||
|
||||
umask 022
|
||||
|
||||
# Disable cups
|
||||
sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||
sudo launchctl remove /System/Library/LaunchDaemons/org.cups.cupsd.plist
|
||||
|
||||
# Firewall rules
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setallowsignedapp off
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/bin/python3
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/bin/ruby
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/libexec/remoted
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/libexec/sharingd
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/libexec/sshd-keygen-wrapper
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/sbin/cupsd
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp /usr/sbin/smbd
|
||||
|
||||
# Setup Edge Enterprise Policies
|
||||
sudo mkdir -p '/Library/Tomster Corporation/scripts/' '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/etc/Library/Tomster%20Corporation/apply_prefs.sh | sudo tee '/etc/Library/Tomster Corporation/apply_prefs.sh'
|
||||
|
Loading…
Reference in New Issue
Block a user