• vmware 中安装linux 后如何安装vmtool


    连接:http://hi.baidu.com/kedulinjl/item/023fec5aa813810ae6c4a556 

    vmware 中安装linux 后如何安装vmtool
      在 vmware软件中 点击setting->vmware tools install
      mount /dev/cdrom /mnt/cdrom
      
      cd /mnt/cdrom
      
      里面就有显卡驱动
      
      登录root
      点击setting->vmware tools install
      cd /tmp
      tar zxvf vmware-linux-tools.tar.gz
      cd vmware-linux-tools
      ./install.pl
      reboot
      
      ---------------------------详细安装过程如下-----------------------
      
      有个文件,先复制到root/temp目录下。然后解压安装就行了。详细的安装步骤如下:
      先以root身份登入。
      VMware Tools所在位置:VMware 安装路径 \VMware\VMware Workstation\linux.iso
      
      [root@rd01 ~]# mount /cdrom
      # 有时可能加载不了,这时就要先将系统关闭,再手动指定 ISO 映像,看下图
      [root@rd01 ~]# cd /cdrom
      [root@rd01 ~]# ls -a
      [root@rd01 ~]# cp VMwareTools-5.5.1-19175.tar.gz /tmp
      [root@rd01 ~]# cd /tmp
      [root@rd01 ~]# tar zxpf VMwareTools-5.5.1-19175.tar.gz
      [root@rd01 ~]# cd vmware-tools-distrib
      [root@rd01 vmware-tools-distrib]# ./vmware-install.pl
      Creating a new installer database using the tar3 format.
      
      Installing the content of the package.
      
      # 安装过程的画面,全部使用默认值,一直按 Enter 就对了
      
      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]
      
      Thepath "/usr/lib/vmware-tools" does not exist currently. This programisgoingto create it, including needed parent directories. Is thiswhatyou want?
      [yes]
      
      In which directory do you want to install the documentation files?
      [/usr/share/doc/vmware-tools]
      
      Thepath "/usr/share/doc/vmware-tools" does not exist currently.Thisprogram isgoing to create it, including needed parent directories.Isthis what you want?
      [yes]
      
      The installation of VMware Tools 5.5.1 build-19175 for Linux completed
      successfully. You can decide to remove this software from your system at any
      time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
      
      Before running VMware Tools for the first time, you need to configure it by
      invoking the following command: "/usr/bin/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: [ 确定 ]
      Trying to find a suitable vmhgfs module for your running kernel.
      
      The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
      
      pcnet32 30153 0
      Unloading pcnet32 module
      
      Trying to find a suitable vmxnet module for your running kernel.
      
      The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
      
      
      
      Detected X.org version 6.8.
      
      关闭控制台鼠标服务: [ 确定 ]
      启动控制台鼠标服务: [ 确定 ]
      
      Please choose one of the following display sizes (1 - 13):
      
      # 显示分辨率,这里是以 1024x768 为例
      
      # VMware Tools 安装的时候,会自动修改 X server 的配置文件
      
      [1] "640x480"
      [2]< "800x600"
      [3] "1024x768"
      [4] "1152x864"
      [5] "1280x800"
      [6] "1152x900"
      [7] "1280x1024"
      [8] "1376x1032"
      [9] "1400x1050"
      [10] "1680x1050"
      [11] "1600x1200"
      [12] "1920x1200"
      [13] "2364x1773"
      Please enter a number between 1 and 13:
      
      [2] 3
      
      X Window System Version 6.8.2
      Release Date: 9 February 2005
      X Protocol Version 11, Revision 0, Release 6.8.2
      Build Operating System: Linux 2.6.9-34.EL i686 [ELF]
      Current Operating System: Linux rd01.domain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686
      Build Date: 04 May 2006
      Build Host: x8664-build.centos.org
      
      Before reporting problems, check http://wiki.X.Org
      to make sure that you have the latest version.
      Module Loader present
      OSKernel: Linux version 2.6.9-34.EL () (gccversion3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Wed Mar 8 00:07:35 CST 2006P
      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.3131", Time: Mon Jun 12 20:57:34 2006
      (++) Using config file: "/tmp/vmware-config0/XF86Config.3131"
      (WW) VMWARE(0): Failed to set up write-combining range (0xf0000000,0x1000000)
      
      X is running fine with the new config file.
      
      Starting VMware Tools services in the virtual machine:
      Switching to guest configuration: [ 确定 ]
      Guest filesystem driver: [ 确定 ]
      DMA setup: [ 确定 ]
      Guest operating system daemon: [ 确定 ]
      
      The configuration of VMware Tools 5.5.1 build-19175 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 XFree86 session.
      
      To use the vmxnet driver, restart networking using the following commands:
      /etc/init.d/network stop
      rmmod pcnet32
      rmmod vmxnet
      depmod -a
      modprobe vmxnet
      /etc/init.d/network start
      
      Enjoy,
      
      --the VMware team
      
      [root@rd01 vmware-tools-distrib]# shutdown -r now
      
      # 修改完成之后,重新启动计算机,让 VMware Tools 生效
      
      
      VMware 装完了 Ubuntu 8.10,怎么用命令安装 vmtool
      在VMware虚拟机的菜单中点击:虚拟机->安装VMware 工具->install。
      系统自动挂载VMware Tools的虚拟光驱,并显示在桌面。
      进去VMware Tools的虚拟光驱里,把vmware-tools-distrib复制到/tmp目录。
      在终端输入以下命令:cd /tmp/VMwareTools-5/vmware-tools-distrib(进入vmware-tools-distrib目录)。
      必须要用root权限,输入:sudo -s 回车输入密码,输密码时候是看不见的,取得root权限
      输入:./vmware-install.pl(执行vmware-install.pl文件)。
      然后一路“回车”,就OK。
      输入reboot命令(重新启动)。
      
      或者:把文件拖到了主文件夹下
      终端:cd vmware-tools-distrib
      之后 sudo ./vmware-install.pl
      
      
      vm中安装vm   tool的步骤:
      一.guest系统(虚拟系统)为windows的情况
      1.进入guest系统,击菜单上的“安装VM   TOOLS”,此时,在windows系统的桌面上会出现vmtool的安装程序,然后双击安装就可以了
      
      二.guest系统(虚拟系统)为linux的情况
      前提:linux下安装vmtool必须要在文本模式下才行(不能在图形界面下安装)
      使用命令:/sbin/telinit   3   进入文本模式
      1.进入guest系统,击菜单上的“安装VM   TOOLS”(此时相当与把vmtool的安装碟子插入了cdrom)
      2.使用以下命令将cdrom的内容mount到系统上来
      mount   /dev/cdrom   /mnt(有时候/dev/cdrom设备文件也可以是/dev/hdc)
      3.进入/mnt文件夹,把里面的vm.....tar.gz拷贝到某个文件夹下
      4.进入vm.....tar.gz所在的文件夹下,将vm.....tar.gz解压,解压后会产生vmware-tool-distrb的   文件夹,进入vmware-tool-distrb文件夹,执行./vmware-install.pl进行安装
      
      vmtool有蛮多作用:
      1。美化你的图形界面
      2。提高虚拟系统的稳定
      3。使得你的host系统跟guest系统可以共享文件,而不用设置samba   ,ftp等之类的服务
      
      
      如何切换到root用户 --- 终端命令行方式
      这里讲的切换到root用户,并不是在图形界面中用root权限打开文件浏览器,而是直接在命令行中获得root权限。
      该方法我已经测试过了,可以很好的执行。
      
      众所周知,UNIX/LINUX拥有很多丰富的命令,这些命令均是直接通过命令行的方式执行的,其强大而丰富的功能绝非鼠标在界面点击所能比的。下面分享一个非常简单的命令,在命令行状态下切换到root用户。
      
      先说一下问题的起因吧:
      我在工作中使用Solaris,因此非常习惯使用su(switch user)切换到root用户,进行一些必要的操作。比如:查看修改系统文件,安装package。这两天玩Q5的命令行(打开终端窗口就可以了),发现缺省的是“user”用户。于是就想su到root。但是切换的时候需要输入root密码,这下我可懵了,不知道root密码是啥呀!不管了,先猜猜吧。第一次我试了"root"作为密码,不对!第二次又试了空串,也不对!郁闷之余,只好到Ubuntu的社区去查询。
      
      解决方法:
      先说说我查到的有关Ubuntu的一些信息。
      据Ubuntu社区上的帖子说,Ubuntu中的root没有固定的密码。它的密码是动态改变的。据帖子说,是每隔5分钟就自动改变root密码。这样能够获得非常高的安全性。是啊,安全是安全了,难道俺就没办法获得root密码了吗。继续查,终于发现了一个非常简单的命令。咱们一般都是用sudo来获得root权限,进行有关操作的。但是请注意sudo只是允许操作人获得root权限,并不是你真正的切换到root用户了。并且,sudo并不能执行所有的root权限的命令,它只能是root权限的一个子集,你的实际用户还是user。
      如果要切换到root用户,只需要简单的执行命令 "sudo su" 即可。
      切换到root的优势是显而易见的,能够完全获得root权限。另外还有个小好处,就是能少敲一些字符,比如再执行某些需要高权限的命令就不需要带sudo前缀了。
      退出root也很简单,只要执行exit命令,就可以退回到user用户。
      
      
      据我所知,sudo -i也可以。
      
      希望大家继续提供切换到root用户的方法。
      
      sudo -s
      
      尽量使用 “sudo su -”
      其中“-”是使用了root的环境变量,没有“-”的环境变量还是普通用户,一些命令会使用不了!
      
      sudo passwd root
      it is ok to change the root 's password.

  • 相关阅读:
    服务器搭建FTP
    VS2012 +OpenCv2.4.4配置
    python3:语法变动 及新特性
    Strlen()与sizeof()
    find命令下的atime,ctime,mtime
    C语言实现线性表
    去除zabbix calculate 模式下,有时候分母为零的情况(Cannot evaluate expression: division by zero. )
    C语言面试题汇总之一
    全局变量/静态全局变量/局部变量/静态局部变量的异同点
    MFC的自定义消息的定义与使用
  • 原文地址:https://www.cnblogs.com/yunlong3727/p/3083305.html
Copyright © 2020-2023  润新知