install vmware tools ubuntu

C++
sudo apt install open-vm-tools-desktopDownload vmware from official site for linux
Then cd into the downloads folder by cd Downloads/
Then
$ sudo apt update && sudo apt upgrade
$ chmod VMware-Workstation-Full-16.1.0-17198959.x86_64.bundle
$ sudo ./VMware-Workstation-Full-16.1.0-17198959.x86_64.bundle
$ sudo apt update && sudo apt upgrade
$ sudo apt-get install build-essential module-assistant
$ sudo m-a prepare

Then open vmware
Then click on install 
Enter your password

It will be installedsudo apt updatesudo apt install open-vm-tools-desktopHow to install Ubuntu 16.04 in VMware Workstation

Step 01: Create a New Virtual Machine
Step 02: Select Hardware Compatibility
Step 03: Use or select Ubuntu 16.04 Image to install
Step 04: Configure Virtual Machine Name and file Location
Step 05: Configure Virtual processor for new virtual machine
Step 06: Setup Virtual RAM memory for new virtual machine
Step 07: Setup Virtual Machine Network 
Step 08: Configure Virtual storage disk for new virtual machine
Step 09: Now power on of the virtual machine after finish the VMware setup
Step 10: Get the Ubuntu setup screen on display

follow the given instruction on screen and it will install in 10 min.
sudo apt updatesudo apt install open-vm-tools# install open-vmware-tools-desktop for the desktop version, otherwise 
# copy-paste between host and VM will not work:
sudo apt install open-vm-tools-desktop

# for the server version use
sudo apt install open-vm-tools
Source

Also in C++: