Rocky Linux Installation previously CentOS: Difference between revisions

mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 42: Line 42:
*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)
...but that's not enough these days.  You'll also need to use the GRUBBY command to modify the Kernel Parameters?  Yup, the same Kernel Parameters that can be modified in /etc/default/grub and are reflected in /boot/grub2/grub.cfg (but apparently don't do a damn thing as far a Kernel Parameters) are instead modified in the following way (this is similar to turning on a light switch and also being required to clap to have a light come on);
*grubby --info=ALL<span> </span>: Shows current settings, from https://forums.rockylinux.org/t/how-do-you-view-grub-command-line-options/11625
*Generally speaking, here's the syntax: grubby --update-kernel=ALL --args="new_option" OR grubby --update-kernel=ALL --remove-args="option_to_remove"
*To disable IPv6: grubby --update-kernel=X --args="ipv6.disable=1"
*To have useful "DMESG" information while booting instead of an Appled Up boring screen;
**grubby --update-kernel=ALL --remove-args="rhgb"
**grubby --update-kernel=ALL --remove-args="quiet"


'''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 47: Line 56:
*
*


'''Cockpit AddOns;'''
'''Cockpit and AddOns;'''


*...make sure it is enabled and started (not so by default)
*/etc/cockpit/disallowed-users (get rid of it to enable ROOT User)
*From: https://github.com/45Drives/cockpit-file-sharing
*From: https://github.com/45Drives/cockpit-file-sharing
**Don't use this one (too much of a hastle): Samba PlugIn: dnf install <nowiki>https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.2.9/cockpit-file-sharing-3.2.9-2.el8.noarch.rpm</nowiki>
**Don't use this one (too much of a hastle): Samba PlugIn: dnf install <nowiki>https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.2.9/cockpit-file-sharing-3.2.9-2.el8.noarch.rpm</nowiki>
Line 79: Line 90:
<nowiki>*</nowiki> DNF = "Next Generation" of YUM
<nowiki>*</nowiki> DNF = "Next Generation" of YUM


Gnome Initial GUI / Desktop Setup
Gnome Initial GUI / Desktop Setup;


...there are so many suggested solutions that don't work when one wants a single user (root)
...there are so many suggested solutions that don't work when one wants a single user (root)
Line 86: Line 97:
*https://askubuntu.com/questions/1028822/disable-the-new-ubuntu-18-04-welcome-screen/1030095#1030095
*https://askubuntu.com/questions/1028822/disable-the-new-ubuntu-18-04-welcome-screen/1030095#1030095
*The best one that works every time is this: yum remove gnome-initial-setup (can't run if it "don't" exist!)
*The best one that works every time is this: yum remove gnome-initial-setup (can't run if it "don't" exist!)
*Disable Lock Screen;
**Settings, Privacy, Screen Lock


===Networking===
===Networking===
Line 104: Line 117:
**lshw -class network (notice the logical name)
**lshw -class network (notice the logical name)
**...and for detailed information on as specific adapter: ethtool WhatEverLogicalNameOfAdapter
**...and for detailed information on as specific adapter: ethtool WhatEverLogicalNameOfAdapter
*Webmin is a bit wonky with NetworkManager.
*Stop the "...renamed from eth0" 'consistent naming' 'capability' (from: https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-change-network-interface-name-to-eth0-on-centos-8-rhel-8.html)
**


'''NetworkManager (if it is necessary to use it);'''
'''NetworkManager (if it is necessary to use it);'''
Line 159: Line 175:


...and watch out for this annoying error from PING every time it is used: Address family not supported by protocol
...and watch out for this annoying error from PING every time it is used: Address family not supported by protocol
'''Update Check: Disabling'''
There's a bunch of different things to do with a lot of 'it depends', so impossible to cover everything, sadly, look it up and resign one's self to doing a bunch of different things.


===Boot Time===
===Boot Time===
Line 210: Line 230:


...and in the end test with the plain MOUNT command to find none of it works.  So reboot.
...and in the end test with the plain MOUNT command to find none of it works.  So reboot.
==Obnoxious Issues==
===Error: Environment block too small ( in regards to grubenv )===
Source: https://www.linuxsysadmins.com/grub2-editenv-block-too-small/


==Other Notes==
==Other Notes==
After GUI installation, get it to boot to command line: <nowiki>http://www.itzgeek.com/how-tos/linux/centos-how-tos/change-default-runlevel-in-centos-7-rhel-7.html#axzz3PuGwJi3X</nowiki>
After GUI installation, get it to boot to command line: <nowiki>http://www.itzgeek.com/how-tos/linux/centos-how-tos/change-default-runlevel-in-centos-7-rhel-7.html#axzz3PuGwJi3X</nowiki>
Lock


*For Command Line instead of GUI interface:  systemctl set-default multi-user.target
*For Command Line instead of GUI interface:  systemctl set-default multi-user.target
Line 400: Line 427:


MailWatch and MailScanner note; Version 5 for MailScanner changes some stuff including directory files, see the ReadMe in the installation source folder.
MailWatch and MailScanner note; Version 5 for MailScanner changes some stuff including directory files, see the ReadMe in the installation source folder.
...path issue on Rocky Linux: MailWatchConf.pm and other files here: /usr/share/MailScanner/perl/custom