Skip to content
Search RunEntLinux

Searches general documentation on RunEntLinux. Each distribution has its own documentation search.

    Browse this documentation

    Applies to CentOS Stream 9 & 10 / AlmaLinux 9.x & 10.x / Rocky Linux 9.x & 10.x

    After the system installation is complete, follow these steps to finish the initial configuration and bring the system to a secure, usable state.

    • Set the timezone and hostname
    • Update the system to the latest version
    • Install commonly used essential tools
    • Configure basic security settings
    • Completed system installation
    • Logged into the system (locally or via SSH)
    • Have sudo privileges
    1. Check the current timezone

      Terminal window
      $ timedatectl
    2. Set the timezone

      Terminal window
      $ sudo timedatectl set-timezone Asia/Shanghai
    3. Enable NTP time synchronization

      Terminal window
      $ sudo timedatectl set-ntp yes
    4. Verify

      Terminal window
      $ timedatectl

      Confirm that Time zone shows Asia/Shanghai and NTP service is active.

    Set hostname
    $ sudo hostnamectl set-hostname my-server
    Verify
    $ hostnamectl
    Update all installed packages
    $ sudo dnf update -y
    Reboot if there was a kernel update
    $ sudo reboot
    Install commonly used tools
    $ sudo dnf install -y \
    vim-enhanced \
    wget \
    curl \
    tar \
    bash-completion \
    net-tools \
    bind-utils \
    lsof \
    tmux
    # htop is not in BaseOS/AppStream; it comes from EPEL: dnf install -y epel-release first
    sudo dnf install -y htop

    Review running services and disable any that are not needed:

    List running services
    $ systemctl list-units --type=service --state=running

    Common services that can be disabled (depending on your actual needs):

    If Bluetooth is not needed (typically unnecessary on servers)
    $ sudo systemctl disable --now bluetooth