2024年2月9日发(作者:)

无法用CRT安装VMware Tools,安装过程中,

进入一个名为VMware Tools的目录,目录名中间有空格,要用单引号括起来。

[root@localhost ~]# cd /media

[root@localhost media]# ls

VMware Tools

[root@localhost media]# ls -CF

VMware Tools/

[root@localhost media]# cd VMware Tools

bash: cd: VMware: 没有那个文件或目录

[root@localhost media]# cd VMware+Tools

bash: cd: VMware+Tools: 没有那个文件或目录

[root@localhost media]# cd VMwareTools

bash: cd: VMwareTools: 没有那个文件或目录

[root@localhost media]# cd

bash: syntax error near unexpected token `newline'

[root@localhost media]# cd 'VMwareTools'

bash: cd: VMwareTools: 没有那个文件或目录

[root@localhost media]# cd 'VMware Tools'

[root@localhost VMware Tools]# ls

[root@localhost ~]# cd mnt

bash: cd: mnt: 没有那个文件或目录

[root@localhost ~]# cd /

[root@localhost /]# cd mnt

[root@localhost mnt]# ls

VMwareTools

[root@localhost mnt]# cd VMwareTools

[root@localhost VMwareTools]# cd /tmp

[root@localhost tmp]# ls

gconfd-root scim-helper-manager-socket-root

keyring-CY3aky scim-panel-socket:0-root

mapping-root scim-socket-frontend-root

orbit-root ssh-gGuoci5900

le-0@localhost:0.0 virtual-root.1nKpbk

-0@localhost:0.0 vmware-tools-distrib

[root@localhost tmp]# cd vmware-tools-distrib

[root@localhost vmware-tools-distrib]# ls

bin doc etc FILES INSTALL installer lib

[root@localhost vmware-tools-distrib]# ./

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.

Uninstalling the tar installation of VMware Tools.

Stopping VMware Tools services in the virtual machine:

Guest operating system daemon: [确定]

The removal of VMware Tools 6.0.3 build-80004 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]

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/sbin]

In which directory do you want to install the library files?

[/usr/lib/vmware-tools]

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?

[yes]

In which directory do you want to install the documentation files?

[/usr/share/doc/vmware-tools]

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

want? [yes]

The installation of VMware Tools 6.0.3 build-80004 for Linux completed

successfully. You can decide to remove this software from your system at any

time by invoking the following command: "/usr/bin/".

Before running VMware Tools for the first time, you need to configure it by

invoking the following command: "/usr/bin/". 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: [确定]

Trying to find a suitable vmmemctl module for your running kernel.

None of the pre-built vmmemctl modules for VMware Tools is suitable for your

running kernel. Do you want this program to try to build the vmmemctl module

for your system (you need to have a C compiler installed on your system)?

[yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running

kernel? [/lib/modules/5xen/build/include]

Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmmemctl-only'

make -C /lib/modules/5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.

modules

make[1]: Entering directory `/usr/src/kernels/5-xen-i686'

CC [M] /tmp/vmware-config0/vmmemctl-only/os.o

SHIPPED /tmp/vmware-config0/vmmemctl-only/vmmemctl1.o

LD [M] /tmp/vmware-config0/vmmemctl-only/vmmemctl.o

Building modules, stage 2.

MODPOST

WARNING: could not find /tmp/vmware-config0/vmmemctl-only/. for

/tmp/vmware-config0/vmmemctl-only/vmmemctl1.o

CC /tmp/vmware-config0/vmmemctl-only/.o

LD [M] /tmp/vmware-config0/vmmemctl-only/

make[1]: Leaving directory `/usr/src/kernels/5-xen-i686'

cp -f ./../vmmemctl.o

make: Leaving directory `/tmp/vmware-config0/vmmemctl-only'

The module loads perfectly in the running kernel.

Trying to find a suitable vmhgfs module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your

running kernel. Do you want this program to try to build the vmhgfs module for

your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmhgfs module.

Building the vmhgfs module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmhgfs-only'

make -C /lib/modules/5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.

modules

