Install VMware Tools on Ubuntu (trusty)

From Iwan
Jump to: navigation, search

I used these instructions to install VMware Tools on my Ubuntu (Linux) machines.

The installation

Getting the key

root ##b##ubuntu@LAB-SERVER-WEB-02:~$ sudo wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
[sudo] password for ubuntu: 
--2015-09-04 18:14:41--  http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
Resolving packages.vmware.com (packages.vmware.com)... 23.222.241.245, 2a02:26f0:6b:289::2ef, 2a02:26f0:6b:29f::2ef
Connecting to packages.vmware.com (packages.vmware.com)|23.222.241.245|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 755 [text/plain]
Saving to: ‘VMWARE-PACKAGING-GPG-RSA-KEY.pub’

100%[======================================================================================================================>] 755         --.-K/s   in 0s      

root ##b##2015-09-04 18:14:41 (97.1 MB/s) - ‘VMWARE-PACKAGING-GPG-RSA-KEY.pub’ saved [755/755]

Adding the key to the ubuntu repository

root ##b##uubuntu@LAB-SERVER-WEB-02:~$ sudo apt-key add VMWARE-PACKAGING-GPG-RSA-KEY.pub 
root ##b##OK

Adding a new repository

root ##b##ubuntu@LAB-SERVER-WEB-02:~$ sudo vi /etc/apt/sources.list.d/vmware-tools.list 
root ##b##2deb http://packages.vmware.com/packages/ubuntu trusty main
~
~
~
~
"/etc/apt/sources.list.d/vmware-tools.list" [New] 1L, 59C written  

Updating the sources

  
root ##b##ubuntu@LAB-SERVER-WEB-02:~$ sudo apt-get update
Ign http://security.ubuntu.com trusty-security InRelease
Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]         
Get:2 http://security.ubuntu.com trusty-security Release [63.5 kB]             
Get:3 http://security.ubuntu.com trusty-security/main Sources [93.7 kB]        
Get:4 http://security.ubuntu.com trusty-security/restricted Sources [2,061 B]  
Get:5 http://security.ubuntu.com trusty-security/universe Sources [30.5 kB]    
Ign http://us.archive.ubuntu.com trusty InRelease                              
Get:6 http://security.ubuntu.com trusty-security/multiverse Sources [2,330 B]  
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [339 kB]  
Get:8 http://security.ubuntu.com trusty-security/restricted amd64 Packages [8,875 B]
Ign http://us.archive.ubuntu.com trusty-updates InRelease                      
Get:9 http://security.ubuntu.com trusty-security/universe amd64 Packages [115 kB]
Get:10 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [3,686 B]
Get:11 http://security.ubuntu.com trusty-security/main i386 Packages [324 kB]  
Get:12 http://security.ubuntu.com trusty-security/restricted i386 Packages [8,846 B]
Get:13 http://security.ubuntu.com trusty-security/universe i386 Packages [116 kB]
Ign http://us.archive.ubuntu.com trusty-backports InRelease                    
Get:14 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3,830 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en       
Hit http://security.ubuntu.com trusty-security/restricted Translation-en       
Hit http://us.archive.ubuntu.com trusty Release.gpg                            
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Get:15 http://us.archive.ubuntu.com trusty-updates Release.gpg [933 B]         
Hit http://us.archive.ubuntu.com trusty-backports Release.gpg                  
Hit http://us.archive.ubuntu.com trusty Release                         
Get:16 http://us.archive.ubuntu.com trusty-updates Release [63.5 kB]           
Hit http://us.archive.ubuntu.com trusty-backports Release                      
Hit http://us.archive.ubuntu.com trusty/main Sources                   
Ign http://packages.vmware.com trusty InRelease                    
Get:17 http://packages.vmware.com trusty Release.gpg [307 B]       
Get:18 http://packages.vmware.com trusty Release [1,400 B]
Get:19 http://packages.vmware.com trusty/main amd64 Packages [674 B]   
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Get:20 http://packages.vmware.com trusty/main i386 Packages [675 B]            
Hit http://us.archive.ubuntu.com trusty/universe Sources                       
Hit http://us.archive.ubuntu.com trusty/multiverse Sources         
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages       
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en   
Hit http://us.archive.ubuntu.com trusty/universe Translation-en     
Get:21 http://us.archive.ubuntu.com trusty-updates/main Sources [232 kB]
Get:22 http://us.archive.ubuntu.com trusty-updates/restricted Sources [4,725 B]
Get:23 http://us.archive.ubuntu.com trusty-updates/universe Sources [134 kB]   
Get:24 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [5,143 B]
Get:25 http://us.archive.ubuntu.com trusty-updates/main amd64 Packages [614 kB]
Get:26 http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.4 kB]
Get:27 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [310 kB]
Get:28 http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [11.9 kB]
Get:29 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [595 kB] 
Get:30 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [15.1 kB]
Get:31 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [311 kB]
Get:32 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [12.1 kB]
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en            
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/main Sources                 
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources           
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources   
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources 
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages          
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages    
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages      
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages    
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages           
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages     
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages       
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages     
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en          
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en      
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US                 
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
Ign http://packages.vmware.com trusty/main Translation-en_US                   
Ign http://packages.vmware.com trusty/main Translation-en                      
Fetched 3,440 kB in 14s (234 kB/s)                                             
Reading package lists... Done

