Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


centos_8_migration_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
centos_8_migration_notes [2020/10/15 18:32] juckinscentos_8_migration_notes [2022/06/08 16:03] (current) juckins
Line 1: Line 1:
 ==== CentOS 8 Migration Notes ==== ==== CentOS 8 Migration Notes ====
  
-<color #ed1c24>**Below is copied from [[centos_7_migration_notes|CentOS 7 Migration Notes]] so modify as needed.**</color>+When ssh'ing into a CentOS 8 machine via ssh and xterm, slow logouts usually occur. The fix is to not include ssh -X or ssh -Y. 
 + 
 +Consult [[virtualbox_for_centos_stream_notes|Virtual Box running CentOS8 Stream]] notes if dnf updates are slow 
 + 
 + 
 +Fix php for phpmyadmin: 
 + 
 +  dnf install php-gd php-ldap php-mysqlnd php-pecl-mcrypt php-pecl-zip 
 +   
 +Also comment out the cookie validity setting in config.inc.php 
 + 
 +Secure the mariadb 
 + 
 +Fix php.ini from known good config 
 + 
 +Configure $HOME/.vimrc as the following: 
 + 
 +  autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o 
 + 
 +  # python3 -m pip install --upgrade pip 
 +  # python3 -m pip install dictor 
 +  # python3 -m pip install wheel 
 +  # python3 -m pip install httplib2 
 +  # python3 -m pip install PyMySQL 
 + 
 +PyMySQL v0.9.3 has been upgraded to v1.0.2 and requires modification to "connect" statement.
  
 Other fixes: Other fixes:
Line 30: Line 55:
     * uninstall [[https://phoenixnap.com/kb/setup-configure-modsecurity-on-apache|mod_security]] if necessary     * uninstall [[https://phoenixnap.com/kb/setup-configure-modsecurity-on-apache|mod_security]] if necessary
   * [[https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-8|Add https and http to firewall rules]]   * [[https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-8|Add https and http to firewall rules]]
 +    * ''firewall-cmd --zone=public --add-service=http --permanent''
 +    * ''firewall-cmd --zone=public --add-service=https --permanent''
   * <color #ed1c24>MySQL / MariaDB Database and users</color>   * <color #ed1c24>MySQL / MariaDB Database and users</color>
     * [[https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password|Reset mysql root password]]     * [[https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password|Reset mysql root password]]
Line 64: Line 91:
   * Note firewall rules   * Note firewall rules
     * [[https://serverfault.com/questions/655851/is-there-a-simple-way-to-export-import-firewalld-settings|Export Firewall Rules to new server]]     * [[https://serverfault.com/questions/655851/is-there-a-simple-way-to-export-import-firewalld-settings|Export Firewall Rules to new server]]
 +
 +<color #ed1c24>**Below is copied from [[centos_7_migration_notes|CentOS 7 Migration Notes]] so modify as needed.**</color>
  
 Must-Have functionality: Must-Have functionality:
   * Apache, MySQL, PHP, Perl   * Apache, MySQL, PHP, Perl
-  * [[https://www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-fail2ban-on-centos-7|fail2ban]]+  * [[https://www.cyberciti.biz/faq/how-to-protect-ssh-with-fail2ban-on-centos-8/|fail2ban]]
     * edit /etc/fail2ban/jail.local to ban for longer than default of 1 hour     * edit /etc/fail2ban/jail.local to ban for longer than default of 1 hour
     * Check logs: # cat /var/log/fail2ban.log     * Check logs: # cat /var/log/fail2ban.log
Line 97: Line 126:
     * General: Font Monospace 9, No terminal bell     * General: Font Monospace 9, No terminal bell
     * Colors: Use colors from system theme     * Colors: Use colors from system theme
 +      * Or, black background with text color #d3d7cf (from GNOME Dark in RHEL9)
     * Scrolling: unlimited     * Scrolling: unlimited
     * Edit > Keyboard Shortcuts > Reset and Clear > F2     * Edit > Keyboard Shortcuts > Reset and Clear > F2
Line 306: Line 336:
   * For other run-level info, see [[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Targets.html#sect-Managing_Services_with_systemd-Targets-Change_Default|RHEL7 Working with Systemd Targets]]   * For other run-level info, see [[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Targets.html#sect-Managing_Services_with_systemd-Targets-Change_Default|RHEL7 Working with Systemd Targets]]
  
- +After machine has been running for a few daysdon't forget to use "alpine" and check for local email from crons that indicate any errors or failures.
----- +
- +
-USB HEADSET: +
- +
-Plugin to right-side lower USB jack on HP Pavilion P7-1235type dmesg at root prompt to see if it was found by system +
- +
-  [37013.137134] usb 8-1: New USB device found, idVendor=046d, idProduct=0a44 +
-  [37013.137145] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 +
-  [37013.137151] usb 8-1: Product: Logitech USB Headset +
-  [37013.137160] usb 8-1: Manufacturer: Logitech +
-  [37013.399267] input: Logitech Logitech USB Headset as /devices/pci0000:00/0000:00:10.1/usb8/8-1/8-  +
-  1:1.3/input/input85 +
-  [37013.449648] hid-generic 0003:046D:0A44.004B: input,hidraw3: USB HID v1.00 Device [Logitech Logitech USB  +
-  Headset] on usb-0000:00:10.1-1/input3 +
- +
-Right-click the speaker icon in the top panel and choose Sound Preferences Or, navigate to System > Preferences > Hardware > Sound \\ +
-Sound effects tab:  Sound theme: No Sounds\\ +
-Hardware tab:  Highlight Headset H390, Profile: Analog Stereo Output + Analog Mono Input \\ +
-Input tab:  choose Headset H390 Analog Mono \\ +
-Output tab:  choose Headset H390 Analog Stereo, Connector is Headphones +
- +
-Settings are saved to $HOME/.config/pulse +
- +
-See Linux Mint [[https://forums.linuxmint.com/viewtopic.php?t=246194|Sound settings keep switching output against my will]] and possibly [[https://forums.linuxmint.com/viewtopic.php?t=224479|HDMI + Sound + Mint 18]]+
centos_8_migration_notes.txt · Last modified: 2022/06/08 16:03 by juckins