Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
boberito authored Apr 24, 2017
1 parent 2df6a63 commit 2c019c4
Show file tree
Hide file tree
Showing 69 changed files with 1,172 additions and 0 deletions.
7 changes: 7 additions & 0 deletions AppleSetupDone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

if [ -f "/var/db/.AppleSetupDone"]; then
exit 0
else
touch /var/db/.AppleSetupDone
fi
103 changes: 103 additions & 0 deletions CleanUpSmartBoard.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#!/bin/sh

# CleanUp.sh
# SMART TS Tools

killall -9 "Marker"
killall -9 "Aware"
killall -9 "SMART Ink"
killall -9 "FloatingTools"
killall -9 "SMARTBoardService"
killall -9 "SMART Board Tools"
killall -9 "Board Tools"
killall -9 "Response Desktop Menu"
killall -9 "Desktop Menu"
killall -9 "Teacher Tools"
killall -9 "ResponseSoftwareService"
killall -9 "ResponseHardwareService"
killall -9 "Notebook"
killall -9 "Recorder"
killall -9 "Welcome"
killall -9 "SMART Board Control Panel"
killall -9 "SMART Settings"
killall -9 "SMART Product Update"
killall -9 "Install Manager"
killall -9 "Screen Capture"
killall -9 "SMARTFirmwareUpdater"
killall -9 "VantageService"

#Remove Preferences
rm -rf /Library/Preferences/com.smart*
rm -rf /Library/Preferences/.com.smart*
rm -rf /Library/Preferences/FLEXnet\ Publisher
rm -rf /Users/Shared/Library/Preferences/com.smart*
rm -rf /Users/Shared/Library/Preferences/.com.smart*
rm -rf ~/Library/Preferences/com.smart*
rm -rf ~/Library/Preferences/SmartSync

#Remove Receipts
rm -rf /Library/Receipts/Gallery\ Setup.pkg
rm -rf /Library/Receipts/SMART*
rm -rf /Library/Receipts/Notebook*
rm -rf /Library/Receipts/Adobe*
rm -rf /Library/Receipts/Senteo*

#Remove Main Applications
rm -rf /Applications/SMART*
rm -rf /Applications/Notebook*
rm -rf /Applications/Response*
rm -rf /Applications/Senteo*
rm -rf /Applications/Gallery*

#Remove Remaining files
rm -rf /Library/Application\ Support/SMART*
rm -rf /Library/Application\ Support/FLEXnet\ Publisher
rm -rf /Library/Frameworks/com.smart*
rm -rf /Library/Frameworks/Senteo*
rm -rf /Library/Frameworks/WebInterface*
rm -rf ~/Library/Application\ Support/SMART*
rm -rf ~/Library/Application\ Support/MathType\ \<MajVersion\>\ Toolbar.eql
rm -rf /System/Library/Extensions/SMART*
rm -rf /System/Library/Extensions/Senteo.kext
rm -rf ~/Documents/SMART*
rm -rf ~/Documents/LabVIEW*
rm -rf ~/Documents/My\ Notebook\ Content

#Remove Temp files and folders
rm -rf ~/Library/Caches/Teacher\ Tools
rm -rf ~/Library/Caches/TemporaryItems/SMART*
rm -rf ~/Library/Caches/com.smarttech*
rm -rf ~/Library/Caches/TemporaryItems/NBK*
rm -rf ~/Library/Caches/Notebook*
rm -rf /Library/Caches/Gallery\ Setup
rm -rf ~/Library/Caches/Gallery\ Setup
rm -rf ~/Library/Caches/Gallery*
rm -rf ~/.NBadminMode
rm -rf ~/MySMARTContent

#Remove Additional
rm -rf /private/tmp/SMARTBoardTools*
rm -rf /Library/Caches/com.smartech.*
rm -rf /var/root/Library/Preferences/com.smarttech.*
rm -rf /private/var/root/Library/Preferences/com.smarttech.*
rm -rf /Users/Shared/Library/Preferences/com.smarttech.*
rm -rf /Library/StartupItems/Senteo*
rm -rf /Library/Receipts/Senteo*
rm -rf /Library/StartupItems/ResponseHardwareService
rm -rf /Library/StartupItems/Senteo*
rm -rf /Senteo*
rm -rf /System/Library/PreferencePanes/Ink.prefPane
rm -rf /Library/PreferencePanes/SMART\ Board.prefPane
rm -rf /etc/launchd.conf
rm -rf ~/Library/Application\ Support/SMART*
rm -rf /~/.config/SMART*
rm -rf /Library/StartupItems/SMART*
rm -rf /SMART*
rm -rf /Library/Frameworks/SMART*
rm -rf /Library/Logs/SMART*
rm -rf /System/Library/Extensions/Response.kext


