How to install Nvidia Web Drivers with webdriver.sh on a Hackintosh

AlexManax

New member
Joined
Feb 28, 2018
macOS
10.13.3
Mobo
Asrock Killer AC
CPU
i5 7600K
GPU
1070
#22
Hi all,

I got error:

Alexs-iMac:webdriver.sh-master alexp$ sudo sh webdriver.sh https://images.nvidia.com/mac/pkg/378/WebDriver-378.10.10.10.25.103.pkg
webdriver.sh: line 30: syntax error near unexpected token `('
webdriver.sh: line 30: `$grep -qiE -e "nvdastartupweb.*allowed" <(/usr/sbin/ioreg -p IODeviceTree -c IOService -k boot-log -d 1 -r \'

I even tried to fix the script but no luck. Could you help me please?

Thank you!
 

hevisko

New member
Joined
Feb 26, 2018
macOS
10.13.3,
Mobo
Desktop: Asus Z170-A Laptop: HP 470-G0
CPU
i5-6500
GPU
MSI-GTX760 - want to replace with 2x RX560 (Saphire Pulse 2G and/or Asus 4G OC)
#23
Hi all,

I got error:

Alexs-iMac:webdriver.sh-master alexp$ sudo sh webdriver.sh https://images.nvidia.com/mac/pkg/378/WebDriver-378.10.10.10.25.103.pkg
webdriver.sh: line 30: syntax error near unexpected token `('
webdriver.sh: line 30: `$grep -qiE -e "nvdastartupweb.*allowed" <(/usr/sbin/ioreg -p IODeviceTree -c IOService -k boot-log -d 1 -r \'

I even tried to fix the script but no luck. Could you help me please?

Thank you!
Try to execute like:

sudo ./webdrivers.sh https://...
 

AlexManax

New member
Joined
Feb 28, 2018
macOS
10.13.3
Mobo
Asrock Killer AC
CPU
i5 7600K
GPU
1070
#24
Joined
Mar 2, 2018
macOS
Mobo
GA-H97N-WIFI
CPU
i5 4600
GPU
Sapphire Pulse RX580
#25
I even tried to fix the script but no luck. Could you help me please?
The github repo is a homebrew package - the easiest way to use it is most likely with homebrew.

Homebrew installation according to brew.sh:
Bash:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Paste that at a Terminal prompt.
Then install webdriver.sh:
Bash:
brew tap vulgo/repo && brew install webdriver.sh
After installing, command webdriver should be available. e.g. webdriver help

Bash:
webdriver -u https://images.nvidia.com/mac/pkg/378/WebDriver-378.10.10.10.25.103.pkg
or to choose from a list
Code:
webdriver list
Docs: webdriver.sh/README.md at master · vulgo/webdriver.sh · GitHub

Uninstall: brew remove --force webdriver.sh
 

AlexManax

New member
Joined
Feb 28, 2018
macOS
10.13.3
Mobo
Asrock Killer AC
CPU
i5 7600K
GPU
1070
#26
The github repo is a homebrew package - the easiest way to use it is most likely with homebrew.

Homebrew installation according to brew.sh:
Bash:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Then install webdriver.sh:
Bash:
brew tap vulgo/repo && brew install webdriver.sh
After installing, command webdriver should be available. e.g. webdriver help

Bash:
webdriver -u https://images.nvidia.com/mac/pkg/378/WebDriver-378.10.10.10.25.103.pkg
or to choose from a list
Code:
webdriver list
Docs: webdriver.sh/README.md at master · vulgo/webdriver.sh · GitHub

Uninstall: brew remove --force webdriver.sh
Thank you for clear answer.

I successfully installed homebrew, but on installation of webdriver.sh got error 'no file/directory' (EFI part. was connected). I suppose that webdriver.sh wasn't installed because of it. Command 'webdriver' not responding.

Could you please help me to solve that error?


Alexs-iMac:webdriver.sh-master alexp$ brew tap vulgo/repo && brew install webdriver.sh
==> Tapping vulgo/repo
Cloning into '/usr/local/Homebrew/Library/Taps/vulgo/homebrew-repo'...
remote: Counting objects: 14, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 14 (delta 3), reused 7 (delta 1), pack-reused 0
Unpacking objects: 100% (14/14), done.
Tapped 3 formulae (44 files, 30.1KB)
==> Installing webdriver.sh from vulgo/repo
==> Downloading https://github.com/vulgo/webdriver.sh/archive/v1.2.20.tar.gz
==> Downloading from https://codeload.github.com/vulgo/webdriver.sh/tar.gz/v1.2.
######################################################################## 100.0%
Error: No such file or directory @ rb_file_s_symlink - (../../Cellar/webdriver.sh/1.2.20/libexec/clover-patcher, /usr/local/etc/webdriver.sh/clover-patcher)
Alexs-iMac:webdriver.sh-master alexp$ webdriver help
-bash: webdriver: command not found
Alexs-iMac:webdriver.sh-master alexp$ webdriver.sh
-bash: webdriver.sh: command not found
Alexs-iMac:webdriver.sh-master alexp$ webdriver -u https://images.nvidia.com/mac/pkg/378/WebDriver-378.10.10.10.25.103.pkg
-bash: webdriver: command not found
 
Joined
Mar 2, 2018
macOS
Mobo
GA-H97N-WIFI
CPU
i5 4600
GPU
Sapphire Pulse RX580
#27
I successfully installed homebrew, but on installation of webdriver.sh got error 'no file/directory'
Thanks, have just pushed an update that hopefully fixes this error.
Bash:
brew update
brew install webdriver.sh
 
Joined
Mar 5, 2018
macOS
10.13.3
GPU
Nvidia
#28
I get an error:

webdriver.sh: line 44: syntax error near unexpected token `('
webdriver.sh: line 44: `$grep -qiE -e "status: disabled|signing: disabled" <(/usr/bin/csrutil status) && KEXT_ALLOWED=true'
 
Joined
Mar 5, 2018
macOS
10.13.3
Mobo
Dell Notebook MB
CPU
T9900
GPU
FX770
#29
I get an error:

webdriver.sh: line 44: syntax error near unexpected token `('
webdriver.sh: line 44: `$grep -qiE -e "status: disabled|signing: disabled" <(/usr/bin/csrutil status) && KEXT_ALLOWED=true'
Experienced the same issue, I guess vulgo changed something in the code. You can use an older version from 07. Feb. 18 which works fine for our purpose. After downloading the folder you can either rename the directory to "webdriver.sh-master" or change the terminal commands according to the cryptical folder name "web driver.sh-b2ed1d6605d13e30bb5bb0e59ae87cd395cfe34f".
 
Last edited:
Joined
Mar 5, 2018
macOS
10.13.3
GPU
Nvidia
#31
I have got a (noob) questions aswell: How do I determine if the NVIDIA drivers are working or not? I have the problem that videos are laggy and the audio is asynchronous and after going through all the steps of your tutorial I can't notice any kind of change..
The main question is, are drivers loaded at all!!

If you open System Preferences and NVIDIA Driver Manager tab, it shows which drivers are used.

Please note that their might be other issues, which can affect you hack, caused by bad configuration of hack. Please note that this thread is not for solving issues of your hack but about installing web driver.sh. You shall create separate post for other issues! Do not turn threads to trashcans by posting offtopic.
 
Joined
Mar 2, 2018
macOS
Mobo
GA-H97N-WIFI
CPU
i5 4600
GPU
Sapphire Pulse RX580
#32
I solved issue with webdriver.sh: line 44: syntax error by using the brew to install webdriver as instructed on post #25.
I can reproduce this error using sudo sh to run the script. On macOS /bin/sh is bash, the same version as at /bin/bash - so the result should be the same. However instead we get: EDIT:
When invoked as sh, Bash enters POSIX mode after reading the startup files.
gnu.org

Code:
which sh
/bin/sh
sudo /bin/sh ./webdriver.sh
webdriver.sh: line 44: syntax error

Code:
sudo /bin/bash ./webdriver.sh
No error

In any case there is no need to specify an interpreter - the script already specifies /bin/bash. The following will work fine, recent versions will re-run themselves with sudo if it is left out:

Code:
sudo ./webdriver.sh


@Hackintosher - this command will download 1.3 + supporting files for use without Homebrew: source <(curl -s https://raw.githubusercontent.com/vulgo/webdriver.sh/v1.3.0/get) other commands are unchanged sudo ./webdriver.sh -u https://images.nvidia.com/mac/pkg/378/WebDriver-378.10.10.10.25.103.pkg
 
Last edited:
Joined
Mar 5, 2018
macOS
10.13.3
GPU
Nvidia
#33
I can reproduce this error using sudo sh to run the script. On macOS /bin/sh is bash, the same version as at /bin/bash - so the result should be the same. However instead we get: EDIT: gnu.org
Thank you for response. Anyway, I solved issue by installing webdriver via homebrew. But nice to know that issue is solved.

But I got a question, which is the best driver for 10.13.3 (17D102)? If I install the drive that NVIDIA suggest, I get black screen. If I install older driver, everything seems to work fine.
 
Joined
Mar 2, 2018
macOS
Mobo
GA-H97N-WIFI
CPU
i5 4600
GPU
Sapphire Pulse RX580
#34
But I got a question, which is the best driver for 10.13.3 (17D102)? If I install the drive that NVIDIA suggest, I get black screen. If I install older driver, everything seems to work fine.
I have been using .158 on 17D102 for some time without problems - Skylake and newer boards have had issues with versions after .106 - I'd expect black screen issues to be caused by macOS, but if you have removed/re-installed a few times with the same driver i suppose it could be caused by the web drivers . Just updated to .160 same as before no issues for me at least.
Code:
https://images.nvidia.com/mac/pkg/387/WebDriver-387.10.10.10.25.158.pkg
Code:
https://images.nvidia.com/mac/pkg/387/WebDriver-387.10.10.10.25.160.pkg
 
Joined
Mar 5, 2018
macOS
10.13.3
GPU
Nvidia
#35
Thank you for response, I installed 387.10.10.10.25.106, thats worded fine . I had to downgrade from 387.10.10.10.25.161 to get driver to work. Have not tested 387.10.10.10.25.158. "webdriver --list" doesn't offer it.
 
Last edited:
Joined
Mar 2, 2018
macOS
Mobo
GA-H97N-WIFI
CPU
i5 4600
GPU
Sapphire Pulse RX580
#38
Have not tested 387.10.10.10.25.158. "webdriver --list" doesn't offer it.
Nor do NVIDIA, it's all about 161...
tested 158, does not work on my comp.
No 387.10.10.10.25.xxx build has worked universally. I feel the releases are tied more to package/macOS changes than changes in the driver, like there's a development team working on the drivers for all platforms, meanwhile someone else does the releasing for mac as and when, so not all releases bring changes. 10.13.4 might bring a more recent version with fixes.
 
Joined
Mar 5, 2018
macOS
10.13.3
GPU
Nvidia
#39
Inspiringly, when I install those latest drivers I have black screens but monitor stays active. Not sure about all technical aspects but looks like it outputting some "black picture". Didn't got time to do some debugging by trying to connect from another machine. But it's probably worth to figure out what causes black screen.
 
Joined
Jan 29, 2018
macOS
10.13.3
Mobo
ASrock Z370 Fatal1ty Gaming-ITX/ac
CPU
Coffee Lake i7-8700k
GPU
UHD 630 / Gigabyte GTX 1070 Mini ITX
#40
I get this error when I try to install WEB drivers:

"webdriver.sh: line 44: syntax error near unexpected token `('
webdriver.sh: line 44: `$grep -qiE -e "status: disabled|signing: disabled" <(/usr/bin/csrutil status) && KEXT_ALLOWED=true'
Miikkas-iMac:webdriver.sh-master miikka$ sudo sh webdriver.sh -u https://images.nvidia.com/mac/pkg/378/WebDriver-378.10.10.10.25.103.pkg
webdriver.sh: line 44: syntax error near unexpected token `('
webdriver.sh: line 44: `$grep -qiE -e "status: disabled|signing: disabled" <(/usr/bin/csrutil status) && KEXT_ALLOWED=true'"

I have checked and confirmed that SIP is disabled.