Author Archive Dan Ashley

ByDan Ashley

SCRIPT | Install-Box-Drive-Latest

Install Box Drive

Summary

This script will install the latest version of Box Drive.


Script Content

#!/bin/bash
cd "/Library/Application Support/JAMF/tmp"

# Update variables. These shouldn't need to change for each update
pkgname="Box.pkg"
pkglink="https://e3.boxcdn.net/box-installers/desktop/releases/mac/Box.pkg"
apptoupdaterunningname="Box"

# Download PKG
curl -L -o "$pkgname" "$pkglink"

sleep 10

# Kill the app if it is running
killall -Kill "$apptoupdaterunningname"

# Install PKG
sudo installer -pkg $pkgname -target /

# Remove the downloaded PKG
rm $pkgname

# Clear out the used variables
unset pkgname
unset pkglink
unset apptoupdaterunningname
exit 0

Concluding Comments

The Box Drive desktop application makes sync’ing Box Drive contents to and from your Mac easier than ever.

ByDan Ashley

SCRIPT | Install-Google-Chrome-Latest

Install Google Chrome

Summary

This script will install the latest Universal version of Google Chrome.


Script Content

#!/bin/bash
cd "/Library/Application Support/JAMF/tmp"

# Update variables. These shouldn't need to change for each update
pkgname="googlechrome.pkg"
pkglink="https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph%252Fchrome%252Fterms%252F%26_and_accept_tos%3Dhttps%253A%252F%252Fpolicies.google.com%252Fterms/googlechrome.pkg"
apptoupdaterunningname="Google Chrome"

# Download PKG
curl -L -o "$pkgname" "$pkglink"

sleep 10

# Kill the app if it is running
killall -Kill "$apptoupdaterunningname"

# Install PKG
sudo installer -pkg $pkgname -target /

# Remove the downloaded PKG
rm $pkgname

# Clear out the used variables
unset pkgname
unset pkglink
unset apptoupdaterunningname
exit 0

Concluding Comments

Google Chrome is pretty much an essential application for any user, this script allows you to know the latest version is always being deployed.

As this script installs the Universal version of Google Chrome, it will natively run on Macs with either Intel (x86_64) or Apple Silicon (arm64) CPUs.

ByDan Ashley

SCRIPT | Install-Apple-Rosetta2

Install Apple Rosetta 2

Summary

This script will install Apple Rosetta 2 on a Mac with an Apple Silicon CPU.


Script Content

#!/bin/bash

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

exit 0

Concluding Comments

When deploying Macs with Apple Silicon CPUs, this script is an essential tool for ensuring any applications written specifically for Intel x86_64 CPUs are able to run.

ByDan Ashley

Post Template

Summary

Blah blah blah


Bulk of Content


Concluding Comments

Blah blah blah