centos_7_migration_notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| centos_7_migration_notes [2019/04/30 20:43] – juckins | centos_7_migration_notes [2025/03/20 19:58] (current) – ↷ Links adapted because of a move operation juckins | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| RHEL5/6/7 Cheatsheet: {{: | RHEL5/6/7 Cheatsheet: {{: | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
| + | 14 Dec 2023 (for Dell XPS 8930 tower): | ||
| + | * Updated kernel from kernel-3.10.0-1160.102.1.el7.x86_64 to kernel-3.10.0-1160.105.1.el7.x86_64 | ||
| + | * Attempted to rebooted machine but after the BIOS splash screen, only got a blank screen with blinking cursor in upper-left corner | ||
| + | * Restarted machine using the power button but had same condition | ||
| + | * Restarted once again but at the BIOS splash screen selected F12 | ||
| + | * For boot options, chose Boot from Hard Drive and list of kernels appeared | ||
| + | * Chose latest kernel and machine was OK | ||
| + | * After machine was running, did another restart and machine powered up with no issues | ||
| + | |||
| + | 23 Oct 2023 (for Dell XPS 8930 tower) | ||
| + | * Updated kernel from kernel-3.10.0-1160.99.1.el7.x86_64 to kernel-3.10.0-1160.102.1.el7.x86_64 and then machine would not boot, just blank screen with blinking cursor in upper-left corner | ||
| + | * Powered off machine, unplugged the USB peripheral cables | ||
| + | * Unplugged power cable for 30 seconds | ||
| + | * Rebooted and used F12 to go into BIOS Boot Options | ||
| + | * Tried to boot to Hard Drive but that immediately failed with error 'press any key to reboot' | ||
| + | * After that, the machine booted up OK and the normal selection of kernels appeared | ||
| Other fixes: | Other fixes: | ||
| Line 7: | Line 27: | ||
| * Disable WiFi LAN connection with ''# | * Disable WiFi LAN connection with ''# | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | 11 Oct 2020: | ||
| + | * Keep getting errors in python3 script connecting/ | ||
| + | * '' | ||
| + | * '' | ||
| + | * Updated / | ||
| + | |||
| + | max_connections = 818 (Note that 818 seems to be the absolute limit) | ||
| + | back_log = 1024 (Note that OS limit is in / | ||
| + | thread_cache_size = 818 | ||
| + | thread_handling = pool-of-threads | ||
| + | | ||
| + | Then do: '' | ||
| + | |||
| + | * Other commands to check and modify on mariadb server: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * See https:// | ||
| + | * Also check python3 coding best practices for opening/ | ||
| + | * I have noted that opening and closing the database connection only once in the python script helps reduce database " | ||
| + | * [[https:// | ||
| + | * import MySQLdb | ||
| + | * See examples at https:// | ||
| + | |||
| + | # | ||
| + | | ||
| + | import MySQLdb | ||
| + | | ||
| + | # Open database connection | ||
| + | db = MySQLdb.connect(" | ||
| + | | ||
| + | # prepare a cursor object using cursor() method | ||
| + | cursor = db.cursor() | ||
| + | | ||
| + | # execute SQL query using execute() method. | ||
| + | cursor.execute(" | ||
| + | | ||
| + | # Fetch a single row using fetchone() method. | ||
| + | data = cursor.fetchone() | ||
| + | print " | ||
| + | | ||
| + | # disconnect from server | ||
| + | db.close() | ||
| + | |||
| + | |||
| + | 16 May 2020: | ||
| + | * System randomly reboots when KVM toggles back and forth from Dell XPS 8930 (running CentOS 7 as ' | ||
| + | * Workaround: Use remmina to RDP to local Windows machine | ||
| + | * 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: | 13 December 2016: | ||
| Line 69: | Line 156: | ||
| * [[http:// | * [[http:// | ||
| * Don't forget to add semicolons with this: # sed -i ‘/[^;] *$/ | * Don't forget to add semicolons with this: # sed -i ‘/[^;] *$/ | ||
| + | * Note: I used phpMyAdmin to export users from a VM (get the SQL syntax) and then run that on the new machine | ||
| * export MySQL databases with mysqldump | * export MySQL databases with mysqldump | ||
| * [[https:// | * [[https:// | ||
| Line 74: | Line 162: | ||
| * list of installed perl modules | * list of installed perl modules | ||
| * grep all .pl script and look for the "use " calls | * grep all .pl script and look for the "use " calls | ||
| + | * list of installed python (pip) modules | ||
| * Copy the following to accessible location for restore after upgrade | * Copy the following to accessible location for restore after upgrade | ||
| * users' $HOME | * users' $HOME | ||
| Line 81: | Line 170: | ||
| * /etc/hosts | * /etc/hosts | ||
| * / | * / | ||
| - | * / | + | |
| - | * Samba users, passwords, shares | + | |
| - | * nxclient-3.5.0-7.x86_64.rpm | + | * smbpasswd -a < |
| - | * nxnode-3.5.0-9.x86_64.rpm | + | * < |
| - | * nxserver-3.5.0-11.x86_64.rpm | + | * / |
| + | * / | ||
| + | * Make sure service is running and will start at boot. | ||
| + | * Check output with: testparm -v | ||
| + | * <del>nxclient-3.5.0-7.x86_64.rpm</ | ||
| + | * <del>nxnode-3.5.0-9.x86_64.rpm</ | ||
| + | * <del>nxserver-3.5.0-11.x86_64.rpm</ | ||
| * < | * < | ||
| * verify services that should be installed/ | * verify services that should be installed/ | ||
| Line 226: | Line 321: | ||
| * [[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]] | * [[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]] | ||
| * Disable SELinux | * Disable SELinux | ||
| - | * VSFTP | + | * VSFTP (for security cameras) |
| * [[http:// | * [[http:// | ||
| * [[https:// | * [[https:// | ||
| - | * As root: setsebool -P allow_ftpd_full_access on | + | * As root (if selinux is enabled): setsebool -P allow_ftpd_full_access on |
| * As root: systemctl restart vsftpd | * As root: systemctl restart vsftpd | ||
| + | * As root: systemctl enable vsftpd | ||
| * Samba | * Samba | ||
| - | * [[http:// | + | * [[samba_file_sharing|Samba |
| - | * [[https:// | + | |
| * < | * < | ||
| * Virtual Box | * Virtual Box | ||
| * Working crontabs for each user | * Working crontabs for each user | ||
| + | * [[python_notes|Install Python 3]] | ||
| + | |||
| + | Optional: | ||
| + | * [[https:// | ||
| Contents of / | Contents of / | ||
| Line 296: | Line 395: | ||
| * Preferable to use local .iso file to conserve bandwidth for multiple installs | * Preferable to use local .iso file to conserve bandwidth for multiple installs | ||
| - | * Used http://mirror.centos.org/centos/7.1.1503/os/x86_64/ for package repository | + | * Used http://mirrors.sonic.net/centos/7.7.1908/os/x86_64/ for package repository |
| * On initial config screen, ensure the network connection is activated | * On initial config screen, ensure the network connection is activated | ||
| * You can also disable SELinux | * You can also disable SELinux | ||
| Line 336: | Line 435: | ||
| * [[Yum installer bash script (CentOS7)|Copy this source to a .bash and run as root]] | * [[Yum installer bash script (CentOS7)|Copy this source to a .bash and run as root]] | ||
| - | [[install_configure_cpan|CPAN packages]] to install: | + | [[perl_install_configure_cpan|CPAN packages]] to install: |
| * <color # | * <color # | ||
| * [[http:// | * [[http:// | ||
| Line 354: | Line 453: | ||
| * Yet another option is to use modules that are in a repository | * Yet another option is to use modules that are in a repository | ||
| - | [[http:// | + | <del>[[http:// |
| [[http:// | [[http:// | ||
| Line 361: | Line 460: | ||
| * [[http:// | * [[http:// | ||
| - | [[centos_php7.2_upgrade|Upgrade PHP to version 7.2]] | + | <del>[[centos_php7.2_upgrade|Upgrade PHP to version 7.2]]</ |
| + | |||
| + | [[https:// | ||
| Migrate / | Migrate / | ||
| Line 389: | Line 490: | ||
| Database work: | Database work: | ||
| + | * Update / | ||
| + | * '' | ||
| + | * '' | ||
| * Backup /etc/my.cnf | * Backup /etc/my.cnf | ||
| * Add this line under [mysqld] | * Add this line under [mysqld] | ||
| Line 400: | Line 504: | ||
| * Ensure database on target server exists; create if necessary | * Ensure database on target server exists; create if necessary | ||
| * Tables migrated should be MyISAM | * Tables migrated should be MyISAM | ||
| - | * Default database engine is InnoDB as<color #ed1c24>Red Highlighted Text</ | + | * Default database engine is <color #ed1c24>InnoDB</ |
| * [[https:// | * [[https:// | ||
| * The exact number of rows of InnoDB tables cannot be shown | * The exact number of rows of InnoDB tables cannot be shown | ||
| Line 411: | Line 515: | ||
| * systemctl start mariadb.service | * systemctl start mariadb.service | ||
| * systemctl enable mariadb.service | * systemctl enable mariadb.service | ||
| - | * mysql DATABASE -h localhost -u USER -p' | + | * mysql -u USER -p' |
| + | * CREATE | ||
| + | * Now logout of command line | ||
| + | * mysql DATABASE_NAME | ||
| * Note CentOS7 comes with PHP 5.4 and latest version of phpMyAdmin that will work is 4.4.x | * Note CentOS7 comes with PHP 5.4 and latest version of phpMyAdmin that will work is 4.4.x | ||
| Line 423: | Line 530: | ||
| * https:// | * https:// | ||
| * yum -y install ddclient | * yum -y install ddclient | ||
| - | * Use /etc/ddclient/* for configs from previous machine | + | * In /etc use the ddclient* |
| Setup duckdns: | Setup duckdns: | ||
| Line 429: | Line 536: | ||
| Setup ydns: | Setup ydns: | ||
| + | * crontab is < | ||
| Firewall notes: | Firewall notes: | ||
| Line 547: | Line 654: | ||
| * Additional tips: http:// | * Additional tips: http:// | ||
| * systemctl restart sshd.service | * systemctl restart sshd.service | ||
| + | * User accounts at remove machines connecting to the new machine will need their $HOME/ | ||
| Update GRUB and splash screen | Update GRUB and splash screen | ||
| Line 555: | Line 663: | ||
| * vi grub | * vi grub | ||
| * remove "rhgb quiet" from the GRUB_CMDLINE_LINUX call | * remove "rhgb quiet" from the GRUB_CMDLINE_LINUX call | ||
| - | * add " | + | * add " |
| * comment out this line: GRUB_TERMINAL_OUTPUT=" | * comment out this line: GRUB_TERMINAL_OUTPUT=" | ||
| * add this line: GRUB_BACKGROUND="/ | * add this line: GRUB_BACKGROUND="/ | ||
| * Ensure it is rw-r-r permissions | * Ensure it is rw-r-r permissions | ||
| * [[http:// | * [[http:// | ||
| - | * For VM/ | + | * For VM/ |
| * For UEFI-based installs, as root: grub2-mkconfig -o / | * For UEFI-based installs, as root: grub2-mkconfig -o / | ||
| * More info at [[https:// | * More info at [[https:// | ||
| Line 585: | Line 693: | ||
| Set up local printer(s) | Set up local printer(s) | ||
| + | * Note that Brother has notes for the HL2170W at https:// | ||
| + | * RPM #1: brhl2170wlpr-2.0.2-1.i386.rpm | ||
| + | * RPM #2: cupswrapperHL2170W-2.0.2-1.i386.rpm | ||
| + | * Use ' | ||
| * [[https:// | * [[https:// | ||
| * yum install cups | * yum install cups | ||
centos_7_migration_notes.1556671432.txt.gz · Last modified: by juckins
