Rocky Linux Installation previously CentOS: Difference between revisions
mNo edit summary |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 32: | Line 32: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*Webmin Old (now there's a repository available): Install Webmin RPM via Yum (it will also install dependencies automatically) | *Webmin Old (now there's a repository available): Install Webmin RPM via Yum (it will also install dependencies automatically); | ||
**curl -o setup-repos.sh <nowiki>https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh</nowiki> | |||
**sh setup-repos.sh | |||
==Rocky Linux 9 (New Stuff)== | ==Rocky Linux 9 (New Stuff)== | ||
Line 40: | 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 45: | 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 77: | 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 84: | 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 102: | 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 123: | Line 141: | ||
*Pick a NIC port, assign an 'outlandish' (IE, you're not going to use it in the future) IP Address to it, make sure it works and then WHACK all the other ethernet devices / interfaces , using Webmin (handy if there are a bunch of NICs) or via command line. | *Pick a NIC port, assign an 'outlandish' (IE, you're not going to use it in the future) IP Address to it, make sure it works and then WHACK all the other ethernet devices / interfaces , using Webmin (handy if there are a bunch of NICs) or via command line. | ||
*Rename Interfaces if desired (AKA getting rid of the freaky Rocky8 Network Interface names), see below example where enp2s0 is renamed to eth0; | *Rename Interfaces if desired (AKA getting rid of the freaky Rocky8 Network Interface names), see below example where enp2s0 is renamed to eth0; | ||
**<code> | **<code>ifconfig WhatEverName down</code> | ||
**<code>ip link set enp2s0 name eth0</code> | **<code>ip link set enp2s0 name eth0</code> | ||
***<code>...then in /etc/default/grub: GRUB_CMDLINE_LINUX="net.ifnames=0"</code> | |||
***<code>...then: grub2-mkconfig /boot/grub2/grug.cfg</code> | |||
***<code>...then make sure the Hardware Address is defined in ifcfg-ethX: HWADDR=WhatEverMACAddress</code> | |||
**<code>mv /etc/sysconfig/network-scripts/ifcfg-enp2s0 /etc/sysconfig/network-scripts/ifcfg-eth0/</code> | **<code>mv /etc/sysconfig/network-scripts/ifcfg-enp2s0 /etc/sysconfig/network-scripts/ifcfg-eth0/</code> | ||
**<code>nano /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 (NAME Directive too if present)</code> | **<code>nano /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 (NAME Directive too if present)</code> | ||
Line 152: | Line 173: | ||
https://www.tecmint.com/disable-ipv6-rhel-rocky-almalinux/ | https://www.tecmint.com/disable-ipv6-rhel-rocky-almalinux/ | ||
...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 193: | Line 220: | ||
**Some other comments here (but keep in mind this dude is trying to turn off HTTPS): https://stackoverflow.com/questions/57972164/run-phpmyadmin-without-ssl-https | **Some other comments here (but keep in mind this dude is trying to turn off HTTPS): https://stackoverflow.com/questions/57972164/run-phpmyadmin-without-ssl-https | ||
=== FSTAB === | ===FSTAB=== | ||
Oh, where to begin. Well, the only solution as of 2023 is to reboot. Go ahead. Try it. Research it. And see if you come to any conclusion other than the last sentence in this section. | Oh, where to begin. Well, the only solution as of 2023 is to reboot. Go ahead. Try it. Research it. And see if you come to any conclusion other than the last sentence in this section. | ||
Line 203: | 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 393: | 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 | |||