centos_8_migration_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
centos_8_migration_notes [2020/09/30 11:52] – juckins | centos_8_migration_notes [2021/01/23 11:06] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== CentOS 8 Migration Notes ==== | ==== CentOS 8 Migration Notes ==== | ||
- | <color # | + | Fix php for phpmyadmin: |
- | Other fixes: | + | dnf install php-gd php-ldap php-mysqlnd php-pecl-mcrypt php-pecl-zip |
- | * Disable WiFi LAN connection with ''# | + | Secure the mariadb |
- | * [[https:// | + | |
- | 16 May 2020: | ||
- | * System randomly reboots when KVM toggles back and forth from Dell XPS 8930 (running CentOS 7 as ' | ||
- | * Noticed monitoring emails not being sent from tidewater; postfix not running and won't start. mysql error. | ||
- | * yum reinstall < | ||
- | * postfix started | ||
- | * Other trouble...had to completely uninstall PHP | ||
- | * Reinstall PHP - that is v5.4 | ||
- | * Then upgrade to REMI php v7.4 | ||
- | * Look in the bash setup script to install the needed php files | ||
- | * Restore / | ||
- | * restart httpd service | ||
- | * yum update had many instances of 'empty files' | ||
- | * ldconfig gave errors for 2 more things | ||
- | * yum reinstall oniguruma5 | ||
- | * yum reinstall oniguruma | ||
- | * reboot system, came up cleanly | ||
- | * may need to check if mysql connection limit needs to be increased | ||
- | 13 December 2016: | + | < |
- | * VM machine | + | |
- | | + | |
- | | + | |
- | * RPM database completely hosed; had to erase this VM and restore | + | |
- | * VM machine #2 was a clone of a test CentOS 7 VM (v7.2.1511) and it got stuck on trying to update '' | + | |
- | * cancelled by CTRL-C | + | |
- | * had to install " | + | |
- | * yum then failed because transaction size changed | + | |
- | * ran '' | + | |
- | * ran '' | + | |
- | * ran '' | + | |
- | * Still a mess, ran '' | + | |
- | * Erased VM | + | |
- | * VM machine #3 was clone of test CentOS 7 VM (v7.2.1511) | + | |
- | * tried to remove open-vm-tools - hung up so aborted attempt | + | |
- | * VM machine #4 test was clone of test CentOS 7 VM (v7.2.1511) | + | |
- | | + | |
- | * machine updated and booted into new kernel normally | + | |
- | * ran '' | + | |
- | * stalled again | + | |
- | * '' | + | |
- | * **did '' | + | |
- | * **saw this process: '' | + | |
- | * **issued '' | + | |
- | * Primary machine updated OK | + | |
- | * Virtual Box VMs would not start | + | |
- | * Had to run as root ''/ | + | |
- | 5 June 2016: | + | Other fixes: |
- | * Primary system migrated | + | |
- | 18 May 2016: | + | |
- | | + | * [[https://unix.stackexchange.com/questions/ |
- | * Might be a way to configure screen blanking | + | |
- | + | ||
- | 5 April 2016: | + | |
- | * NUX repository needed for rdesktop | + | |
- | * https://www.certdepot.net/rhel7-install-nux-repository/ | + | |
- | * xfreerdp doesn' | + | |
- | + | ||
- | 16 February 2016: | + | |
- | * High CPU usage for vmtoolsd process | + | |
- | * removed open-vm-tools-desktop | + | |
- | * rebooted; open-vm-tools still remained but did not use high CPU | + | |
- | + | ||
- | Restarting Services: http:// | + | |
For migrating a system from a different OS, take note of this info first: | For migrating a system from a different OS, take note of this info first: | ||
- | * Make a test user on CentOS6 | + | * Make a test user on CentOS7 |
* Compare hidden files to see if anything changed between OSs | * Compare hidden files to see if anything changed between OSs | ||
+ | * This allows for easy migrating of data for users' $HOME directories | ||
* ensure all scripts make their own log file directory | * ensure all scripts make their own log file directory | ||
* $log_dir = "/ | * $log_dir = "/ | ||
* mkdir (" | * mkdir (" | ||
* should crons write to /tmp and then have a daily script that checks cron logs for errors? | * should crons write to /tmp and then have a daily script that checks cron logs for errors? | ||
- | | + | |
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | | ||
+ | * /// | ||
+ | * Check that PHP is working correctly, localhost/ | ||
+ | * check httpd.conf | ||
+ | * /// | ||
+ | * Clear all history from Firefox before testing phpmyadmin | ||
+ | * Check httpd logs for any errors, such as mod security | ||
+ | * uninstall [[https:// | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | * '' | ||
* <color # | * <color # | ||
- | * [[https:// | + | |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | | ||
+ | * Note that the restore of mysql does not use " | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
- | * Don' | + | * They can be exported from phpmyadmin (but don' |
* export MySQL databases with mysqldump | * export MySQL databases with mysqldump | ||
* [[https:// | * [[https:// | ||
Line 113: | Line 74: | ||
* Note firewall rules | * Note firewall rules | ||
* [[https:// | * [[https:// | ||
- | |||
- | Note these installed perl RPMs: | ||
- | |||
- | ''# | ||
- | |||
- | < | ||
- | ImageMagick-perl | ||
- | perl | ||
- | perl-autodie | ||
- | perl-Array-Diff | ||
- | perl-Array-Unique | ||
- | perl-B-Lint | ||
- | perl-Business-ISBN | ||
- | perl-Business-ISBN-Data | ||
- | perl-Carp | ||
- | perl-CGI | ||
- | perl-Class-ISA | ||
- | perl-common-sense | ||
- | perl-Compress-Raw-Bzip2 | ||
- | perl-Compress-Raw-Zlib | ||
- | perl-constant | ||
- | perl-CPAN | ||
- | perl-Data-Dumper | ||
- | perl-DBD-MySQL | ||
- | perl-DBI | ||
- | perl-devel | ||
- | perl-Digest | ||
- | perl-Digest-MD5 | ||
- | perl-Digest-SHA | ||
- | perl-Encode | ||
- | perl-Encode-Locale | ||
- | perl-Env | ||
- | perl-Exporter | ||
- | perl-ExtUtils-Install | ||
- | perl-ExtUtils-MakeMaker | ||
- | perl-ExtUtils-Manifest | ||
- | perl-ExtUtils-ParseXS | ||
- | perl-FCGI | ||
- | perl-File-BaseDir | ||
- | perl-File-CheckTree | ||
- | perl-File-DesktopEntry | ||
- | perl-File-Listing | ||
- | perl-File-MimeInfo | ||
- | perl-File-Path | ||
- | perl-File-ReadBackwards | ||
- | perl-File-Slurp | ||
- | perl-File-Temp | ||
- | perl-Filter | ||
- | perl-Font-AFM | ||
- | perl-GD | ||
- | perl-Getopt-Long | ||
- | perl-HTML-Element-Extended | ||
- | perl-HTML-Format | ||
- | perl-HTML-Parser | ||
- | perl-HTML-TableExtract | ||
- | perl-HTML-Tagset | ||
- | perl-HTML-Tree | ||
- | perl-HTTP-Cookies | ||
- | perl-HTTP-Daemon | ||
- | perl-HTTP-Date | ||
- | perl-HTTP-Message | ||
- | perl-HTTP-Negotiate | ||
- | perl-HTTP-Tiny | ||
- | perl-IO-All | ||
- | perl-IO-Compress | ||
- | perl-IO-HTML | ||
- | perl-IO-Socket-IP | ||
- | perl-IO-Socket-SSL | ||
- | perl-IPC-System-Simple | ||
- | perl-JSON | ||
- | perl-JSON-XS | ||
- | perl-libs | ||
- | perl-libwww-perl | ||
- | perl-List-Compare | ||
- | perl-List-MoreUtils | ||
- | perl-Locale-Codes | ||
- | perl-Locale-Maketext | ||
- | perl-local-lib | ||
- | perl-LWP-MediaTypes | ||
- | perl-LWP-Protocol-https | ||
- | perl-macros | ||
- | perl-Module-Pluggable | ||
- | perl-Mozilla-CA | ||
- | perl-Net-Daemon | ||
- | perl-Net-HTTP | ||
- | perl-Net-LibIDN | ||
- | perl-Net-SSLeay | ||
- | perl-Newt | ||
- | perl-parent | ||
- | perl-Parse-Yapp | ||
- | perl-PathTools | ||
- | perl-PlRPC | ||
- | perl-Pod-Checker | ||
- | perl-Pod-Escapes | ||
- | perl-Pod-LaTeX | ||
- | perl-podlators | ||
- | perl-Pod-Parser | ||
- | perl-Pod-Perldoc | ||
- | perl-Pod-Plainer | ||
- | perl-Pod-Simple | ||
- | perl-Pod-Usage | ||
- | perl-Scalar-List-Utils | ||
- | perl-Socket | ||
- | perl-Storable | ||
- | perl-String-CRC32 | ||
- | perl-Sys-Syslog | ||
- | perl-Test-Harness | ||
- | perl-Test-Simple | ||
- | perl-Text-ParseWords | ||
- | perl-Text-Soundex | ||
- | perl-Text-Unidecode | ||
- | perl-Thread-Queue | ||
- | perl-threads | ||
- | perl-threads-shared | ||
- | perl-TimeDate | ||
- | perl-Time-HiRes | ||
- | perl-Time-Local | ||
- | perl-Types-Serialiser | ||
- | perl-URI | ||
- | perl-WWW-RobotRules | ||
- | perl-XML-LibXML | ||
- | perl-XML-NamespaceSupport | ||
- | perl-XML-SAX | ||
- | perl-XML-SAX-Base | ||
- | </ | ||
Must-Have functionality: | Must-Have functionality: | ||
Line 261: | Line 97: | ||
* Working crontabs for each user | * Working crontabs for each user | ||
* [[python_notes|Install Python 3]] | * [[python_notes|Install Python 3]] | ||
- | |||
- | Contents of / | ||
- | * adobe-linux-x86_64.repo | ||
- | * CentOS-Base.repo | ||
- | * CentOS-CR.repo | ||
- | * CentOS-Debuginfo.repo | ||
- | * CentOS-fasttrack.repo | ||
- | * CentOS-Media.repo | ||
- | * CentOS-Sources.repo | ||
- | * CentOS-Vault.repo | ||
- | * epel.repo | ||
- | * epel-testing.repo | ||
- | * google-chrome.repo | ||
- | * nux-dextop.repo | ||
- | |||
- | ---- | ||
- | |||
- | For a continuation of GNOME2 in CentOS7, use " | ||
- | |||
- | * Best option is to do a " | ||
- | |||
- | Other info on MATE: | ||
- | |||
- | * https:// | ||
- | * https:// | ||
- | * http:// | ||
- | * https:// | ||
- | * https:// | ||
- | * http:// | ||
Customize MATE Desktop displays | Customize MATE Desktop displays | ||
Line 303: | Line 110: | ||
* Edit > Keyboard Shortcuts > Reset and Clear > F2 | * Edit > Keyboard Shortcuts > Reset and Clear > F2 | ||
* Disable Vim auto-indent following [[vim_tips|Vi and Vim Tips]] | * Disable Vim auto-indent following [[vim_tips|Vi and Vim Tips]] | ||
- | * < | ||
- | * < | ||
- | * < | ||
- | * < | ||
- | * < | ||
Change setting on screensaver | Change setting on screensaver | ||
Line 317: | Line 119: | ||
* Moving display of current CPU usage should appear | * Moving display of current CPU usage should appear | ||
- | __Fresh VirtualBox Installation Notes 8 Nov 2015 (previous install 30 Sept 2014)__ | + | ---- |
- | + | ||
- | * Preferable to use local .iso file to conserve bandwidth for multiple installs | + | |
- | * Used http:// | + | |
- | * On initial config screen, ensure the network connection is activated | + | |
- | * You can also disable SELinux | + | |
- | * < | + | |
- | * * < | + | |
- | * Let system create mount points automatically | + | |
- | * After they are suggested, change from LVM to Standard Mount | + | |
- | * May want to increase the boot and " | + | |
- | * Used default " | + | |
- | * For software packages, if you only choose something like Web Server you will not get graphical login | + | |
- | * Choose a general desktop option, too | + | |
- | * Boot into machine | + | |
- | * Note the IP address | + | |
- | + | ||
- | Use nmtui-hostname to [[http:// | + | |
- | < | + | |
- | # nmcli general hostname | + | |
- | # nmcli general hostname new_server_name | + | |
- | # systemctl restart systemd-hostnamed | + | |
- | </ | + | |
- | + | ||
- | yum -y update, reboot, verify latest kernel is loaded by GRUB | + | |
- | + | ||
- | Only keep 1 old kernel | + | |
- | + | ||
- | Ensure gcc, make, kernel-devel are installed. | + | |
- | + | ||
- | Install Virtual Box Guest Additions | + | |
- | * Took 10 minutes to install | + | |
- | + | ||
- | Reboot | + | |
- | + | ||
- | Add 2nd hard drive to /etc/fstab [[adding_a_second_hard_drive|following these notes]] | + | |
- | + | ||
- | Prepare to run the local yum installer script | + | |
- | * Also installs [[https:// | + | |
- | * Best to run the script by establishing SSH connection to box from a different machine. | + | |
- | * Pipe output to log file and tail the log file | + | |
- | * [[Yum installer bash script (CentOS7)|Copy this source to a .bash and run as root]] | + | |
- | + | ||
- | [[install_configure_cpan|CPAN packages]] to install: | + | |
- | * <color # | + | |
- | * [[http:// | + | |
- | * Array:: | + | |
- | * //Note, this module is not needed. Was used in ASMAD compare_stops.pl and compare_origin.pl// | + | |
- | * Start up cpan as root (initial time) | + | |
- | * Run through the manual configuration process, accept the defaults | + | |
- | * Start up cpan as root | + | |
- | * > install CPAN (this updates the CPAN packages) | + | |
- | * cpan Array:: | + | |
- | * Time:: | + | |
- | * //Note, this module is not needed. Was used in syncing to CDN.// | + | |
- | * As root, had to: | + | |
- | * cd / | + | |
- | * cp -rp * / | + | |
- | * Another option is to install modules locally | + | |
- | * Yet another option is to use modules that are in a repository | + | |
- | + | ||
- | [[http:// | + | |
- | + | ||
- | [[http:// | + | |
- | * check / | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | + | ||
- | [[centos_php7.2_upgrade|Upgrade PHP to version 7.2]] | + | |
- | + | ||
- | Migrate / | + | |
- | < | + | |
- | ; | + | |
- | max_execution_time = 3600 | + | |
- | ; | + | |
- | max_input_time = 3600 | + | |
- | ; | + | |
- | memory_limit = 1024M | + | |
- | ; | + | |
- | display_errors = On | + | |
- | ; | + | |
- | post_max_size = 250M | + | |
- | ; | + | |
- | upload_max_filesize = 250M | + | |
- | ; | + | |
- | date.timezone = " | + | |
- | ; | + | |
- | session.gc_maxlifetime = 7200 | + | |
- | </ | + | |
- | < | + | |
- | # systemctl restart httpd.service | + | |
- | </ | + | |
- | + | ||
- | [[http:// | + | |
Database work: | Database work: | ||
Line 436: | Line 145: | ||
* systemctl enable mariadb.service | * systemctl enable mariadb.service | ||
* mysql DATABASE -h localhost -u USER -p' | * mysql DATABASE -h localhost -u USER -p' | ||
- | |||
- | * Note CentOS7 comes with PHP 5.4 and latest version of phpMyAdmin that will work is 4.4.x | ||
- | * [[centos_php5.6_upgrade|Install PHP 5.6 on CentOS 7]] | ||
- | * Run through phpmyadmin install steps listed in [[installing_phpmyadmin_tips]] | ||
- | * [[https:// | ||
- | * With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported | ||
- | * Copy config from previous machine | ||
Setup ddclient: | Setup ddclient: | ||
* https:// | * https:// | ||
- | * yum -y install ddclient | + | * dnf -y install ddclient |
* Use / | * Use / | ||
Line 468: | Line 170: | ||
Restore /etc/hosts from previous machine as needed | Restore /etc/hosts from previous machine as needed | ||
- | |||
- | Disable virbro0 network connection if needed: http:// | ||
- | < | ||
- | # virsh net-destroy default | ||
- | # virsh net-undefine default | ||
- | # service libvirtd restart | ||
- | # ifconfig | ||
- | </ | ||
Then, edit the network connections and make sure the " | Then, edit the network connections and make sure the " | ||
Line 483: | Line 177: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | |||
- | [[http:// | ||
- | |||
- | [[http:// | ||
- | |||
- | Fix Google Chrome fonts: | ||
- | |||
- | [[http:// | ||
- | < | ||
- | # yum install google*fonts | ||
- | </ | ||
- | * open Chrome, go to Settings > Advanced and set fonts as follows: | ||
- | * Standard font: Noto Serif | ||
- | * Serif font: Noto Serif | ||
- | * Sans-serif font: Noto Sans | ||
- | * Fixed-width font: Roboto Mono | ||
- | |||
[[http:// | [[http:// | ||
- | Adobe Reader - use evince instead | + | Install |
- | + | ||
- | Install | + | |
- | * Install 3 RPMs noted above | + | |
- | * Edit / | + | |
- | * / | + | |
- | * To start up MATE, edit / | + | |
- | * CommandStartGnome "/ | + | |
- | * To fix keyboard mapping, open terminal and run this command: | + | |
- | * setxkbmap -model evdev -layout us > / | + | |
- | * [[http:// | + | |
- | * You can make a little bash script and have it run as a startup application | + | |
- | * Notes gleaned from https:// | + | |
- | + | ||
- | NX/ | + | |
- | * Had v3 RPMs installed; removed and installed v4 to test. Failed. Removed v4 RPMs. | + | |
- | * Upon reinstalling the 3 v3 RPMs, could not authenticate to target server. | + | |
- | * Removed nxclient, nxnode, nxserver v3 RPMs again. | + | |
- | * rm -rf /usr/NX completely | + | |
- | * Reinstalled the 3 v3 RPMs. Authentication fixed | + | |
- | * Start/stop server with the following: | + | |
- | * / | + | |
- | * / | + | |
- | * / | + | |
- | + | ||
- | NX for work VPN | + | |
- | * Removed nxclient-3.5.0-7.x86_64.rpm, | + | |
- | * Used http:// | + | |
- | * Installed opennx-0.16-724.el6.centos.1.x86_64.rpm | + | |
- | * Tried connecting to remote machine as shadow session and it also failed; ensured the remote machine had a normal session established first using the same user | + | |
- | + | ||
- | VPN connections | + | |
- | * < | + | |
- | * < | + | |
- | + | ||
- | < | + | |
Restore Thunderbird profile | Restore Thunderbird profile | ||
Line 547: | Line 189: | ||
Test ASMAD for processing end-to-end | Test ASMAD for processing end-to-end | ||
- | |||
- | < | ||
- | </ | ||
- | |||
- | < | ||
- | yum install alsa-plugins-pulseaudio.i686 qt.i686 1: | ||
- | rpm -Uvh http:// | ||
- | yum localinstall http:// | ||
- | </ | ||
- | |||
- | [[https:// | ||
SSH issues | SSH issues | ||
Line 566: | Line 197: | ||
* Update to openssh seems to require RSA keys now and authorized_keys file instead of DSA keys and authorized_keys2 file | * Update to openssh seems to require RSA keys now and authorized_keys file instead of DSA keys and authorized_keys2 file | ||
* Set " | * Set " | ||
- | * < | + | * < |
* < | * < | ||
* < | * < | ||
Line 615: | Line 246: | ||
* Use ' | * Use ' | ||
* [[https:// | * [[https:// | ||
- | * yum install cups | + | * dnf install cups |
* service cups start | * service cups start | ||
* systemctl enable cups | * systemctl enable cups | ||
Line 622: | Line 253: | ||
* Default printer driver works OK | * Default printer driver works OK | ||
* Or use web browser: | * Or use web browser: | ||
- | * # yum install httpd | + | * # dnf install httpd |
* # / | * # / | ||
- | * # yum install system-config-firewall | + | * # dnf install system-config-firewall |
* # firewall-config (or System > Administration > Firewall) | * # firewall-config (or System > Administration > Firewall) | ||
* Allow http and https as rules | * Allow http and https as rules | ||
Line 684: | Line 315: | ||
* For other run-level info, see [[https:// | * For other run-level info, see [[https:// | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | USB HEADSET: | ||
- | |||
- | Plugin to right-side lower USB jack on HP Pavilion P7-1235, type dmesg at root prompt to see if it was found by system | ||
- | |||
- | [37013.137134] usb 8-1: New USB device found, idVendor=046d, | ||
- | [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: | ||
- | [37013.399267] input: Logitech Logitech USB Headset as / | ||
- | 1: | ||
- | [37013.449648] hid-generic 0003: | ||
- | Headset] on usb-0000: | ||
- | |||
- | Right-click the speaker icon in the top panel and choose Sound Preferences. | ||
- | 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/ | ||
- | |||
- | See Linux Mint [[https:// | ||
- | |||
- | ---- | ||
- | __OLD Notes and Issues__ | ||
- | |||
- | If on VirtualBox, go to main menu and choose " | ||
- | < | ||
- | mount -o ro / | ||
- | cd /mnt | ||
- | ./ | ||
- | shutdown -r now | ||
- | </ | ||
- | |||
- | Missing Desktop icons: https:// | ||
- | |||
- | - Make sure caja is the default file manager in System --> Control Center --> Preferred Applications --> | ||
- | - Add caja to automatically start in System--> | ||
- | - Reboot. | ||
- | |||
- | **Tried / | ||
- | |||
- | < | ||
- | [juckins@centos7-test-64: | ||
- | display: color is not known to server `FOREGROUND': | ||
- | No such file or directory @ error/ | ||
- | </ | ||
- | |||
- | * This does work on FC20 i686. libpng may be a different version. | ||
- | * Test images in $HOME/ | ||
- | |||
- | ImageMagick may be a different version. | ||
- | |||
- | UPDATE: Does work after installing Skype and its dependencies below (nux-desktop? | ||
- | |||
- | Comment out the GRUB_TERMINAL_OUTPUT line in / | ||
- | |||
- | First see if the default kernel is the latest one for boot. If not, add the following line to / | ||
- | < | ||
- | Also remove the "rhgb quiet" flags. | ||
- | Get the splash.png from http:// | ||
- | < | ||
- | Then run: | ||
- | < | ||
- | |||
- | Notes on grub splash screen: | ||
- | |||
- | * https:// | ||
- | * https:// |
centos_8_migration_notes.txt · Last modified: 2022/06/08 16:03 by juckins