#!/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 # Flickschusterlösung! # Mac OS macht via Script Probleme mit CP und den Verzeichnis # (es start CP nicht im Verzeichnis in dem man gerade dieses Script startet) # MUSS GETESTET WERDEN BASEDIR=$(dirname "$0") file1=$(echo "$BASEDIR"/Netzwerklaufwerke/connect_*) folder=$(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 $folder ~/Library/Application\ Support/ ############################################################################### # Allow ALL to install Printer! # ############################################################################## 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 # ############################################################################## # 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 # Festplatte auf dem Desktop anzeigen lassen defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true # Avoid creating .DS_Store files on network volumes defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true # 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" # Empty Trash securely by default defaults write com.apple.finder EmptyTrashSecurely -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 36 # 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 # 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 exit