With Ubuntu server:
sudo apt install open-vm-tools
With Ubuntu desktop
sudo apt install open-vm-tools open-vm-tools-desktop
Create a folder to mount
mkdir /mnt/hgfs/
Mount shared folder
sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000