|
META TOPICPARENT |
name="WebHome" |
Installing CentOS 7 |
|
- Add the noatime option to all ext3/ext4 filesystem options in /etc/fstab
- Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX
- Create a new grub2 config file using:
grub2-mkconfig > /boot/grub2/grub.cfg
|
|
< < |
- Edit /etc/rc.d/rc.local and add the following line:
/usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
|
> > |
- Edit /etc/rc.d/rc.local and add the following line:
TERM=linux /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
|
|
- The file /etc/rc.d/rc.local needs to be executable:
chmod a+x /etc/rc.d/rc.local
- Update the system:
yum upgrade
- Add a normal user, to log in as: useradd -m username
|
|
- Make sure root cannot log in via ssh by changing /etc/ssh/sshd_config:
-
PermitRootLogin without-password
- This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
|
|
< < |
- Disable SELinux by setting
SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to disable SELinux)
|
> > |
- Disable SELinux by setting
SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to fully disable SELinux)
|
|
- Disable the firewall (when in a secure network), by running:
systemctl disable firewalld
- Install the following packages:
|