Linux - Red Hat
Linux CentOS 6.5
Enable SSH
Start SSH Service
Add new user
useradd tst
passwd tst
password123
password123
Allow user root permissions
visudo
Search for line that says ##Allow root to run any commands anywhere
Copy root line and change username
Allow user sudo permissions
For this, add a user to a group called wheel
usermod -aG wheel tst
Modify visudo to enable wheel group
visudo
Change line
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
Delete the comment in front to %wheel and the new line will look like
%wheel ALL=(ALL) ALL
Linux RHEL 6.5
subscription-manager register
Username:
Password:
The system has been registered with ID: XXXXX
Linux CentOS 7
updatedb
nano /etc/systemd/logind.conf
systemctl restart systemd-logind.service
Red Hat Linux 7.3
-
GiB = 1,024 Megabytes
/var = install location
/home = user's home directories
/ = root file system, 10 GiB
swap = temp files, 1 GiB
<CTRL> + <l> (L) to wipe screen
mandb
Start vim→Command Mode→Insert mode
press 'a', 'i', 'o', or <INS> to go from Command Mode to Insert Mode
rest of commands are like vi
modes:
Editing
Managing
Useful
Linux CentOS 8
Linux CentOS 9
Create a local repo
RHEL 9 Create a Local Repo
mount /dev/cdrom /media/cdrom
vi /etc/yum.repos.d/rhel9.repo
cat /etc/yum.repos.d/rhel9.repo
[BaseOS]
name=BaseOS Packages Red Hat Enterprise Linux 9
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///media/cdrom/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[AppStream]
name=AppStream Packages Red Hat Enterprise Linux 9
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///media/cdrom/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
dnf clean all
dnf repolist
dnf install -y bind bind-utils
Backlinks