Symptom: You see the following permissions error when trying to install VMware Tools on a Linux OS regardless if you are running as su or root:
[[email protected] vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
What is the directory that contains the init scripts?
In which directory do you want to install the daemon files?
In which directory do you want to install the library files?
The path “/usr/lib/vmware-tools” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
In which directory do you want to install the documentation files?
The path “/usr/share/doc/vmware-tools” does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
The installation of VMware Tools 9.0.5 build-1137270 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware-uninstall-tools.pl”.
Can’t exec “/usr/lib/vmware-tools/bin/configure-gtk.sh”: Permission denied at ./vmware-install.pl line 3955.
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmware-config-tools.pl”. Do you want
this program to invoke the command for you now? [yes]
sh: /usr/bin/vmware-config-tools.pl: Permission denied
/sbin/restorecon: Warning no default label for /tmp/vmware-block-restore0/tmp_file
[[email protected] vmware-tools-distrib]#
Solution: You need to extract the files from the tarball when installing the guest tools via the tar command rather than the build in Archive Manager installed with the OS.
- Mount the VMware Tools to the VM
- Copy the VMware Tools tarball to the desktop of the Linux OS
- Execute the following command to extract the tar’s contents
- tar -zxvf VMwareTools-9.0.5-1137270.tar.gz
- Change directories to the vmware-tools-distrib that was just extracted from the tarball and execute the following commands to begin the installation
- cd vmware-tools-distrib
At the time of writing this, Python 2.7.3 is the latest build of the 2.7 builds. You can simply replace the wget url with the Python 3.x build you wish to download if you want to use those releases instead.
- Download the tarball
- wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
- Extract the contents
- tar -xzf Python-2.7.3.tgz
- Navigate to the extracted folder
- cd Python-2.7.3
- Configure/Install Python
- sudo make install
Copy your .crt files to /usr/share/ca-certificates
Run: sudo update-ca-certificates
Hit yes to trust the certificates in the wizard (text based for CLI), and away you go! 🙂
a2enmod modulename – this will enable a module
a2dismod modulename – this will disable a module
Once you have made the changes, execute the service apache2 restart command and away you go!
If you have ever wanted to view how big your hard drive/partition sizes are in Linux, but only have access to the command line interface, here is the command to do it:
df -H (This will show the partition sizes in MB, GB, TB, etc.)
fdisk -l | grep Disk (This will show the physical disks and their corresponding sizes)
To setup a static IP in ubuntu, edit your networking settings file.
Here is an example of how to do it:
Use these configurations:
iface lo inet loopback
iface eth0 inet static
DHCP Address Configuration:
iface lo inet loopback
iface eth0 inet dhcp
Then restart the service: /etc/init.d/networking restart (Make sure you are running with admin privileges when restarting 🙂 )
Getting the following message from Package Manager in Ubuntu 11.10?
Requires installation of untrusted packages
The action would require the installation of packages from not authenticated sources.
And when you click on the Details dropdown it shows all of the packages that need to downloaded?
Run the following commands:
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update
These commands will save a backup of the old lists and then create a new lists folder.
More information can be found here.