Actually, I have taught the following methods: Workshop :~ $ Sudosh./patch-modules_3.2.0.sh./patch-modules_3.2.0.sh: 27: [: workstation8.0.2: unexpected
Actually the method I have taught: http://www.linuxidc.com/Linux/2012-07/64689.htm
However, someone in Ubuntu asked:
Www.linuxidc.com @ ubuntu :~ $ Sudo sh./patch-modules_3.2.0.sh
/Patch-modules_3.2.0.sh: 27: [: workstation8.0.2: unexpected operator
/Patch-modules_3.2.0.sh: 28: [: workstation8.0.2: unexpected operator
Sorry, this script is only for VMWare WorkStation 8.0.2 or VMWare Player 4.0.2. Exiting
Note:
Www.linuxidc.com @ ubuntu :~ $ Sudo bash./patch-modules_3.2.0.sh
./Patch-modules_3.2.0.sh: line 42: patch: Command not found
At this time: install path:
Www.linuxidc.com @ ubuntu :~ $ Sudo apt-get install patch
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
Recommended software packages:
Diffutils-doc
The following [new] software packages will be installed:
Patch
0 software packages are upgraded, 1 new software package is installed, 0 software packages are to be uninstalled, and 156 software packages are not upgraded.
Download the 80.2 kB software package.
After decompression, 223 kB of extra space will be consumed.
Get: 1 http://mirrors.163.com/ubuntu/ precise/main patch amd64 2.6.1-3 [80.2 kB]
Download 80.2 kB, which takes 2 seconds (39.4 kB/s)
Selecting previusly unselected package patch.
(Reading the database... the system currently has 141404 files and directories installed .)
Extracting patch (from.../patch_2.6.1-3_amd64.deb )...
Processing the trigger for man-db...
Configuring patch (2.6.1-3 )...
Www.linuxidc.com @ ubuntu :~ $ Sudo bash./patch-modules_3.2.0.sh
Patching file vmnet-only/filter. c
Patching file vmnet-only/netif. c
Patching file vmnet-only/userif. c
Stopping VMware services:
VMware Authentication Daemon done
VM communication interface socket family done
Virtual machine communication interface done
Virtual machine monitor done
Blocking file system done
Using 2.6.x kernel build system.
Make: Go to the '/tmp/vmware-root/modules/vmmon-only' directory'
Make-C/lib/modules/3.2.0-23-generic/build/include/... SUBDIRS = $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = modules
Make [1]: Entering directory '/usr/src/linux-headers-3.2.0-23-generic'
CC [M]/tmp/vmware-root/modules/vmmon-only/linux/driver. o
CC [M]/tmp/vmware-root/modules/vmmon-only/linux/driverLog. o
CC [M]/tmp/vmware-root/modules/vmmon-only/linux/hostif. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/apic. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/comport. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/cpuid. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/hashFunc. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/memtrack. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/phystrack. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/task. o
CC [M]/tmp/vmware-root/modules/vmmon-only/common/vmx86.o
CC [M]/tmp/vmware-root/modules/vmmon-only/vmcore/moduleloop. o
LD [M]/tmp/vmware-root/modules/vmmon-only/vmmon. o
Building modules, stage 2.
MODPOST 1 modules
CC/tmp/vmware-root/modules/vmmon-only/vmmon. mod. o
LD [M]/tmp/vmware-root/modules/vmmon-only/vmmon. ko
Make [1]: Leaving directory '/usr/src/linux-headers-3.2.0-23-generic'
Make-C $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = postbuild
Make [1]: Entering the directory '/tmp/vmware-root/modules/vmmon-only'
Make [1]: "postbuild" is the latest.
Make [1]: leaving the directory '/tmp/vmware-root/modules/vmmon-only'
Cp-f vmmon. ko ../vmmon. o
Make: Leave the directory "/tmp/vmware-root/modules/vmmon-only"
Built vmmon module
Using 2.6.x kernel build system.
Make: Go to the '/tmp/vmware-root/modules/vmnet-only' directory'
Make-C/lib/modules/3.2.0-23-generic/build/include/... SUBDIRS = $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = modules
Make [1]: Entering directory '/usr/src/linux-headers-3.2.0-23-generic'
CC [M]/tmp/vmware-root/modules/vmnet-only/driver. o
CC [M]/tmp/vmware-root/modules/vmnet-only/hub. o
CC [M]/tmp/vmware-root/modules/vmnet-only/userif. o
CC [M]/tmp/vmware-root/modules/vmnet-only/netif. o
CC [M]/tmp/vmware-root/modules/vmnet-only/bridge. o
CC [M]/tmp/vmware-root/modules/vmnet-only/filter. o
CC [M]/tmp/vmware-root/modules/vmnet-only/procfs. o
CC [M]/tmp/vmware-root/modules/vmnet-only/smac_compat.o
CC [M]/tmp/vmware-root/modules/vmnet-only/smac. o
CC [M]/tmp/vmware-root/modules/vmnet-only/vnetEvent. o
CC [M]/tmp/vmware-root/modules/vmnet-only/vnetUserListener. o
LD [M]/tmp/vmware-root/modules/vmnet-only/vmnet. o
Building modules, stage 2.
MODPOST 1 modules
CC/tmp/vmware-root/modules/vmnet-only/vmnet. mod. o
LD [M]/tmp/vmware-root/modules/vmnet-only/vmnet. ko
Make [1]: Leaving directory '/usr/src/linux-headers-3.2.0-23-generic'
Make-C $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = postbuild
Make [1]: Entering the directory '/tmp/vmware-root/modules/vmnet-only'
Make [1]: "postbuild" is the latest.
Make [1]: leaving the directory '/tmp/vmware-root/modules/vmnet-only'
Cp-f vmnet. ko./../vmnet. o
Make: Leave the directory "/tmp/vmware-root/modules/vmnet-only"
Built vmnet module
Using 2.6.x kernel build system.
Make: Go to the '/tmp/vmware-root/modules/vmblock-only' directory'
Make-C/lib/modules/3.2.0-23-generic/build/include/... SUBDIRS = $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = modules
Make [1]: Entering directory '/usr/src/linux-headers-3.2.0-23-generic'
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/block. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/control. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/dbllnklst. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/dentry. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/file. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/filesystem. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/inode. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/module. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/stubs. o
CC [M]/tmp/vmware-root/modules/vmblock-only/linux/super. o
LD [M]/tmp/vmware-root/modules/vmblock-only/vmblock. o
Building modules, stage 2.
MODPOST 1 modules
CC/tmp/vmware-root/modules/vmblock-only/vmblock. mod. o
LD [M]/tmp/vmware-root/modules/vmblock-only/vmblock. ko
Make [1]: Leaving directory '/usr/src/linux-headers-3.2.0-23-generic'
Make-C $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = postbuild
Make [1]: Entering the directory '/tmp/vmware-root/modules/vmblock-only'
Make [1]: "postbuild" is the latest.
Make [1]: leaving the directory '/tmp/vmware-root/modules/vmblock-only'
Cp-f vmblock. ko ../vmblock. o
Make: Leave the directory "/tmp/vmware-root/modules/vmblock-only"
Built vmblock module
Using 2.6.x kernel build system.
Make: Go to the '/tmp/vmware-root/modules/vmci-only' directory'
Make-C/lib/modules/3.2.0-23-generic/build/include/... SUBDIRS = $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = modules
Make [1]: Entering directory '/usr/src/linux-headers-3.2.0-23-generic'
CC [M]/tmp/vmware-root/modules/vmci-only/linux/driver. o
CC [M]/tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciContext. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmcidat.pdf. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciDriver. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciDoorbell. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciHashtable. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciQPair. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciQueuePair. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciEvent. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciResource. o
CC [M]/tmp/vmware-root/modules/vmci-only/common/vmciRoute. o
CC [M]/tmp/vmware-root/modules/vmci-only/driverLog. o
LD [M]/tmp/vmware-root/modules/vmci-only/vmci. o
Building modules, stage 2.
MODPOST 1 modules
CC/tmp/vmware-root/modules/vmci-only/vmci. mod. o
LD [M]/tmp/vmware-root/modules/vmci-only/vmci. ko
Make [1]: Leaving directory '/usr/src/linux-headers-3.2.0-23-generic'
Make-C $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = postbuild
Make [1]: Entering the directory '/tmp/vmware-root/modules/vmci-only'
Make [1]: "postbuild" is the latest.
Make [1]: Leaving directory '/tmp/vmware-root/modules/vmci-only'
Cp-f vmci. ko ../vmci. o
Make: Leave the directory "/tmp/vmware-root/modules/vmci-only"
Built vmci module
Using 2.6.x kernel build system.
Make: Go to the '/tmp/vmware-root/modules/vsock-only' directory'
Make-C/lib/modules/3.2.0-23-generic/build/include/... SUBDIRS = $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = modules
Make [1]: Entering directory '/usr/src/linux-headers-3.2.0-23-generic'
CC [M]/tmp/vmware-root/modules/vsock-only/linux/af_vsock.o
CC [M]/tmp/vmware-root/modules/vsock-only/linux/notify. o
CC [M]/tmp/vmware-root/modules/vsock-only/linux/notifyQState. o
CC [M]/tmp/vmware-root/modules/vsock-only/linux/stats. o
CC [M]/tmp/vmware-root/modules/vsock-only/linux/vsockAddr. o
CC [M]/tmp/vmware-root/modules/vsock-only/linux/util. o
CC [M]/tmp/vmware-root/modules/vsock-only/driverLog. o
LD [M]/tmp/vmware-root/modules/vsock-only/vsock. o
Building modules, stage 2.
MODPOST 1 modules
CC/tmp/vmware-root/modules/vsock-only/vsock. mod. o
LD [M]/tmp/vmware-root/modules/vsock-only/vsock. ko
Make [1]: Leaving directory '/usr/src/linux-headers-3.2.0-23-generic'
Make-C $ pwd srcroot = $ PWD /.\
MODULEBUILDDIR = postbuild
Make [1]: Entering the directory '/tmp/vmware-root/modules/vsock-only'
Make [1]: "postbuild" is the latest.
Make [1]: leaving the directory '/tmp/vmware-root/modules/vsock-only'
Cp-f vsock. ko ../vsock. o
Make: Leave the directory "/tmp/vmware-root/modules/vsock-only"
Built vsock module
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family done
Blocking file system done
Virtual ethernet done
VMware Authentication Daemon done
Shared Memory Available done
All done, you can now run VMWare WorkStation.
Modules sources backup can be found in the '/usr/lib/vmware/modules/source-workstation8.0.2-2012-06-14-09: 49: 26-backup' directory
Www.linuxidc.com @ ubuntu :~ $