make[1]: Entering directory `/usr/src/kernels/5-xen-i686'

CC [M] /tmp/vmware-config0/vmhgfs-only/backdoor.o

CC [M] /tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o

CC [M] /tmp/vmware-config0/vmhgfs-only/bdhandler.o

CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o

CC [M] /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o

CC [M] /tmp/vmware-config0/vmhgfs-only/cpNameLite.o

CC [M] /tmp/vmware-config0/vmhgfs-only/dbllnklst.o

CC [M] /tmp/vmware-config0/vmhgfs-only/dentry.o

CC [M] /tmp/vmware-config0/vmhgfs-only/dir.o

CC [M] /tmp/vmware-config0/vmhgfs-only/eventManager.o

CC [M] /tmp/vmware-config0/vmhgfs-only/file.o

CC [M] /tmp/vmware-config0/vmhgfs-only/filesystem.o

CC [M] /tmp/vmware-config0/vmhgfs-only/fsutil.o

CC [M] /tmp/vmware-config0/vmhgfs-only/hgfsBd.o

CC [M] /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o

CC [M] /tmp/vmware-config0/vmhgfs-only/inode.o

CC [M] /tmp/vmware-config0/vmhgfs-only/kernelStubsLinux.o

CC [M] /tmp/vmware-config0/vmhgfs-only/link.o

CC [M] /tmp/vmware-config0/vmhgfs-only/message.o

CC [M] /tmp/vmware-config0/vmhgfs-only/module.o

CC [M] /tmp/vmware-config0/vmhgfs-only/page.o

CC [M] /tmp/vmware-config0/vmhgfs-only/request.o

CC [M] /tmp/vmware-config0/vmhgfs-only/rpcin.o

CC [M] /tmp/vmware-config0/vmhgfs-only/rpcout.o

CC [M] /tmp/vmware-config0/vmhgfs-only/staticEscape.o

CC [M] /tmp/vmware-config0/vmhgfs-only/stubs.o

CC [M] /tmp/vmware-config0/vmhgfs-only/super.o

LD [M] /tmp/vmware-config0/vmhgfs-only/vmhgfs.o

Building modules, stage 2.

MODPOST

CC /tmp/vmware-config0/vmhgfs-only/.o

LD [M] /tmp/vmware-config0/vmhgfs-only/

make[1]: Leaving directory `/usr/src/kernels/5-xen-i686'

cp -f ./../vmhgfs.o

make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'

The module loads perfectly in the running kernel.

pcnet32 36805 0

Unloading pcnet32 module

Trying to find a suitable vmxnet module for your running kernel.

None of the pre-built vmxnet modules for VMware Tools is suitable for your

running kernel. Do you want this program to try to build the vmxnet module for

your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmxnet-only'

make -C /lib/modules/5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.

modules

make[1]: Entering directory `/usr/src/kernels/5-xen-i686'

CC [M] /tmp/vmware-config0/vmxnet-only/vmxnet.o

/tmp/vmware-config0/vmxnet-only/vmxnet.c: In function ‘vmxnet_probe_device’:

/tmp/vmware-config0/vmxnet-only/vmxnet.c:562: 警告:当将一个指针转换为大小不同的整数时给出警告

Building modules, stage 2.

MODPOST

CC /tmp/vmware-config0/vmxnet-only/.o

LD [M] /tmp/vmware-config0/vmxnet-only/

make[1]: Leaving directory `/usr/src/kernels/5-xen-i686'

cp -f ./../vmxnet.o

make: Leaving directory `/tmp/vmware-config0/vmxnet-only'

The module loads perfectly in the running kernel.

Trying to find a suitable vmblock module for your running kernel.

None of the pre-built vmblock modules for VMware Tools is suitable for your

running kernel. Do you want this program to try to build the vmblock module

for your system (you need to have a C compiler installed on your system)?

[yes]

Extracting the sources of the vmblock module.

Building the vmblock module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmblock-only'

make -C /lib/modules/5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.

modules

make[1]: Entering directory `/usr/src/kernels/5-xen-i686'

CC [M] /tmp/vmware-config0/vmblock-only/linux/block.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/control.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/dbllnklst.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/dentry.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/file.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/filesystem.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/inode.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/module.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/stubs.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/super.o

LD [M] /tmp/vmware-config0/vmblock-only/vmblock.o

Building modules, stage 2.

