Set Safari Homepage

There are many ways to set the home page on OSX, there are a few examples that may help.

The first scenario would be if you want to change the homepage on devices that have already been deployed out to your environment. I use the unix command functionality within Apple remote desktop.

Screen Shot 2016-05-11 at 11.33.38

defaults write ~/Library/Preferences/com.apple.Safari HomePage -string https://t21drl.co.uk

If you wish to set the home page before they devices are deployed you need to change the com.apple.safari.plst file located in Library/Preferences

Screen Shot 2016-05-11 at 11.19.54

I first set the home page in safari and then copy out the plist from the location above, once copied I double check any other settings using Xcode.

Screen Shot 2016-05-11 at 11.16.28

Screen Shot 2016-05-11 at 11.18.56.png

Next I copy the plist over to the deploy studio share and then use the copy command in the workflow to replace the original com.apple.Safari.Plist

Screen Shot 2016-05-11 at 11.20.55

The result is the default home page for any new users will be the one set in the plist.

 

 

Sophos AV automated install

Deploying Sophos Enterprise Anti-Virus in older versions was fairly simple as it came in a nice package format so worked fine with deploy studio and or Apple remote desktop, since then version 9 now comes in the form of a .APP installation which isn’t natively supported in deploy studio or Apple remote desktop . Due to this I’ve found the easiest way is to make a scripted package install.

Firstly you will need to find you and then copy the setup files from your Sophos sever, the default location is \\yourserver\SophosUpdate\CIDs\S000\ESCOSX

Once copied over to a MAC you will need to open terminal as Admin

Then type in cd /desktop/ESCOSX/Sophos\ Installer.app/Contents/MacOS

Note “desktop” is where my ESCOSX folder is stored.

2

Then type in the following

./CreateUpdatePreconfig

3

And then

sudo ./CreateUpdatePreconfig -PrimaryServerType 2 -PrimaryServerUserName MyUserName -PrimaryServerPassword MyPassword -PrimaryServerURL smb://ServerName/SophosUpdate/CIDS/S000/ESCOSX

change the highlight red text to your Sophos configuration.

4

Side note if you have any special characters try quoting.

At this stage I would test by installing the sophos install.app and checking the preferences has changed to the above.

Next we need to download and or install an application called Packages from the address below.

http://s.sudre.free.fr/Software/Packages/about.html

open the newly installed application select RAW package and give the project a name and directory to wish you save the project

under setting unselect require admin password for installation.

next copy he Sophos install.app ad Sophos installer components into the addition resources.

7

we need to create a scripted install, if you copy the following and name it something like sophosinstall.sh the important part being .sh

#!/bin/bash

 

LOGGER=”/usr/bin/logger”

 

# Determine working directory

install_dir=`dirname $0`

 

# Install Sophos Anti-Virus

 

$install_dir/”Sophos Installer.app/Contents/MacOS/tools/InstallationDeployer” –install

 

exit 0

then add this file to the post installation.

Lastly select build and then copy he pkg file from the directory and test.

Once your happy it installs correctly with the Sophos Enterprise sever details you can add it to your deploy studio workflow or install over Apple remote desktop.

8