VMware failing to build kernel modules on Ubuntu 10.10

The recent update to 10.10 on my desktop box ran without any major issues, but not without issues. VMware stopped working and complained about not being able to build needed kernel modules. After a quick google search I found this. Issue the following commands on your console.

cd /tmp
wget http://www.sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash
sudo chmod +x vmware7.1.1-patch-kernel-2.6.35.bash
sudo ./vmware7.1.1-patch-kernel-2.6.35.bash

Then the script tells you to issue the following command:

sudo vmware-modconfig –console –install-all

And that’s it.