#OSX 10.6 new Receipt removal
pkgutil --pkgs="com.smarttech.*" | while read line; do pkgutil --forget "$line"; done

3 changes: 3 additions & 0 deletions Clear Waiting Room.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm -rf /Library/Application\ Support/JAMF/Waiting\ Room/*
5 changes: 5 additions & 0 deletions Crashplan Clean up - Stop start cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist
rm -rf /Library/Caches/CrashPlan/*
launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
111 changes: 111 additions & 0 deletions De-St. Andrews-ize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
#!/bin/sh

nvram -d boot-args
nvram -c
/usr/local/bin/jamf setOFP -mode none

jamf policy -event fwpsswd

#User stuff like upgrading permissions and remove from AD
getUser=`ls -l /dev/console | awk '{ print $3 }'`
dseditgroup -o edit -a $getUser -T group admin
dsconfigad -force -remove -u johnnynobody -p nopassword

#get rid of apps
jamf policy -event uninstallCP

/Library/Application\ Support/CrashPlan/Unistall.app/Contents/Resources/unistall.sh
sleep 2
rm -rf /Library/Application\ Support/CrashPlan
rm -rf /Applications/CrashPlan.app


#byebyeOpenDNS

launchctl remove com.opendns.osx.RoamingClientMenubar
launchctl remove com.opendns.osx.RoamingClientConfigUpdater
launchctl remove com.opendns.osx.RoamingClientConfigUpdater

sleep 5

for i in '/Library/LaunchDaemons/com.opendns.osx.RoamingClientConfigUpdater.plist' '/Library/LaunchAgents/com.opendns.osx.RoamingClientMenubar.plist' '/Applications/OpenDNS Roaming Client' '/ Library/Application Support/OpenDNS Roaming Client' '/usr/local/sbin/dnscrypt-proxy' '/usr/local/share/man/man8/dnscrypt-proxy.8' '/var/lib/data/opendns' '/usr/local/lib/dnscrypt-proxy'
do rm -fr \"$i\"

done;

killall RoamingClientMenubar
killall dnscrypt-proxy

rm -rf /Library/LaunchAgents/com.opendns.osx.RoamingClientMenubar.plist
rm -rf /Library/LaunchDaemons/com.opendns.osx.RoamingClientConfigUpdater.plist
rm -rf /Library/Application\ Support/OpenDNS\ Roaming\ Client
rm -rf /usr/local/lib/dnscrypt-proxy
rm -rf /Applications/OpenDNS\ Roaming\ Client/

pkgutil --forget com.opendns.osx.RoamingClient



#peace out dyknow

launchctl unload /Library/LaunchAgents/com.dyknow.monitor.plist
launchctl remove com.dyknow.monitor.plist
launchctl unload /Library/LaunchDaemons/com.dyknow.update.plist
launchctl remove com.dyknow.update.plist

ps ax | grep "/Applications/.cloud/DyKnow.app/Contents/MacOS/DyKnow" | awk '{print $1}' | xargs kill -9 2> /dev/null
killall DyKnow

rm -rf /Library/.dyknow
rm -rf "/Library/Application Support/.dyknow"
rm -rf "/Library/Application Support/DyKnow"
rm -rf /Library/LaunchAgents/com.dyknow.monitor.plist
rm -rf /Library/LaunchDaemons/com.dyknow.update.plist

rm -rf /Applications/DyKnow.app
rm -rf /Applications/DyKnowLogSender.app

rm -rf /Applications/.cloud




rm -rf /Applications/CrashPlan.app
rm -rf /Applications/Inspiration\ 9
rm -rf /Applications/Kidspiration\ 3
rm -rf /Applications/SAM\ Animation.app
rm -rf /Applications/Securexam
rm -rf /Applications/ERB\ Secure\ Browser.app
rm -rf /Applications/Adobe*
rm -rf /Applications/Zotero.app

jamf policy -event removeOffice2011

ps ax | grep "/Applications/Microsoft Word.app" | awk '{print $1}' | xargs kill -9 2> /dev/null
ps ax | grep "/Applications/Microsoft Excel.app" | awk '{print $1}' | xargs kill -9 2> /dev/null
ps ax | grep "/Applications/Microsoft PowerPoint.app" | awk '{print $1}' | xargs kill -9 2> /dev/null
ps ax | grep "/Applications/Microsoft Outlook.app" | awk '{print $1}' | xargs kill -9 2> /dev/null

rm -rf /Library/Preferences/com.microsoft.office.licensingV2.plist
rm -rf $HOME/Library/Group\ Containers/UBF8T346G9.Office/com.microsoft.Office365.plist
rm -rf $HOME/Library/Group\ Containers/UBF8T346G9.Office/com.microsoft.e0E2OUQxNUY1LTAxOUQtNDQwNS04QkJELTAxQTI5M0JBOTk4O.plist
rm -rf $HOME/Library/Group\ Containers/UBF8T346G9.Office/e0E2OUQxNUY1LTAxOUQtNDQwNS04QkJELTAxQTI5M0JBOTk4O


/usr/bin/security delete-internet-password -s 'msoCredentialSchemeADAL' 2> /dev/null 1> /dev/null
/usr/bin/security delete-internet-password -s 'msoCredentialSchemeLiveId' 2> /dev/null 1> /dev/null


sleep 5

#bye Q, nice knowing you
#dscl . -delete /Users/q
#rm -rf /Users/q
sysadminctl -deleteUser q

sleep 3

killall "Self Service"

#the final step. Remove jamf
/usr/local/bin/jamf removeFramework
3 changes: 3 additions & 0 deletions Detect Network.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

networksetup -detectnewhardware
13 changes: 13 additions & 0 deletions Disable Flash Notifications - Updating.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

if [ ! -d /Library/Application\ Support/Macromedia ]; then
mkdir /Library/Application\ Support/Macromedia
chown root:admin /Library/Application\ Support/Macromedia
chmod 755 /Library/Application\ Support/Macromedia
fi

cat <<EOT > /Library/Application\ Support/Macromedia/mms.cfg
AutoUpdateDisable=1
SilentAutoUpdateEnable=0
EOT

11 changes: 11 additions & 0 deletions Disable Printer Sharing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# This script disables printer sharing on a designated printer.

printer_name="$4"

lpadmin -p "$printer_name" -o printer-is-shared=false

echo "Print Sharing for $printer_name has been disabled."

exit 0
7 changes: 7 additions & 0 deletions Download newest CrashPlan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

curl http://saes-cp-a.saes.org:4280/download/CrashPlanPROe_Mac.dmg > /var/tmp/CP.dmg
hdiutil attach /var/tmp/CP.dmg
installer -pkg /Volumes/CrashPlanPROe/Install\ CrashPlanPROe.pkg -target /
hdiutil detach /Volumes/CrashPlanPROe/
rm -rf /var/tmp/CP.dmg
11 changes: 11 additions & 0 deletions Dropbox Script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

mkdir /tmp/getmacapps_temp
cd /tmp/getmacapps_temp

# Installing Dropbox
curl -L -o Dropbox.dmg "https://www.dropbox.com/download?plat=mac"
hdiutil mount -nobrowse Dropbox.dmg
rsync -vaz "/Volumes/Dropbox Installer/Dropbox.app/" /Applications/Dropbox.app
hdiutil unmount "/Volumes/Dropbox Installer"
rm Dropbox.dmg
4 changes: 4 additions & 0 deletions Dyknow Log Sender.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh


sudo -u $3 /Applications/DyKnowLogSender.app/Contents/MacOS/DyKnowLogSender -vanity "$4" -notes "$3"
3 changes: 3 additions & 0 deletions Fix Audacity LAME Libraries.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

chmod -R 755 /usr/local/lib/
12 changes: 12 additions & 0 deletions Fix Chrome.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

getUser=`ls -l /dev/console | awk '{ print $3 }'`
UserHome="/Users/$getUser"

ps ax | grep "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" | awk '{print $1}' | xargs kill -9 2> /dev/null
mv "$UserHome/Library/Application Support/Google/Chrome/Default/Bookmarks" $UserHome/Bookmarks
rm -rf "$UserHome/Library/Application Support/Google/Chrome"
mkdir -p "$UserHome/Library/Application Support/Google/Chrome/Default"
mv $UserHome/Bookmarks "$UserHome/Library/Application Support/Google/Chrome/Default/Bookmarks"
chmod -R 700 "$UserHome/Library/Application Support/Google/Chrome/"
chown -R $getUser "$UserHome/Library/Application Support/Google/Chrome/"
10 changes: 10 additions & 0 deletions Garage Band Extras.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

curl http://downloads.apple.com/static/gb/gb11bc/GarageBandBasicContent.pkg > /GarageBandBasicContent.pkg
curl http://audiocontentdownload.apple.com/lp9_ms2_content_2011/MGBContentCompatibility.pkg > /MGBContentCompatibility.pkg

installer -pkg /GarageBandBasicContent.pkg -target /
installer -pkg /MGBContentCompatibility.pkg -target /

#rm -rf /GarageBandBasicContent.pkg
#rm -rf //MGBContentCompatibility.pkg
19 changes: 19 additions & 0 deletions Google Drive script.sh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

mkdir /tmp/getmacapps_temp
cd /tmp/getmacapps_temp

curl -L -o googledrive.dmg https://dl.google.com/drive/installgoogledrive.dmg

hdiutil mount googledrive.dmg -nobrowse -mountpoint "/Volumes/Install Google Drive"
cp -Rp /Volumes/Install\ Google\ Drive/Google\ Drive.app /Applications/Google\ Drive.app
hdiutil unmount "/Volumes/Install Google Drive"
rm googledrive.dmg
killall Finder
open "/Applications/Google Drive.app" &

# CurrentUser=`ls -l /dev/console | awk '{ print $3 }'`
# dscl . -append /Groups/admin GroupMembership $CurrentUser
# open "/Applications/Google Drive.app"/
# sleep 180
# dscl . -delete /Groups/admin GroupMembership $CurrentUser
20 changes: 20 additions & 0 deletions Google Voice & Video.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

mkdir /tmp/downloads
cd /tmp/downloads



curl -O https://dl.google.com/googletalk/googletalkplugin/GoogleVoiceAndVideoSetup.dmg


hdiutil attach GoogleVoiceAndVideoSetup.dmg -nobrowse -noverify -noautoopen


installer -dumplog -verbose -pkg /Volumes/GoogleVoiceAndVideoAccelSetup*/Google\ Voice\ and\ Video.pkg -target "/"


