VMware workstation 9.0.2安装Debian 6.0.7的vmware tools教程

1.以root身份登录

xx@www:~$ su root密码:

2.照着网上安装vmware tools的教程操作,中途会遇到”The path “usr/bin/gcc” is not a valid path to the gcc binary path” “The path “” is not a valid path to the 2.6.32-5-amd64 kernel header”的错误提示,使得安装无法进行下去而前功尽弃,所以需要做如下工作:

root@www:/home/xx# ls /usr/src
root@www:/home/xx# uname -r
2.6.32-5-amd64
3.在workstation中用光驱加载debian-6.0.7-amd64-CD-1.iso镜像,成功后桌面会有显示。然后窗口命令安装头文件:
root@www:/home/xx# apt-get install linux-headers-2.6.32-5-amd64
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
将会安装下列额外的软件包:
  binutils cpp-4.3 gcc-4.3 gcc-4.3-base libc-dev-bin libc6-dev
  linux-headers-2.6.32-5-common linux-kbuild-2.6.32 linux-libc-dev
  manpages-dev
建议安装的软件包:
  binutils-doc gcc-4.3-locales gcc-4.3-multilib libmudflap0-4.3-dev
  gcc-4.3-doc libgcc1-dbg libgomp1-dbg libmudflap0-dbg glibc-doc
推荐安装的软件包:
  gcc c-compiler
下列【新】软件包将被安装:
  binutils cpp-4.3 gcc-4.3 gcc-4.3-base libc-dev-bin libc6-dev
  linux-headers-2.6.32-5-amd64 linux-headers-2.6.32-5-common
  linux-kbuild-2.6.32 linux-libc-dev manpages-dev
升级了 0 个软件包,新安装了 11 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 6,927 kB/20.0 MB 的软件包。
解压缩后会消耗掉 67.4 MB 的额外空间。
您希望继续执行吗?[Y/n]y
更换介质:请把标有
“Debian GNU/Linux 6.0.7 _Squeeze_ – Official amd64 CD Binary-1 20130223-14:06”
的盘片插入驱动器“/media/cdrom/”再按回车键
获取:1 http://security.debian.org/ squeeze/updates/main linux-libc-dev amd64 2.6.32-48squeeze1 [842 kB]
获取:2 http://mirrors.163.com/debian/ squeeze/main manpages-dev all 3.27-1 [1,639 kB]
获取:3 http://security.debian.org/ squeeze/updates/main linux-headers-2.6.32-5-common amd64 2.6.32-48squeeze1 [3,907 kB]
获取:4 http://security.debian.org/ squeeze/updates/main linux-headers-2.6.32-5-amd64 amd64 2.6.32-48squeeze1 [538 kB]
下载 6,927 kB,耗时 1分 51秒 (62.1 kB/s)
选中了曾被取消选择的软件包 binutils。
(正在读取数据库 … 系统当前共安装有 120169 个文件和目录。)
正在解压缩 binutils (从 …/binutils_2.20.1-16_amd64.deb) …
选中了曾被取消选择的软件包 gcc-4.3-base。
正在解压缩 gcc-4.3-base (从 …/gcc-4.3-base_4.3.5-4_amd64.deb) …
选中了曾被取消选择的软件包 cpp-4.3。
正在解压缩 cpp-4.3 (从 …/cpp-4.3_4.3.5-4_amd64.deb) …
选中了曾被取消选择的软件包 gcc-4.3。
正在解压缩 gcc-4.3 (从 …/gcc-4.3_4.3.5-4_amd64.deb) …
选中了曾被取消选择的软件包 libc-dev-bin。
正在解压缩 libc-dev-bin (从 …/libc-dev-bin_2.11.3-4_amd64.deb) …
选中了曾被取消选择的软件包 linux-libc-dev。
正在解压缩 linux-libc-dev (从 …/linux-libc-dev_2.6.32-48squeeze1_amd64.deb) …
选中了曾被取消选择的软件包 libc6-dev。
正在解压缩 libc6-dev (从 …/libc6-dev_2.11.3-4_amd64.deb) …
选中了曾被取消选择的软件包 linux-headers-2.6.32-5-common。
正在解压缩 linux-headers-2.6.32-5-common (从 …/linux-headers-2.6.32-5-common_2.6.32-48squeeze1_amd64.deb) …
选中了曾被取消选择的软件包 linux-kbuild-2.6.32。
正在解压缩 linux-kbuild-2.6.32 (从 …/linux-kbuild-2.6.32_2.6.32-1_amd64.deb) …
选中了曾被取消选择的软件包 linux-headers-2.6.32-5-amd64。
正在解压缩 linux-headers-2.6.32-5-amd64 (从 …/linux-headers-2.6.32-5-amd64_2.6.32-48squeeze1_amd64.deb) …
选中了曾被取消选择的软件包 manpages-dev。
正在解压缩 manpages-dev (从 …/manpages-dev_3.27-1_all.deb) …
正在处理用于 man-db 的触发器…
正在设置 binutils (2.20.1-16) …
正在设置 gcc-4.3-base (4.3.5-4) …
正在设置 cpp-4.3 (4.3.5-4) …
正在设置 gcc-4.3 (4.3.5-4) …
正在设置 libc-dev-bin (2.11.3-4) …
正在设置 linux-libc-dev (2.6.32-48squeeze1) …
正在设置 libc6-dev (2.11.3-4) …
正在设置 linux-headers-2.6.32-5-common (2.6.32-48squeeze1) …
正在设置 linux-kbuild-2.6.32 (2.6.32-1) …
正在设置 linux-headers-2.6.32-5-amd64 (2.6.32-48squeeze1) …
正在设置 manpages-dev (3.27-1) …
root@www:/home/xx#
安装完成。
4.运行apt-get install make

