`
love19820823
  • 浏览: 931727 次
文章分类
社区版块
存档分类
最新评论

安装VMware tools on linux

 
阅读更多

How To Set Up VMware Tools On Various Linux Distributions

<!-- start main content -->
<script type="text/javascript"> <!-- document.write('<div style="float: right; margin: 0 0 10px 10px;">'); //--> </script>
<!-- BEGIN NetShelter Ad Tag for HowtoForge 120x600,160x600 --> <script language="JavaScript" type="text/javascript"> if (!window.netshel_ord) { netshel_ord=Math.random()*10000000000000000; } if (!window.netshel_tile) { netshel_tile=1; } document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/ns.howtoforge/howtos;sz=120x600,160x600;tile='+netshel_tile+';ord=' + netshel_ord + '?" type="text/javascript"></scr' + 'ipt>'); netshel_tile++; </script><script language="JavaScript" src="http://ad.doubleclick.net/adj/ns.howtoforge/howtos;sz=120x600,160x600;tile=2;ord=892327748399852.6?" type="text/javascript"></script><!-- END AD TAG --><script type="text/javascript"> <!-- document.write('<div><A href="http://blog.csdn.net/membership"><img src="/themes/htf_glass/images/remove_ads.gif" border="0" alt="Remove ads"></a></div>'); //--> </script>
Remove ads
<script type="text/javascript"> <!-- document.write('</div>'); //--> </script>
<!-- begin content -->
Submitted by o.meyer (Contact Author) (Forums) on Sun, 2007-09-30 17:51. :: Debian | Fedora | Linux | PCLinuxOS | Ubuntu | Desktop | Virtualization

How To Set Up VMware Tools On Various Linux Distributions

Version 1.0
Author: Oliver Meyer <o [dot] meyer [at] projektfarm [dot] de>
Last edited 09/25/2007

This document explains how to set up the VMware Tools in the following guest operating systems: Ubuntu 7.04, Fedora 7, PCLinuxOS 2007 and Debian Etch. Installing VMware Tools in your guest operating systems will help maximize performance, provide mouse synchronization and copy & paste functionality. This article also shows a way of making VMware Tools start automatically when you start a guest operating system.

I used the VMware Tools v1.0.3-44356 provided by VMware Server v1.03.

This howto is meant as a practical guide; it does not cover the theoretical backgrounds. They are treated in a lot of other documents in the web.

This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

<script type="text/javascript"> <!-- document.write('<div align="center">'); //--> </script>
<!-- BEGIN NetShelter Ad Tag for HowtoForge 300x250,336x280 --> <script language="JavaScript" type="text/javascript"> if (!window.netshel_ord) { netshel_ord=Math.random()*10000000000000000; } if (!window.netshel_tile) { netshel_tile=1; } document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/ns.howtoforge/howtos;sz=300x250,336x280;tile='+netshel_tile+';ord=' + netshel_ord + '?" type="text/javascript"></scr' + 'ipt>'); netshel_tile++; </script><script language="JavaScript" src="http://ad.doubleclick.net/adj/ns.howtoforge/howtos;sz=300x250,336x280;tile=3;ord=892327748399852.6?" type="text/javascript"></script><!-- END AD TAG --><script type="text/javascript"> <!-- document.write('<div><A href="http://blog.csdn.net/membership"><img src="/themes/htf_glass/images/remove_ads.gif" border="0" alt="Remove ads"></a></div>'); //--> </script>
Remove ads
<script type="text/javascript"> <!-- document.write('</div>'); //--> </script>

1 Preparation

Set up a virtual machine of your choice. Click on VM in the top menu of the VMware Server console and select Install VMware Tools.

<noscript style="FONT-SIZE: 7pt"></noscript>

<noscript style="FONT-SIZE: 7pt"></noscript>

<noscript style="FONT-SIZE: 7pt"></noscript>

2 Ubuntu 7.04

First copy the VMware Tools from the mounted iso to the temporary folder:

cp /media/cdrom/VMwareTools-1.0.3-44356.tar.gz /tmp/

Afterwards switch to the temporary folder and unpack the VMware Tools:

cd /tmp/
tar xvfz VMwareTools-1.0.3-44356.tar.gz

Next switch to the folder with the unpacked files and execute the installer:

cd vmware-tools-distrib/
sudo ./vmware-install.pl

Now you will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

After the installation/configuration finished you have to start the VMware Tools:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

3 Fedora 7 (Kernel 2.6.22.5-76.fc7)

First become root and install some needed packages:

su -
%yourrootpassword%
yum install kernel-devel gcc gcc-c++

Next copy the VMware Tools from the mounted iso to the temporary folder:

cp /media/VMware/ Tools/VMwareTools-1.0.3-44356.tar.gz /tmp/

Afterwards switch to the temporary folder and unpack the VMware Tools:

cd /tmp/
tar xvfz VMwareTools-1.0.3-44356.tar.gz

Now we have to fix the vmxnet module:

cd vmware-tools-distrib/lib/modules/source
tar xf vmxnet.tar
cp vmxnet-only/vmxnet.c vmxnet-only/vmxnet.c.orig
wget http://www.thoughtpolice.co.uk/vmware/howto/patch2-vmxnet.c.patch
patch -u vmxnet-only/vmxnet.c < patch2-vmxnet.c.patch
tar cf vmxnet.tar vmxnet-only/
cd /tmp/vmware-tools-distrib
./vmware-install.pl

You will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

Next step is to fix the xorg.conf:

vi /etc/X11/xorg.conf

Add the following lines:

Section "Monitor"
   Identifier "vmware"
EndSection

After this you have to run the configuration again:

vmware-config-tools.pl

Choose the default value every time (simply hit enter) till you reach the question Do you want to change your guest X resolution? - choose yes and select your desired resolution.

The last step is to fix the integration of the vmxnet module by manually loading it (otherwise you might obtain problems with the network):

/etc/init.d/networking stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/networking start

Afterwards reboot the vm. After the vm has rebooted, you can start the VMware Tools via:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

4 PCLinuxOS 2007

Become root, switch to the mounted iso and install the rpm package:

su -
%yourrootpassword%
cd /media/VMware/ Tools/
rpm -ivh VMwareTools-1.0.3-44356.i386.rpm

Afterwards run the configuration:

vmware-config-tools.pl

You will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

Afterwards reboot the vm. After the vm has rebooted, you can start the VMware Tools via:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

5 Debian Etch

First install some needed pakages:

apt-get install autoconf automake binutils ccp gcc linux-headers-$(uname -r) make psmisc

Next copy the VMware Tools from the mounted iso to the temporary folder:

cp /media/cdrom/VMwareTools-1.0.3-44356.tar.gz /tmp/

Afterwards switch to the temporary folder and unpack the VMware Tools:

cd /tmp/
tar xvfz VMwareTools-1.0.3-44356.tar.gz

Next switch to the folder with the unpacked files and execute the installer:

cd vmware-tools-distrib/
./vmware-install.pl

Now you will be asked a few questions relating to installation paths etc. Choose the default value every time (simply hit enter).

Afterwards reboot the vm. After the vm has rebooted, you can start the VMware Tools via:

vmware-toolbox &

You can automatize the start of the VMware Tools - have a look at step 6 of this howto.

Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately.

Submitted by o.meyer (Contact Author) (Forums) on Sun, 2007-09-30 17:54. ::

6 VMware Toolbox Automatic Hidden Start

We'll create two scripts (I sometimes had problems when I put all in one script). These scripts will be executed everytime when an X-session starts - they will switch to the next workspace, start the VMware Tools minimized and switch back to the previous workspace. The switching will be done with xvkbd - a virtual keyboard for the X window system.

6.1 Install Xvkbd

Ubuntu 7.04:

sudo apt-get install xvkbd

Fedora 7:

su -
%yourrootpassword%
rpm -ivh http://dag.wieers.com/rpm/packages/xvkbd/xvkbd-2.8-1.el4.rf.i386.rpm
exit

PCLinuxOS 2007:

Download the rpm-package from http://rpmseek.com/rpm/xvkbd-2.7a-2mdk.i586.html?hl=de&cs=xvkbd:PN:0:0:0:0:2800686.

<script type="text/javascript"> <!-- document.write('<div align="center">'); //--> </script>
<!-- BEGIN NetShelter Ad Tag for HowtoForge 300x250,336x280 --> <script language="JavaScript" type="text/javascript"> if (!window.netshel_ord) { netshel_ord=Math.random()*10000000000000000; } if (!window.netshel_tile) { netshel_tile=1; } document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/ns.howtoforge/howtos;sz=300x250,336x280;tile='+netshel_tile+';ord=' + netshel_ord + '?" type="text/javascript"></scr' + 'ipt>'); netshel_tile++; </script><script language="JavaScript" src="http://ad.doubleclick.net/adj/ns.howtoforge/howtos;sz=300x250,336x280;tile=3;ord=3115057952217503?" type="text/javascript"></script><!-- END AD TAG --><script type="text/javascript"> <!-- document.write('<div><A href="http://blog.csdn.net/membership"><img src="/themes/htf_glass/images/remove_ads.gif" border="0" alt="Remove ads"></a></div>'); //--> </script>
Remove ads
<script type="text/javascript"> <!-- document.write('</div>'); //--> </script>

Afterwards switch to the directory where you downloaded the package and install it:

su -
%yourrootpassword
rpm -ivh xvkbd-2.7a-2mdk.i586.rpm
exit

Debian Etch:

su -
%yourrootpassword%
apt-get install xvkbd
exit

Now change to your homedir:

cd ~

6.2 Scripts For Gnome

vi switcher1.sh

#! /bin/sh
sleep 2
xvkbd -text "/C/A/[Right]"
sleep 2 
vmware-toolbox --minimize &> /dev/null

vi switcher2.sh

#! /bin/sh
sleep 10
xvkbd -text "/C/A/[Left]"

Make the scripts executeable:

chmod +x switcher*

Add the scripts to the session startup programs:

<noscript style="FONT-SIZE: 7pt"></noscript>

<noscript style="FONT-SIZE: 7pt"></noscript>

Repeat these steps for "switcher2.sh"

6.3 Scripts For KDE

Note: If the panel taskbar is configured to show windows from all desktops, the VMware Toolbox will still be visible in the taskbar.

vi .kde/Autostart/switcher1.sh

#! /bin/sh
sleep 2
xvkbd -text "/C/[F2]"
sleep 2
vmware-toolbox --minimize &> /dev/null

vi .kde/Autostart/switcher2.sh

#! /bin/sh
sleep 10
xvkbd -text "/C/[F1]"

Make the scripts executeable:

chmod +x .kde/Autostart/switcher*

7 Links

Click to enlarge
Click to enlarge
Click to enlarge
Click to enlarge
Click to enlarge
分享到:
评论

相关推荐

    Linux vmtools的Linux.iso下载

    cp /media/VMware\ Tools/VMwareTools-6.0.2-59824.tar.gz /root (注:虚拟机版本不同显示不一样,文件名不同) chmod 755 /root/VMwareTools-6.0.2-59824.tar.gz tar -zxv -f /root/VMwareTools-6.0.2-59824.tar....

    VMware Unlocker for MacOS , Ver3.0.2 [2018/10/23]

    VMware Unlocker for MacOS , Ver3.0.2 VMware要安裝Mac OS 所需要安裝的補丁 Supports versions: Workstation 11/12/14/15 on Windows and Linux Workstation Player 7/12/14/15 on Windows and Linux

    VMware Unlocker for OS X 1.1.0

    VMware 安装 mac os x 的解锁工具 Mac OS X Unlocker for VMware ============================ 1. Introduction --------------- The package is a combination of the Unlocker code written by Zenith432 ...

    Mac OS X Unlocker for VMware(ESXi 6.5)

    * Workstation 11/12 on Windows and Linux * Player 7 & Workstation Player 12 on Windows and Linux * Fusion 7/8 on El Capitan and Sierra * ESXi 6.0/6.5

    vmware workstation 11 unlock

    * Workstation 11 on Windows and Linux * Player 7 on Windows and Linux * Fusion 7 on Mavericks and Yosemite * (Currently is does not work on ESXi 6.0) The patch code carries out the following ...

    unlocker208 —— VMware 安装 MacOS的必备补丁

    unlocker208 是使用 VMware 安装 MacOS的必备补丁,亲测可用,详情参阅压缩包内有readme。 VMware 安装 MacOS的流程: =============================================== 1. 安装VMware Station Pro 12.0 2. 将...

    vmware unlocker 2.0.6最新版(vm虚拟机破解安装Mac OS)

    Workstation 11 on Windows and Linux Player 7 on Windows and Linux Fusion 7 on Mavericks and Yosemite ESXi 6.0 The patch code carries out the following modifications dependent on the product being...

    vmware8 mac补丁

    uninstall.cmd - restores VMware and removes darwin.iso tools image from VMware 3. Linux --------- On Linux you will need to be either root or use sudo to run the scripts. You may need to ensure the...

    unlocker虚拟机体验黑果的神器

    * Workstation 11/12/14/15 on Windows and Linux * Workstation Player 7/12/14/15 on Windows and Linux The patch code carries out the following modifications dependent on the product being patched: * ...

    Unlocker 2.1.1 vmware装最新OSX解锁程序

    If you are using VMware Player or Workstation on Windows you may get a core dump. Latest Linux products are OK and do not show this problem. +--------------------------------------------------------...

    macOS Unlocker 2.1 for VMware Workstation 11/12/14(VM14破解补丁)

    If you are using VMware Player or Workstation on Windows you may get a core dump. Latest Linux and ESXi products are OK and do not show this problem. +-----------------------------------------------...

    arm-mumu-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

    It includes the GNU Compiler (GCC) and is available free of charge directly from Arm for embedded software development on Windows, Linux and Mac OS X operating systems. Follow the links on this page ...

    vmware unlocker 2.0.3

    * Workstation 11 on Windows and Linux * Player 7 on Windows and Linux * Fusion 7 on Mavericks and Yosemite * (Currently is does not work on ESXi 6.0) The patch code carries out the following ...

    vm安装macos补丁_unlock-all-v111

    uninstall.cmd - restores VMware and removes darwin.iso tools image from VMware 3. Linux --------- On Linux you will need to be either root or use sudo to run the scripts. You may need to ensure the...

    Hands-On Enterprise Automation with Python by Basim Aly 源码

    Hands-On Enterprise Automation with Python starts by covering the set up of a Python environment to perform automation tasks, as well as the modules, libraries, and tools you will be using. ...

    vmware unlocker V2.06

    - Fixed broken GOS Table patching on Linux 18/06/15 2.0.5 - ESXi 6 working - Latest tools from Fusion 7.1.2 20/06/15 2.0.6 - ESXi 6 patch for smcPresent vCenter compatibility

    Kubernetes Management Design Patterns: With Docker, CoreOS Linux, and Other

    CoreOS Linux is used in the majority of the chapters and other platforms discussed are CentOS with OpenShift, Debian 8 (jessie) on AWS, and Debian 7 for Google Container Engine. CoreOS is the main ...

    unlocker211

    在vmvare中安装macOS所需的破解工具。正版,前csdn上文件有错。 macOS Unlocker for VMware V2.1 ============================== +----------------------------------------------------------------------------...

    Hands-On Enterprise Automation with Python by Basim Aly pdf

    Hands-On Enterprise Automation with Python starts by covering the set up of a Python environment to perform automation tasks, as well as the modules, libraries, and tools you will be using. ...

    Hands-On Enterprise Automation with Python by Basim Aly epub

    Hands-On Enterprise Automation with Python starts by covering the set up of a Python environment to perform automation tasks, as well as the modules, libraries, and tools you will be using. ...

Global site tag (gtag.js) - Google Analytics