17.02.2017 VMWare kernel 4.9 vmmon vmnet failed patch (UNOFFICIAL!) [vmwkp4.9.tar] md5 [9e6040716b3001912147e23a10c4c596]
/ *************************************************
VMWare kernel >= 4.9 Unofficial patch script by D7X
(Fixes the VMWare vmnet / vmmon failed issue on kernel 4.9)

See log file /tmp/vmware-root/vmware-2469.log for details.
Steps:

1) Install vmware on kernel >= 4.9 using VMWare bundle script
2) Run this script (chmod +x vmw_patch.sh; ./vmw_patch.sh)

Tested on 4.9.0-kali1-amd64:
Linux version 4.9.0-kali1-amd64 (devel@kali.org) (gcc version 6.3.0 20170124 (Debian 6.3.0-5) ) #1 SMP Debian 4.9.6-3kali2 (2017-01-30)

ADDITIONAL INFORMATION:
Fixes the vmnet/vmmon failure on kernel 4.9 where VMWare failes to start services and prompts an error message similar to this:
Unable to start services. See log file /tmp/vmware-root/vmware-3823.log for details.

#tail /tmp/vmware-root/vmware-2469.log
2017-02-17T01:19:22.285+02:00| vthread-4| I125: Setting destination path for vmmon to "/lib/modules/4.9.0-kali1-amd64/misc/vmmon.ko".
2017-02-17T01:19:22.285+02:00| vthread-4| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
2017-02-17T01:19:22.293+02:00| vthread-4| I125: Successfully extracted the vmmon source.
2017-02-17T01:19:22.293+02:00| vthread-4| I125: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-EeQ71K/vmmon-only auto-build HEADER_DIR=/lib/modules/4.9.0-kali1-amd64/build/include CC=/usr/bin$
2017-02-17T01:19:23.687+02:00| vthread-4| W115: Failed to build vmmon. Failed to execute the build command.
2017-02-17T01:19:23.688+02:00| vthread-4| I125: Setting destination path for vmnet to "/lib/modules/4.9.0-kali1-amd64/misc/vmnet.ko".
2017-02-17T01:19:23.688+02:00| vthread-4| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
2017-02-17T01:19:23.692+02:00| vthread-4| I125: Successfully extracted the vmnet source.
2017-02-17T01:19:23.692+02:00| vthread-4| I125: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-EeQ71K/vmnet-only auto-build HEADER_DIR=/lib/modules/4.9.0-kali1-amd64/build/include CC=/usr/bin$
2017-02-17T01:19:25.164+02:00| vthread-4| W115: Failed to build vmnet. Failed to execute the build command.


CREDIT FOR MAKING THIS SCRIPT POSSIBLE GOES TO:
Robert Gadsdon (for the method)
bobdtc (for the depmod part at the end)
*************************************************** /


20.02.2017 NVidia Prime configuration script for dual GPU Linux systems [nvidia-prime] md5 [574a885e757ed3bd424becf76524ead2]
24.09.2017 Updated to work on gdm 3.26

/ *****************************************************************************

Dual-GPU nvidia-prime configuration script by D7X
Please make sure you have installed the last nvidia driver
from the official nvidia website

Enables nvidia-prime on dual-gpu systems. Tested on dual-gpu
system with nvidia gtx960m and intel hd530 graphics on kernel 4.9

Made possible thanks to generix
https://devtalk.nvidia.com/default/topic/995110/linux/oops-something-went-wrong-and-the-system-can-t-recover/

To test whether it was successful run xrandr --listproviders. You should get something like:
Providers: number : 2
Provider 0: id: 0x20a cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x44 cap: 0x2, Sink Output crtcs: 3 outputs: 2 associated providers: 1 name:modesetting

You may also need to add nvidia-drm.modeset=1 to /etc/default/grub

For any comments please e-mail to: nospam@promisedev.com

****************************************************************************** /