Install the VMware tools trough a package

  
root ##b##ubuntu@LAB-SERVER-WEB-02:~$ sudo apt-get install open-vm-tools-deploypkg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libdumbnet1 libicu52 libmspack0 open-vm-tools zerofree
Suggested packages:
  open-vm-tools-desktop
The following NEW packages will be installed:
  libdumbnet1 libicu52 libmspack0 open-vm-tools open-vm-tools-deploypkg
  zerofree
0 upgraded, 6 newly installed, 0 to remove and 26 not upgraded.
Need to get 7,301 kB of archives.
After this operation, 31.0 MB of additional disk space will be used.
root ##b##Do you want to continue? [Y/n] Y
Get:1 http://packages.vmware.com/packages/ubuntu/ trusty/main open-vm-tools-deploypkg amd64 9.4.10-3 [20.3 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libicu52 amd64 52.1-3ubuntu0.3 [6,752 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libmspack0 amd64 0.4-1 [43.2 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty/main libdumbnet1 amd64 1.12-4build1 [25.7 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main open-vm-tools amd64 2:9.4.0-1280544-5ubuntu6.2 [452 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty/main zerofree amd64 1.0.2-1ubuntu1 [8,654 B]
Fetched 7,301 kB in 5s (1,433 kB/s)
Selecting previously unselected package libicu52:amd64.
(Reading database ... 58463 files and directories currently installed.)
Preparing to unpack .../libicu52_52.1-3ubuntu0.3_amd64.deb ...
Unpacking libicu52:amd64 (52.1-3ubuntu0.3) ...
Selecting previously unselected package libmspack0:amd64.
Preparing to unpack .../libmspack0_0.4-1_amd64.deb ...
Unpacking libmspack0:amd64 (0.4-1) ...
Selecting previously unselected package libdumbnet1.
Preparing to unpack .../libdumbnet1_1.12-4build1_amd64.deb ...
Unpacking libdumbnet1 (1.12-4build1) ...
Selecting previously unselected package open-vm-tools.
Preparing to unpack .../open-vm-tools_2%3a9.4.0-1280544-5ubuntu6.2_amd64.deb ...
Unpacking open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) ...
Selecting previously unselected package open-vm-tools-deploypkg.
Preparing to unpack .../open-vm-tools-deploypkg_9.4.10-3_amd64.deb ...
Unpacking open-vm-tools-deploypkg (9.4.10-3) ...
Selecting previously unselected package zerofree.
Preparing to unpack .../zerofree_1.0.2-1ubuntu1_amd64.deb ...
Unpacking zerofree (1.0.2-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libicu52:amd64 (52.1-3ubuntu0.3) ...
Setting up libmspack0:amd64 (0.4-1) ...
Setting up libdumbnet1 (1.12-4build1) ...
Setting up open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) ...
 * Starting open-vm daemon vmtoolsd
   ...done.
Setting up zerofree (1.0.2-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up open-vm-tools-deploypkg (9.4.10-3) ...
 * Stopping open-vm guest daemon vmtoolsd
   ...done.
 * Starting open-vm daemon vmtoolsd
   ...done.
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...