MODPOST

CC /tmp/vmware-config0/vmblock-only/.o

LD [M] /tmp/vmware-config0/vmblock-only/

make[1]: Leaving directory `/usr/src/kernels/5-xen-i686'

cp -f ./../vmblock.o

make: Leaving directory `/tmp/vmware-config0/vmblock-only'

The module loads perfectly in the running kernel.

[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service

provides a new communication capability with the Host, primarily for

development at the moment. Would you like to enable this feature? [no]

Detected version 7.1.

Please choose one of the following display sizes that X will start with (1 -

15):

[1] "640x480"

[2] "800x600"

[3] "1024x768"

[4] "1152x864"

[5] "1280x800"

[6]< "1152x900"

[7] "1280x1024"

[8] "1376x1032"

[9] "1400x900"

[10] "1400x1050"

[11] "1440x900"

[12] "1680x1050"

[13] "1600x1200"

[14] "1920x1200"

[15] "2364x1773"

Please enter a number between 1 and 15:

[6] 3

Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/ line 5856,

line 7.

Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/ line 5856,

line 7.

Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/ line 5893,

line 30.

Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/ line 5893,

line 30.

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 i686 Red Hat, Inc.

Current Operating System: Linux omain 5xen #1 SMP Tue Apr 29

13:45:57 EDT 2008 i686

Build Date: 02 April 2008

Build ID: xorg-x11-server 5

Before reporting problems, check

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.11509", Time: Wed Apr 27 18:36:49 2011

(++) Using config file: "/tmp/vmware-config0/XF86Config.11509"

X is running fine with the new config file.

Fatal server error:

xf86OpenConsole: VT_WAITACTIVE failed: Interrupted system call

Starting VMware Tools services in the virtual machine:

Switching to guest configuration: [确定]

Guest filesystem driver: [确定]

Mounting HGFS shares: [失败]

Guest memory manager: [确定]

Guest vmxnet fast network device: [确定]

Blocking file system: [确定]

DMA setup: [确定]

Guest operating system daemon: [确定]

The configuration of VMware Tools 6.0.3 build-80004 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/vmware-toolbox" during an X server session.

To use the vmxnet driver, restart networking using the following commands:

/etc/init.d/network stop

rmmod pcnet32

rmmod vmxnet

modprobe vmxnet

/etc/init.d/network start

To make use of the virtual printer, you will need to restart the CUPS service

Enjoy,

--the VMware team

[root@localhost vmware-tools-distrib]#

启动FTP服务

Red Hat Enterprise Linux Server release 5.2 (Tikanga)

Kernel 5xen on an i686

login: root

Password:

Last login: Thu Apr 28 14:59:16 on :0

[root@localhost ~]# cd /

[root@localhost /]# cd /etc/vsftpd

[root@localhost vsftpd]# ls

ftpusers user_list vsftpd_conf_

[root@localhost vsftpd]# vi user_list

# vsftpd userlist

# If userlist_deny=NO, only allow users in this file

# If userlist_deny=YES (default), never allow users in this file, and

# do not even prompt for a password.

# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers

# for users that are denied.

#root

bin

daemon

adm

lp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

"user_list" 20L, 362C written

[root@localhost vsftpd]# vi ftpusers

# Users that are not allowed to login via ftp

#root

bin

daemon

adm

lp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

"ftpusers" 15L, 126C written

[root@localhost vsftpd]# sestatus -b | grep ftp

allow_ftpd_anon_write off

allow_ftpd_full_access off

allow_ftpd_use_cifs off

allow_ftpd_use_nfs off

allow_tftp_anon_write off

ftp_home_dir off

ftpd_disable_trans off

ftpd_is_daemon on

httpd_enable_ftp_server off

tftpd_disable_trans off

[root@localhost vsftpd]# setsebool -p ftp_home_dir on

Usage: setsebool [ -P ] boolean value | bool1=val1

[root@localhost vsftpd]# setsebool -P ftpd_disable_trans on

[root@localhost vsftpd]# setsebool -P ftp_home_dir on

[root@localhost vsftpd]# service vsftpd restart

关闭 vsftpd:[确定]

为 vsftpd 启动 vsftpd:[确定]

[root@localhost vsftpd]#