红联Linux门户
Linux帮助

求助两个red hat 5.5问题~

发布时间:2010-08-24 08:51:27来源:红联作者:lineage827
[i=s] 本帖最后由 lineage827 于 2010-8-24 10:32 编辑 [/i]

问题一

安装N次 vmware tools 失败! 用的是7.1的完整版虚拟机

root@localhost vmware-tools-distrib]# ./vmware-install.pl
It appears that you are running a Xen kernel. Running this software on Xen
kernels has not been tested and is unsupported.

Would you like to continue (NOT RECOMMENDED)? [no] yes

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] yes

Uninstalling the tar installation of VMware Tools.

This program previously created the file /tmp/vm-support, and was about to
remove it. Somebody else apparently did it already.

File /tmp/vmware-uninstall-tools.pl is backed up to
/tmp/vmware-uninstall-tools.pl.old.0.

This program previously created the file /tmp/vmware-config-tools.pl, and was
about to remove it. Somebody else apparently did it already.

The removal of VMware Tools 8.4.3 build-282343 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/tmp] tmp

The path "tmp" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?
[/tmp] /tmp

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

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

The file /etc/vmware-tools that this program was about to install already
exists. Overwrite? [yes] yes

Unable to copy the source file ./installer/services.sh to the destination file
/etc/vmware-tools.

Execution aborted.





问题二:

我安装samba服务器的时候, VI修改smb.conf, zz退出保存。改了N次 文件又变回原样了????


是不是两个都是权限问题,要怎么改也麻烦说下...看了半天chmod 也没明白。

我输入 ls -i smb.conf 看到的文件权限 没有 -rw-r-r 之类的,只有一串数字 3834302 smb.conf
文章评论

共有 5 条评论

  1. pl_014 于 2011-02-23 09:57:51发表:

    引用:
    esc

    wq
    不是这样保存退出的吗
    baiyudong 发表于 2011-2-22 19:28

    vim下也可以用两个大写Z来保存退出,这样更方便一些。

  2. pl_014 于 2011-02-23 09:56:59发表:

    [i=s] 本帖最后由 pl_014 于 2011-2-23 09:58 编辑 [/i]

    问题一:感觉有两种可能,一是root对目标目录或所在的没有修改或删除的权限,试着设置一下权限,另外一种是./installer/services.sh对root没有读的权限。
    问题二:vim(注意,是vim,vi下可能不行)退出并保存是先按esc,再输入两个大写的z,如果楼主确实是这样操作的,请查看vim相关的错误提示,并在退出vim后用echo $?查看返回值,并参考相关资料。
    另外,以长格式显示文件的详细信息的参数是-l,不是-i,另外在RHEL、centos、fedora等下可以用ll来代替ls -l

  3. baiyudong 于 2011-02-22 19:30:28发表:

    看权限貌似用ll?

  4. baiyudong 于 2011-02-22 19:28:49发表:

    esc

    wq
    不是这样保存退出的吗

  5. baiyudong 于 2011-02-22 19:27:33发表:

    自己有什么内核这样查看:rpm -qa|grep kernel
    要先卸载xen内核,rpm -e --nodeps **********.rpm