Linux

CentOS 8 基本配置

/ 65 阅读 / 约 6556 字

一、安装 VMware Tools

  1. 先移除自带的 open-vm-tools

    sudo yum remove open-vm-tools
    
  2. 虚拟机设置中【CD/DVD】ISO 映像文件设置为 VMware 安装目录下的 linux.iso

    image20210419212617408.pngimage20210419205152666.png

  3. 之后桌面会弹出挂载的提示框,打开即可看到内容,若没有,可尝试款开驱动连接,再次连接即可。

  4. 将 VMwareTools-xxxx.tar.gz 拷贝至一个文件中,使用命令 tar -zxvf xxx.tar.gz 解压文件

  5. 进入解压得到的文件夹,执行 sudo ./vmware-install.pl 进行安装

    open-vm-tools packages are available from the OS vendor and VMware recommends 
    using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more 
    information.
    Do you still want to proceed with this installation? [yes] # 确定安装
    
    INPUT: [yes]
    
    Installing VMware Tools.
    
    In which directory do you want to install the binary files? 
    [/usr/bin] # 默认回车
    
    INPUT: [/usr/bin]  default
    
    What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
    [/etc/rc.d] # 默认回车
    
    INPUT: [/etc/rc.d]  default
    
    What is the directory that contains the init scripts? 
    [/etc/rc.d/init.d] # 默认回车
    
    INPUT: [/etc/rc.d/init.d]  default
    
    In which directory do you want to install the daemon files? 
    [/usr/sbin] # 默认回车
    
    INPUT: [/usr/sbin]  default
    
    In which directory do you want to install the library files? 
    [/usr/lib/vmware-tools] # 默认回车
    
    PUT: [/usr/lib/vmware-tools]  default
    
    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] # 默认回车
    
    INPUT: [yes]  default
    
    In which directory do you want to install the common agent library files? 
    [/usr/lib] # 默认回车
    
    INPUT: [/usr/lib]  default
    
    In which directory do you want to install the common agent transient files? 
    [/var/lib] # 默认回车
    
    INPUT: [/var/lib]  default
    
    In which directory do you want to install the documentation files? 
    [/usr/share/doc/vmware-tools] # 默认回车
    
    INPUT: [/usr/share/doc/vmware-tools]  default
    
    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] # 默认回车
    
    INPUT: [yes]  default
    
    The installation of VMware Tools 10.3.22 build-15902021 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".
    
    # 可使用 "/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] # 默认回车
    
    INPUT: [yes]  default
    
    Initializing...
    
    
    Making sure services for VMware Tools are stopped.
    
    正在停止vmware-tools(透过 systemctl):                   [  确定  ]
    
    
    The module vmci has already been installed on this system by another installer 
    or package and will not be modified by this installer.
    
    The module vsock has already been installed on this system by another installer
    or package and will not be modified by this installer.
    
    The module vmxnet3 has already been installed on this system by another 
    installer or package and will not be modified by this installer.
    
    The module pvscsi has already been installed on this system by another 
    installer or package and will not be modified by this installer.
    
    The module vmmemctl has already been installed on this system by another 
    installer or package and will not be modified by this installer.
    
    The VMware Host-Guest Filesystem allows for shared folders between the host OS 
    and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
    to enable this feature? [yes] # 启用共享文件夹,默认回车
    
    The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
    upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)
    
    The vmblock enables dragging or copying files between host and guest in a 
    Fusion or Workstation virtual environment.  Do you wish to enable this feature?
    [yes] # 主机和虚拟机之间拖动复制文件,默认回车
    
    INPUT: [yes]  default
    
    
    Skipping configuring automatic kernel modules as no drivers were installed by 
    this installer.
    
    Disabling timer-based audio scheduling in pulseaudio.
    
    Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
    if you want to enable Common Agent (caf). [yes] # 是否启动来宾账户,输入 no 回车
    
    NPUT: [no]
    
    
    
    Detected X server version 1.20.8
    
    
    
    Distribution provided drivers for Xorg X server are used.
    
    Skipping X configuration because X drivers are not included.
    
    
    Skipping rebuilding initrd boot image for kernel as no drivers to be included 
    in boot image were installed by this installer.
    
    Generating the key and certificate files.
    Successfully generated the key and certificate files.
    The configuration of VMware Tools 10.3.22 build-15902021 for Linux for this 
    running kernel completed successfully.
    
    You must restart your X session before any mouse or graphics changes take 
    effect.
    
    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/vmware-user
    2. Log out and log back into your desktop session
    3. Restart your X session.
    
    # 想要生效应该执行 "/usr/bin/vmware-user" 或者注销账户重新登录,建议直接重启
    
    Warning no default label for /tmp/vmware-block-restore-37150.0/tmp_file
    Enjoy,
    
    --the VMware team
    

二、开启文件夹共享

虚拟机设置中,选择【选项】选项卡,共享文件夹设置文件夹

image20210419205152666.png

使用命令 cd /mnt/hgfs 打开共享文件位置,ls 命令显示共享的文件夹

[careyq@careyq hgfs]$ cd /mnt/hgfs/
[careyq@careyq hgfs]$ ls
LinuxShare

三、设置终端快捷键

打开【设置】-【设备】-【Keyboard】,最下面添加快捷键

image20210419213146704.png

  • 名称:Terminal
  • 命令:/usr/bin/gnome-terminal
  • 快捷键:自定义

四、配置 yum 更新源

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

yum update # 更新一下

五、安装 GCC 套件

sudo dnf group install "Development Tools"

gcc --version # 查看版本号
最后更新: 2021-07-31 22:20:28
版权声明: 本文著作权归 [ CareyQ ] 享有,均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处!
评论
  • 🇨🇳
  • 👆
  • 👇
  • 👈
  • 👉
  • 👊
  • 👋
  • 👌
  • 👍
  • 👎
  • 👏
  • 👨‍👦
  • 👨‍👧
  • 👨‍👨‍👦
  • 👨‍👨‍👧
  • 😀
  • 😁
  • 😂
  • 😃
  • 😄
  • 😅
  • 😆
  • 😇
  • 😈
  • 😉
  • 😊
  • 😋
  • 😌
  • 😍
  • 😎
  • 😏
  • 😐
  • 😑
  • 😒
  • 😓
  • 😔
  • 😕
  • 😖
  • 😗
  • 😘
  • 😙
  • 😚
  • 😛
  • 😜
  • 😝
  • 😞
  • 😟
  • 😠
  • 😡
  • 😢
  • 😣
  • 😤
  • 😦
  • 😧
  • 😨
  • 😩
  • 😪
  • 😫
  • 😬
  • 😭
  • 😮
  • 😯
  • 😰
  • 😱
  • 😲
  • 😳
  • 😴
  • 😵
  • 😶
  • 😷
  • 😸
  • 😹
  • 😺
  • 😻
  • 😼
  • 😽
  • 😾
  • 😿
  • 🙀
  • 🙁
  • 🙂
  • 🙃
  • 🙄
还没有评论 /(ㄒoㄒ)/~~