Enhanced the initial script to allow deactivating the locks if/when an official fix is issued, cover the spectrum of items needed and accommodate switching from the previous method in Post 82.
Firstly, ensure you have a backup that can be restored if required
Secondly, fully isolate your Mac from the web.
Thirdly, while not compulsory, boot into Safe Mode after fully isolating your Mac from the web. Safe Mode will enable a basic GPU driver that will, while not accelerated, allow you to operate your Mac without needing to swap GPUs. It is best to run the attached script while an affected GPU is connected.
More importantly perhaps, Safe Mode will purge several cert revocation caches which will make your life a lot easier later particularly when combined with being disconnected from the web.
To boot into Safe Mode, turn on or restart your Mac, then immediately press and hold the Shift key until you see the login window. Log in to your Mac (You might be asked to log in a second time).
You can verify you are in Safe Mode as follows
- Go to
About This Mac >> System Report >> Software
- In the System Software Overview, look at the value listed next to the item labeled
Boot Mode
.
- Safe: The Mac is using safe mode.
- Normal: The Mac is not using safe mode.
Once in Safe Mode or otherwise ready, download the attached file, unzip it and double click to open it in the built in
MacOS Script Editor
. Once in Script Editor, click on the obvious button to run the script. Perhaps examine it first to see what it does. AppleScript is a "Near Regular English" scripting language and easy to follow.
If the script asks for confirmation on the paths it will work on, check the listed paths and make sure they all include either
/C/com.apple.trustd
or
/T/com.apple.trustd
. Click 'No' if any path does not and report the issue.
Reconnect to the web after running the script, reboot and you should be up and running.
This script, as of Version 6, rolls the old approach from Post 82 into an improved scripted approach.
It also attempts to fetch, patch and save WebDriver-387.10.10.10.40.140 (Latest for HiSierra) in the Downloads folder as
NvidiaWebDriver_Patched
when activating the workaround (under certain conditions) in case the driver needs to be reinstalled.
If not on the latest HiSierra and need the drivers, run the following command the Terminal to fetch and run a script (from GitHub) for getting Nvidia Webdrivers directly from Nvidia:
cd ~/Downloads && git clone https://github.com/corpnewt/Web-Driver-Toolkit && cd Web-Driver-Toolkit && chmod +x Run.command && ./Run.command
.
The driver will be saved in
~/Downloads/Web-Driver-Toolkit/Web Drivers
. You should be able to install it without amendments but if this fails, run the following commands one after the other in Terminal to patch the driver and try installing again:
Bash:
pkgutil --expand $HOME/Downloads/Web-Driver-Toolkit/Web Drivers/WEB_DRIVER_FOLDER_NAME/WEB_DRIVER_FILE_NAME.pkg $HOME/Downloads/Web-Driver-Toolkit/Web Drivers/WEB_DRIVER_FOLDER_NAME/WEB_DRIVER_FILE_NAME_temp.pkg
pkgutil --flatten $HOME/Downloads/Web-Driver-Toolkit/Web Drivers/WEB_DRIVER_FOLDER_NAME/WEB_DRIVER_FILE_NAME_temp.pkg $HOME/Downloads/Web-Driver-Toolkit/Web Drivers/WEB_DRIVER_FOLDER_NAME/WEB_DRIVER_FILE_NAME_patched.pkg
rm -fr $HOME/Downloads/Web-Driver-Toolkit/Web Drivers/WEB_DRIVER_FOLDER_NAME/WEB_DRIVER_FILE_NAME_temp.pkg
* Amend WEB_DRIVER_FOLDER_NAME/WEB_DRIVER_FILE_NAME as required
Alternatively, you could run the GitHub script
BEFORE running this script and save the downloaded file directly under the Downloads folder as
NvidiaWebDriver_Original
. In such a case, the script will patch this file and save the patched version as
NvidiaWebDriver_Patched
.
To revert the changes made by the attached
NvidiaWebdriverRevocationWorkaround script (if/when a proper fix is available), disconnect from the web, reboot into Safe Mode, run the script again and select the option to deactivate the workaround.
EDITS:
01. Lock/Unlock folders instead of contents
02. Misc Fine Tune
03. Structural Tweaks
04. Remove OCSP blocks in hosts file, Handle /Library/Keychains/crls
05. Misc Tidy Up
06. Reintroduce OCSP blocks in hosts file, Download and patch WebDriver-387.10.10.10.40.140
07. Prefers disconnection from the web, Prefers running under Safe Mode
08. Fixes missing 'WebDriver' variable
09. Misc Tidy Up