#!/bin/bash # Dieses Script dient dazu ein paar "Standardeinstellungen" zu vereinfachen. # Die jeweiligen Erklärungen der einzelnen Abschnitte steht über den jeweiligen Befehl! # Kopiert die die "Connect" Commands in Shared und verschiebt das Script connect_edv auf dem Desktop des Administrators # Mac OS macht via Script Probleme mit CP und den Verzeichnis # (es startet den cp Befehl nicht im Verzeichnis in dem man gerade dieses Script startet) BASEDIR=$(dirname "$0") file1=$(echo "$BASEDIR"/Netzwerklaufwerke/connect_*) FF_Profile=$(echo "$BASEDIR"/Firefox) cp $file1 /Users/Shared/ mv /Users/Shared/connect_edv.command /Users/$USER/Desktop/ # Kopiert das Firefox Profil auf die Festplatte und sorgt dafür das Einstellungen und Lesezeichen gesetzt sind. echo "Kopiere Firefox Ordner" cp -R $FF_Profile ~/Library/Application\ Support/ ############################################################################### # Allow ALL to install Printer! # ############################################################################## #??? sudo -v ???? Ins Script einbinden? sudo /usr/bin/security authorizationdb write system.preferences.printing allow sudo /usr/bin/security authorizationdb write system.print.operator allow sudo /usr/sbin/dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin sudo /usr/sbin/dseditgroup -o edit -n /Local/Default -a everyone -t group _lpadmin ############################################################################### # FINDER SETTINGS # ############################################################################## # Use list view in all Finder windows by default ## Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv` defaults write com.apple.Finder FXPreferredViewStyle -string "Nlsv" # Sorgt dafür das das die "Pathbar" immer angezeigt wird (klappt erst nach neustart!) defaults write com.apple.finder ShowPathbar -bool YES # Statusbar einblenben defaults write com.apple.finder ShowStatusBar -bool true # (Externe) Festplatten und Server auf dem Desktop anzeigen lassen defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true defaults write com.apple.finder ShowMountedServersOnDesktop -bool true defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true # Show battery percentage defaults write com.apple.menuextra.battery ShowPercent -string "YES" # Avoid creating .DS_Store files on network volumes defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true # Empty Trash securely by default defaults write com.apple.finder EmptyTrashSecurely -bool true ### NOT CONFIRMED YET! ### # Prevent Photos from opening automatically when devices are plugged in defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true # Prevent iTunes from opening automatically when devices are plugged in defaults write com.apple.iTunesHelper ignore-devices 1 # Save to disk by default - not to iCloud defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false # Prevent Time Machine from prompting to use new hard drives as backup volume defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true ############################################################################### # Dock & hot corners # ############################################################################## # Enable highlight hover effect for the grid view of a stack (Dock) defaults write com.apple.dock mouse-over-hilte-stack -bool true # Set the icon size of Dock items to 36 pixels defaults write com.apple.dock tilesize -int 42 # Enable spring loading for all Dock items defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true # Show indicator lights for open applications in the Dock defaults write com.apple.dock show-process-indicators -bool true # Speed up Mission Control animations defaults write com.apple.dock expose-animation-duration -float 0.1 # Remove the auto-hiding Dock delay defaults write com.apple.Dock autohide-delay -float 0 # Remove the animation when hiding/showing the Dock defaults write com.apple.dock autohide-time-modifier -float 0 # Automatically hide and show the Dock defaults write com.apple.dock autohide -bool true # Make Dock icons of hidden applications translucent defaults write com.apple.dock showhidden -bool true # Wipe all (default) app icons from the Dock defaults write com.apple.dock persistent-apps -array # Minimise windows into application icon defaults write com.apple.dock minimize-to-application -bool true # Automatically hide and show the Dock defaults write com.apple.dock autohide -bool true # Show recent applications in Dock defaults write com.apple.dock show-recents -bool false # Add Apps - Requieres Dockutil dockutil --no-restart --add "/Applications/Firefox.app/" killall Dock # Hot corners # Top left screen corner -- Mission Control defaults write com.apple.dock wvous-tl-corner -int 2 defaults write com.apple.dock wvous-tl-modifier -int 0 # Top right screen corner -- Desktop defaults write com.apple.dock wvous-tr-corner -int 4 defaults write com.apple.dock wvous-tr-modifier -int 0 killall Finder ############################################################################### # Terminal # ############################################################################## # UNTESTED - Schließt Terminalfenster wenn der Befehl "exit" ausgeführt worden ist. defaults write com.apple.terminal shellExitAction -int 0 ############################################################################### # Textedit # ############################################################################## # Use plain text mode for new TextEdit documents defaults write com.apple.TextEdit RichText -int 0 # Open and save files as UTF-8 in TextEdit defaults write com.apple.TextEdit PlainTextEncoding -int 4 defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4 ############################################################################### # Hardware # ############################################################################## # Trackpad # Trackpad: enable tap to click for this user and for the login screen defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true # Enable tap at login as well defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 exit