hdiutil eject -force /Volumes/GoogleVoiceAndVideo*


rm -rf /tmp/downloads/GoogleVoiceAndVideoSetup.dmg
5 changes: 5 additions & 0 deletions HelloDash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

getUser=`ls -l /dev/console | awk '{ print $3 }'`
defaults write /Users/$getUser/Library/Preferences/com.apple.dashboard mcx-disabled -boolean NO
sudo -u $getUser killall Dock
6 changes: 6 additions & 0 deletions HideQAccount.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

#delete current user's desktop items
#WARNING, THIS WILL DELETE EVERYTHING

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add q
6 changes: 6 additions & 0 deletions Install FileMaker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh


/usr/sbin/installer -pkg "/var/tmp/Filemaker/FileMaker Pro 15.pkg" -target /

rm -rf /var/tmp/Filemaker
14 changes: 14 additions & 0 deletions Install Firmware Password Utility.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh


/usr/sbin/diskutil mount Recovery\ HD
/usr/bin/hdiutil attach -quiet /Volumes/Recovery\ HD/com.apple.recovery.boot/BaseSystem.dmg
if [ -f /Volumes/Mac\ OS\ X\ Base\ System/Applications/Utilities/Firmware\ Password\ Utility.app/Contents/Resources/setregproptool ]; then
cp /Volumes/Mac\ OS\ X\ Base\ System/Applications/Utilities/Firmware\ Password\ Utility.app/Contents/Resources/setregproptool /Library/Application\ Support/JAMF/bin/
/usr/bin/hdiutil detach /Volumes/Mac\ OS\ X\ Base\ System
else
cp /Volumes/OS\ X\ Base\ System/Applications/Utilities/Firmware\ Password\ Utility.app/Contents/Resources/setregproptool /Library/Application\ Support/JAMF/bin/
/usr/bin/hdiutil detach /Volumes/OS\ X\ Base\ System
fi

/usr/sbin/diskutil unmount Recovery\ HD
Loading

0 comments on commit 2c019c4

Please sign in to comment.