Rocky Linux Installation previously CentOS: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
'''Disable SELINUX:/etc/selinux/config, set SELINUX to disabled;''' | '''Disable SELINUX:/etc/selinux/config, set SELINUX to disabled;''' | ||
* ''sestatus'' to check status AND check /boot/efi/EFI/centos/grub, edit /etc/default/grub, <s>look for line that starts with "linux..." and ends with a UTF setting, add selinux=0 to the end of the line.</s> | *''sestatus'' to check status AND check /boot/efi/EFI/centos/grub, edit /etc/default/grub, <s>look for line that starts with "linux..." and ends with a UTF setting, add selinux=0 to the end of the line.</s> | ||
*Alternatively or if Issues Occur: When disabling SELINUX, reboot, make boot selection (do NOT press enter), press e, edit grub file, look for line near end that usually starts of with "linux..." and ends with a UTF setting, add selinux=0 to the end of the line. (Thanks to: https://www.virtualramblings.com/failed-to-load-selinux-policy-freezing/) | *Alternatively or if Issues Occur: When disabling SELINUX, reboot, make boot selection (do NOT press enter), press e, edit grub file, look for line near end that usually starts of with "linux..." and ends with a UTF setting, add selinux=0 to the end of the line. (Thanks to: https://www.virtualramblings.com/failed-to-load-selinux-policy-freezing/) | ||
Line 37: | Line 37: | ||
'''For Showing Useful Information While Booting, edit the /etc/default/grub File (get rid of quiet rhel Directives) and then use this command(s) (equivalent to what BootICE does for the Windows BCD File);''' | '''For Showing Useful Information While Booting, edit the /etc/default/grub File (get rid of quiet rhel Directives) and then use this command(s) (equivalent to what BootICE does for the Windows BCD File);''' | ||
* For UEFI / EFI Boot: grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg or | *For UEFI / EFI Boot: grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg or | ||
* For BIOS Boot: grub2-mkconfig -o /boot/grub2/grub.cfg | *For BIOS Boot: grub2-mkconfig -o /boot/grub2/grub.cfg | ||
* If grub-mkconfig is "not found": notice the subtle difference above: grub2-mkconfig (not grub(WITHOUT THE NUMBER 2)-mkconfig) | *If grub-mkconfig is "not found": notice the subtle difference above: grub2-mkconfig (not grub(WITHOUT THE NUMBER 2)-mkconfig) | ||
'''Firewall''': If using something like Shorewall, get rid of FirewallD: yum remove firewalld* --noautoremove | '''Firewall''': If using something like Shorewall, get rid of FirewallD: yum remove firewalld* --noautoremove | ||
Line 53: | Line 53: | ||
'''SAMBA / SMB:''' | '''SAMBA / SMB:''' | ||
* smbpasswd -a WhatEverUserName | *smbpasswd -a WhatEverUserName | ||
* Remember, if SELINUX is enabled it messes up how SAMBA / SMB operates (can be very puzzling and frustrating): edit /etc/selinux/config and set to disabled (...yes I know, but when it's more hassle than it's worth forget it). | *Remember, if SELINUX is enabled it messes up how SAMBA / SMB operates (can be very puzzling and frustrating): edit /etc/selinux/config and set to disabled (...yes I know, but when it's more hassle than it's worth forget it). | ||
'''REMI (for multiple PHP version)''' | '''REMI (for multiple PHP version)''' | ||
Line 90: | Line 90: | ||
'''For more information;''' | '''For more information;''' | ||
* https://docs.rockylinux.org/gemstones/nmtui/ | *https://docs.rockylinux.org/gemstones/nmtui/ | ||
* https://www.redhat.com/en/blog/rhel-9-networking-say-goodbye-ifcfg-files-and-hello-keyfiles | *https://www.redhat.com/en/blog/rhel-9-networking-say-goodbye-ifcfg-files-and-hello-keyfiles | ||
For things like Webmin, seems to work OK. Shorewall and other deeper IP stuff, perhaps not so much | For things like Webmin, seems to work OK. Shorewall and other deeper IP stuff, perhaps not so much | ||
Line 117: | Line 117: | ||
**service network restart OR systemctl restart network | **service network restart OR systemctl restart network | ||
***If needed: yum install network-scripts | ***If needed: yum install network-scripts | ||
Renaming and Interface (AKA getting rid of the freaky Rocky8 Network Interface names); | |||
* <code>ip link set enp2s0 name eth0</code> | |||
'''Disabling IPv6 (hint, it's in the GRUB configuration file);''' | '''Disabling IPv6 (hint, it's in the GRUB configuration file);''' |