5.运行apt-get install build-essential

6.至此准备工作完成,开始安装VMware-Tools单击虚拟机菜单中的“虚拟机/安装VMware-Tools,此时就会有把VMware-tools文件加载到CD-ROM中。执行mount /mnt/cdrom命令挂载光驱,进入/mnt/cdrom目录,把“VMwareTools-*******.tar.gz”文件复制到/tmp目录。(如果命令失败,可手动从文件夹复制)

解压文件,执行安装,命令如下:

# cd /tmp  //进入根下tmp文件夹

# tar -zxvf Vm*  //解压文件

# cd vm*  //进入解压后的目录

# ./vm*  //执行安装

在安装过程中根据提示进行选择,一路回车即可,最后出现:enjoy,命令跳回工作目录,安装结束,重启电脑,可实现鼠标无缝切换和Debian窗口全屏。

VM的Linux CentOS系统的VMTools的手动安装[转]

一是没时间安装,另外是一直用的是VM的绿色版,里面没有Linux.iso 文件

今天晚上安装上了 linux 的vmtools ,再也不用按 Ctrl+Alt 了 也不用看800 X 600的桌面了!

在vmware安装vmware tools,如果直接安装VMTools工具不成功,那么就需要手工安装。


1. 以ROOT身份进入LINUX
2. 退出到windows,点击 SETTING菜单下的ENABLE VMWARE TOOLS子菜单,确认安装
3. 使用虚拟光驱加载iso镜像,路径为d:linux.iso
4. 进入linux运行在终端执行如下语句,将tar.gz 复制到/tmp目录下: 因为在cdrom文件下没的可执行权限!

    cp VMwareTools-8.1.3-203739.tar.gz /tmp

5. cd /tmp     进入TMP目录

6. tar zxf vmware-linux-tools.tar.gz

    解压缩该软件包,默认解压到 vmware-tools-distrib目录下(与文件名同名)。
cd  vmware-tools-distrib  进入解压后的目录

7. 执行安装文件
[root@localhost vmware-tools-distrib]# ./INSTALL

如果你的EngLish好的话,就根据自己需要配置一下,如果不是很懂EngLish的话你一直按回车就行了!

安装好后,重启linux 生效!

 

我的安装过程:

 

[root@localhost m]# copy vm.tar.gz /tmp
bash: copy: command not found
[root@localhost m]# cp VM.tar.gz /tmp
[root@localhost m]# cd /tmp
[root@localhost tmp]# ls
gconfd-root                                 scim-helper-manager-socket-root
keyring-rNk1Rx                              scim-panel-socket:0-root
mapping-root                                scim-socket-frontend-root
orbit-root                                  ssh-TWjXMV5315
virtual-root.EzCSaH
VM.tar.gz
[root@localhost tmp]# tar zxf vm.tar.gz
tar: vm.tar.gz:无法 open: 没有那个文件或目录
tar: 错误不可恢复:现在退出
tar: Child returned status 2
tar: 由于前面延迟的错误而退出
[root@localhost tmp]# tar zxf VM.tar.gz
[root@localhost tmp]# ls
gconfd-root                                 scim-panel-socket:0-root
keyring-rNk1Rx                              scim-socket-frontend-root
mapping-root                                ssh-TWjXMV5315
orbit-root                                  virtual-root.EzCSaH
VM.tar.gz
vmware-tools-distrib
scim-helper-manager-socket-root
[root@localhost tmp]# cd vmware-tools-distrib
[root@localhost vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
[root@localhost vmware-tools-distrib]# ./INSTALL
bash: ./INSTALL: 权限不够
[root@localhost vmware-tools-distrib]# ls -l
总计 532
drwxr-xr-x  2 root root   4096 2009-10-22 bin
drwxr-xr-x  2 root root   4096 2009-10-22 doc
drwxr-xr-x  3 root root   4096 2009-10-22 etc
-r–r–r–  1 root root 517698 2009-10-22 FILES
lrwxrwxrwx  1 root root     13 02-11 22:44 INSTALL -> ./doc/INSTALL
drwxr-xr-x  2 root root   4096 2009-10-22 installer
drwxr-xr-x 17 root root   4096 2009-10-22 lib
lrwxrwxrwx  1 root root     31 02-11 22:44 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl
[root@localhost vmware-tools-distrib]# chmod 755 INSTALL
[root@localhost vmware-tools-distrib]# ls -l
总计 532
drwxr-xr-x  2 root root   4096 2009-10-22 bin
drwxr-xr-x  2 root root   4096 2009-10-22 doc
drwxr-xr-x  3 root root   4096 2009-10-22 etc
-r–r–r–  1 root root 517698 2009-10-22 FILES
lrwxrwxrwx  1 root root     13 02-11 22:44 INSTALL -> ./doc/INSTALL
drwxr-xr-x  2 root root   4096 2009-10-22 installer
drwxr-xr-x 17 root root   4096 2009-10-22 lib
lrwxrwxrwx  1 root root     31 02-11 22:44 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl
[root@localhost vmware-tools-distrib]# INSTALL
bash: INSTALL: command not found
[root@localhost vmware-tools-distrib]# ./INSTALL
./INSTALL: line 1: syntax error near unexpected token `C’
./INSTALL: line 1: `Copyright (C) 1998-2008 VMware, Inc.  All Rights Reserved.’
[root@localhost vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes] y

Uninstalling the tar installation of VMware Tools.

Skipping VMware Tools services shutdown on the host:       [确定]

The removal of VMware Tools 6.0.4 build-93057 for Linux completed successfully.
Thank you for having tried this software.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin/vmtools]

