Created
June 27, 2019 06:05
-
-
Save 0x4d4e/eec9df5d70bb0b9adeff9dc8071d3ea7 to your computer and use it in GitHub Desktop.
Install VMware Workstation modules and sign for SecureBoot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "> Building VMware modules..." | |
systemctl stop vmware.service | |
vmware-modconfig --console --install-all | |
echo "> Signing modules ..." | |
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /root/module_sign/MOK.priv /root/module_sign/MOK.der $(modinfo -n vmmon) | |
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /root/module_sign/MOK.priv /root/module_sign/MOK.der $(modinfo -n vmnet) | |
echo "> Loading modules ..." | |
modprobe vmmon | |
modprobe vmnet | |
echo "> Reloading vmware service... " | |
systemctl restart vmware.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment