Pages

vmware vmplayer unable to install all modules ubuntu


While installing the vmplayer 16.1.2 in ubuntu 20.04 the installation failed with the error message



The logs indicated that the issue with the installation of the module vmmon. One of the workaround that worked was to download the source file from

After downloading, unzip the files and go to the folder vmmon-only/include . Open the file vm_asm_x86.h and comment out a part of the code a shown in the figure below.



Now rebuild the new modules and install using the follwing set of commands, running them inside the new folder that was downloaded from the above link.



Now launch the vmplayer, it should open with out any errors. Please note that the solution has been verified on the specific version mentioned so it might or might not work on all versions.

Linux bash script to find Average of prime numbers in range

This post in reponse to a comment on the post " Linux script to find prime numbers in a range of numbers " The request was to find the average of all the prime numbers found in the given range.



Save the file say as average_prime_range.sh Execute it using bash.



Following is a sample output