Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly


fix vmware installation error
by admin
 at 2017-06-05 20:35:00.

if you are installing vmware tools on kali linux you may get an error like this:
blocking file system : failed
and it may cause that the vmware share folder or other stuff not work properly first
 apt-get install gcc make linux-headers-$(uname -r)
then you want to copy the file version.h from /lib/modules/3.7-trunk-amd64/build/include/generated/uapi/linux/ and past it in /lib/modules/3.7-trunk-amd64/build/include/linux/ OR just run this command
ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/
then edit the file /etc/init.d/vmware-tools and change to function get_version_integer() at line 840 to the text below:
get_version_integer() {
  local version_uts
  local v1
  local v2
  local v3
 
  version_uts=`uname -r`
 
  # There is no double quote around the back-quoted expression on purpose
  # There is no double quote around $version_uts on purpose
  set `IFS='.'; echo $version_uts`
  v1="$1"
  v2="$2"
  v3="$3"
  # There is no double quote around the back-quoted expression on purpose
  # There is no double quote around $v3 on purpose
  if [ -z "$v1" ]; then
    v1="0"
  else
    set `IFS='-ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'; echo $v1`
    v1="$1"
  fi
  if [ -z "$v2" ]; then
    v2="0"
  else
    set `IFS='-ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'; echo $v2`
    v2="$1"
  fi
  if [ -z "$v3" ]; then
    v3="0"
  else
    set `IFS='-ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'; echo $v3`
    v3="$1"
  fi
 
kernel_version_integer "$v1" "$v2" "$v3"
}
now just run this: service vmware-tools restart