2021-01-04 Build Up the Environment

Prepare Utils

  • Download Vmware 15.0
  • Download RHEL 8.0 (For the study purpose you may download the development version)

Install Vmware

Install Vmware

Create Virtual Machine

createVM

Install RHEL 8.0

Install RHEL 8.0

First-time Bootup Configuration and Package Management

  • Basic Configuration

     

    basicConf.png

  • RHEL 8.0 Package Management
    • RPM

      RPM Package Manager (RPM) (originally Red Hat Package Manager, now a recursive acronym) is a free and open-source package management system. The name RPM refers to the .rpm file format and the package manager program itself. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the Linux Standard Base.

      Although it was created for use in Red Hat Linux, RPM is now used in many Linux distributions such as Fedora, CentOS, OpenSUSE, OpenMandriva, and Oracle Linux. It has also been ported to some other operating systems, such as Novell NetWare (as of version 6.5 SP3), IBM's AIX (as of version 4), IBM I, and ArcaOS.
      The Yellowdog Updater, Modified (YUM) is a free and open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager. Though YUM has a command-line interface, several other tools provide graphical user interfaces to YUM functionality.

    • YUM

      YUM allows for automatic updates and package and dependency management on RPM-based distributions. Like the Advanced Package Tool (APT) from Debian, YUM works with software repositories (collections of packages), which can be accessed locally or over a network connection.

      Under the hood, YUM depends on RPM, which is a packaging standard for digital distribution of software, which automatically uses hashes and digisigs to verify the authorship and integrity of said software; unlike some app stores, which serve a similar function, neither YUM nor RPM provide built-in support for proprietary restrictions on copying of packages by end-users. YUM is implemented as libraries in the Python programming language, with a small set of programs that provide a command-line interface. GUI-based wrappers such as YUM Extender (yumex) also exist.

    • RPM vs YUM

      • Yum is a package manager and RPMs are the actual packages.
      • With yum you can add or remove the software. The software itself comes within an rpm.
      • The package manager allows you to install the software from hosted repositories and it will usually install dependencies as well.

RHEL 8 recovers root password

  1. Boot to the GRUB menu and enter the edit mode. Use your arrows to navigate to the menu item you would normally boot your RHEL 8 Linux system from. Press e to start editing the selected menu item.

    Boot to the GRUB menu and enter the edit mode

  2. Perform a break at an early stage of the boot process by typing rd.break at the end of the line starting with kernel=. Once ready press CTRL+X to start the RHEL 8 boot process.

    rd.break

  3. Check write access on the /sysroot mount point. By default this mount point is mounted only with the read-only (ro) access.
    mount | grep sysroot
    

    Check write access on the `/sysroot` mount point

  4. Remount the sysroot directory with read & write access.
    mount -o remount,rw /sysroot/
    mount | grep sysroot
    

    Remount the `sysroot` directory with read & write access

  5. Enter chroot system
    chroot /sysroot
    

    Enter chroot system

  6. Use the passwd command to set a new root password. Please note that when typing a new password the characters you type will not be visible. Simply keep typing.

    image.png

  7. Force file-system relabeling
    touch /.autorelabel
    

    Force file-system relabeling

  8. Exit the chroot system
    exit
    

    logout

  9. Logout to continue the normal boot\
    logout
    

    image.png

  10. Wait for the file-system relabeling to complete. Depending on your system speed and number of files this might take some time.

     

    wait and see

Extra Notion: Linux Bootup Progress

bootProgress.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值