RHEL9: Difference between revisions

From Dave-Wiki
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
  dnf install <nowiki>https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm</nowiki> -y
  dnf install <nowiki>https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm</nowiki> -y


  dnf install vim wget tmux htop iftop net-tools bind-utils traceroute tcpdump nmap mtr net-snmp-utils rsync git lsof usbutils yum-utils unzip python3 open-vm-tools nfs-utils cifs-utils keyutils -y
  dnf install vim wget tmux htop iftop net-tools bind-utils traceroute tcpdump nmap mtr net-snmp net-snmp-utils rsync git lsof usbutils yum-utils unzip python3 open-vm-tools nfs-utils cifs-utils keyutils samba-client -y


  dnf group install "Development Tools"
  dnf group install "Development Tools"
Line 22: Line 22:


# Copy custom CA cert(s) to <code>/etc/pki/ca-trust/source/anchors/</code>
# Copy custom CA cert(s) to <code>/etc/pki/ca-trust/source/anchors/</code>
# <code>$ sudo update-ca-trust extract</code>
# <code>sudo update-ca-trust extract</code>


=Networking=
=Networking=

Latest revision as of 14:56, 19 March 2025

Summary

Red Hat Enterprise Linux is a commercial Linux distribution developed by Red Hat, Inc. It is designed for businesses, offering a reliable, secure, and scalable operating system for servers, workstations, and cloud environments.

While it's a bummer that Red Hat stopped letting you freely download its product, you can still legally get a Red Hat Developer Subscriptions for Individuals, which allows you to install and use RHEL on up to 16 physical or virtual hosts for no cost.

New Deployment

A collection of common things to do on almost any new RHEL deployment.

Software To Install

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y
dnf install vim wget tmux htop iftop net-tools bind-utils traceroute tcpdump nmap mtr net-snmp net-snmp-utils rsync git lsof usbutils yum-utils unzip python3 open-vm-tools nfs-utils cifs-utils keyutils samba-client -y
dnf group install "Development Tools"

Install Custom CA Certificates

  1. Copy custom CA cert(s) to /etc/pki/ca-trust/source/anchors/
  2. sudo update-ca-trust extract

Networking

See NetworkManager.

Disk/Filesystem

See Linux Partitioning.

Users & Passwords

Show Password Expiration, etc.

chage -l bob
passwd --status bob

Remove Password Expiration

chage -E -1 bob

Expire A Password Immediately

chage -E 0 bob

Remove Password Validation Checking

chage -m 0 -M -1 bob

Disable a User's Shell

This prevents a user from logging in.

usrmod -s /sbin/nologin bob

List Sudo Privileges

sudo -l