The path “/usr/bin/vmtools” does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/bin/sbin]

The path “/usr/bin/sbin” does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the library files?
[/usr/bin/lib/vmware-tools]

The path “/usr/bin/lib/vmware-tools” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the documentation files?
[/usr/bin/doc/vmware-tools]

The path “/usr/bin/doc/vmware-tools” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] y

The installation of VMware Tools 8.1.3 build-203739 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
“/usr/bin/vmtools/vmware-uninstall-tools.pl”.

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmtools/vmware-config-tools.pl”. Do
you want this program to invoke the command for you now? [yes]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon:                          [确定]
Virtual Printing daemon:                                [确定]
Unmounting HGFS shares:                                 [确定]
Guest filesystem driver:                                [确定]
Found a compatible pre-built module for vmmemctl.  Installing it…
Found a compatible pre-built module for vmhgfs.  Installing it…
Found a compatible pre-built module for vmxnet.  Installing it…
Found a compatible pre-built module for vmblock.  Installing it…
[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no] y

Found a compatible pre-built module for vmsync.  Installing it…
Found a compatible pre-built module for vmci.  Installing it…
Found a compatible pre-built module for vsock.  Installing it…
Found a compatible pre-built module for vmxnet3.  Installing it…
Found a compatible pre-built module for pvscsi.  Installing it…

 
Detected X.org version 7.1.
Host resolution detected as “1366 x 768”.
Please choose one of the following display sizes that X will start with:

[1]  “320×200”
[2]  “320×240”
[3]  “400×300”
[4]  “512×384”
[5]  “640×400”
[6]  “640×480”
[7]  “720×480”
[8]  “800×480”
[9]  “854×480”
[10]  “720×576”
[11]  “800×600”
[12]  “1024×768”
[13]< “1280×720”
Please enter a number between 1 and 13:

[13] 12
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-164.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64
Build Date: 31 March 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5
Before reporting problems, checkhttp://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: “/tmp/vmware-config0/XF86ConfigLog.6468”, Time: Fri Feb 11 22:48:37 2011
(++) Using config file: “/tmp/vmware-config0/XF86Config.6468”
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <I5F>
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key <I5F> redefined
>                   Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server

X is running fine with the new config file.

FreeFontPath: FPE “unix/:7100” refcount is 2, should be 1; fixing.
Creating a new initrd boot image for the kernel.
Checking acpi hot plug                                  [确定]
Starting VMware Tools services in the virtual machine:
Switching to guest configuration:                       [确定]
Paravirtual SCSI module:                                [确定]
Guest filesystem driver:                                [确定]
Mounting HGFS shares:                                   [失败]
Guest memory manager:                                   [确定]
VM communication interface:                             [确定]
VM communication interface socket family:               [确定]
Blocking file system:                                   [确定]
File system sync driver:                                [确定]
Guest operating system daemon:                          [确定]
Virtual Printing daemon:                                [确定]

The configuration of VMware Tools 8.1.3 build-203739 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
“/usr/bin/vmtools/vmware-toolbox” during an X server session.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmtools/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

–the VMware team

Windows Azure Application申请方法

这个教程是写给使用WP Slug Translate插件的朋友,因为该插件使用的是微软Bing翻译API接口,所以需要使用微软Windows Azure Application的“ClientID”与“ClientSecret”,默认是我申请的那个,每个账户每个月有两百万字符额度,随着使用人数增多,这个额度很可能不够用,目前已经告急!所以还是推荐大家按照下面教程申请,两个步骤缺一不可:

步骤一:订阅“Microsoft Translator”:
地址是:https://datamarket.azure.com/dataset/1899a118-d202-492c-aa16-ba21c33c06cb
点击每月免费的按钮

步骤二:注册你的应用程序:
地址是:https://datamarket.azure.com/developer/applications/register
把“ClientID”与“ClientSecret”记下来

接下来就可以将步骤二中记下来的“ClientID”与“ClientSecret”填入WP Slug Translate插件后台设置页面了。