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
Next revisionBoth sides next revision
centos_8_migration_notes [2020/09/30 12:47] juckinscentos_8_migration_notes [2020/10/14 10:17] juckins
Line 9: Line 9:
  
 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 and one on CentOS7+  * Make a test user on CentOS7 and one on CentOS8
     * 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 = "/var/tmp/check_disk_space";     * $log_dir = "/var/tmp/check_disk_space";
     * mkdir ("$log_dir", 0755);     * mkdir ("$log_dir", 0755);
     * 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?
-  * users+  * Get inventory of users
   * <color #ed1c24>MySQL / MariaDB Database and users</color>   * <color #ed1c24>MySQL / MariaDB Database and users</color>
 +    * [[https://www.tecmint.com/install-lamp-on-centos-8/|Notes for installing LAMP]]
     * [[https://www.tecmint.com/transfer-mysql-databases-from-old-to-new-server/|Migrate with rsync]]     * [[https://www.tecmint.com/transfer-mysql-databases-from-old-to-new-server/|Migrate with rsync]]
     * [[https://www.linode.com/docs/databases/mysql/create-physical-backups-of-your-mariadb-or-mysql-databases/|Migrate with tar]]     * [[https://www.linode.com/docs/databases/mysql/create-physical-backups-of-your-mariadb-or-mysql-databases/|Migrate with tar]]
Line 274: Line 276:
 </code> </code>
  
-yum -y update, reboot, verify latest kernel is loaded by GRUB+dnf -y update, reboot, verify latest kernel is loaded by GRUB
  
 Only keep 1 old kernel Only keep 1 old kernel
Line 287: Line 289:
 Add 2nd hard drive to /etc/fstab [[adding_a_second_hard_drive|following these notes]] Add 2nd hard drive to /etc/fstab [[adding_a_second_hard_drive|following these notes]]
  
-Prepare to run the local yum installer script+Prepare to run the local dnf installer script
   * Also installs [[https://wiki.centos.org/AdditionalResources/Repositories|EPEL repository]]   * Also installs [[https://wiki.centos.org/AdditionalResources/Repositories|EPEL repository]]
   * Best to run the script by establishing SSH connection to box from a different machine.   * 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   * 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]]+  * [[yum_installer_bash_script_centos8|dnf installer bash script (CentOS 8)]]
  
 [[install_configure_cpan|CPAN packages]] to install: [[install_configure_cpan|CPAN packages]] to install:
Line 379: Line 381:
 Setup ddclient: Setup ddclient:
   * https://sourceforge.net/p/ddclient/wiki/Home/   * https://sourceforge.net/p/ddclient/wiki/Home/
-  * yum -y install ddclient+  * dnf -y install ddclient
   * Use /etc/ddclient/* for configs from previous machine   * Use /etc/ddclient/* for configs from previous machine
  
Line 425: Line 427:
 [[http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/]] [[http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/]]
 <code> <code>
-yum install google*fonts+dnf install google*fonts
 </code> </code>
   * open Chrome, go to Settings > Advanced and set fonts as follows:   * open Chrome, go to Settings > Advanced and set fonts as follows:
Line 485: Line 487:
  
 <code> <code>
-yum install alsa-plugins-pulseaudio.i686 qt.i686 1:qt-x11.i686 libXScrnSaver.i686 libXv.i686+dnf install alsa-plugins-pulseaudio.i686 qt.i686 1:qt-x11.i686 libXScrnSaver.i686 libXv.i686
 rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
-yum localinstall http://download.skype.com/linux/skype-4.3.0.37-fedora.i586.rpm+dnf localinstall http://download.skype.com/linux/skype-4.3.0.37-fedora.i586.rpm
 </code> </code>
  
Line 499: Line 501:
   * 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 "PermitRootLogin no"   * Set "PermitRootLogin no"
-  * <del>But MATE does not work, tried KDE with yum group install "KDE Plasma Workspaces" and seems to work better but still no icons on the screen</del>+  * <del>But MATE does not work, tried KDE with dnf group install "KDE Plasma Workspaces" and seems to work better but still no icons on the screen</del>
   * <del>But need to configure custom desktop to use /etc/X11/xinit/Xsession mate-session</del>   * <del>But need to configure custom desktop to use /etc/X11/xinit/Xsession mate-session</del>
   * <del>Also tried /usr/bin/startxfce4 but still general odd behavior</del>   * <del>Also tried /usr/bin/startxfce4 but still general odd behavior</del>
Line 548: Line 550:
     * Use 'lpstat' and 'lpq' to ensure it's a known destination printer     * Use 'lpstat' and 'lpq' to ensure it's a known destination printer
   * [[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Printer_Configuration.html#sec-Starting_Print_Settings_Config|RHEL7 Print Settings]]   * [[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Printer_Configuration.html#sec-Starting_Print_Settings_Config|RHEL7 Print Settings]]
-  * yum install cups+  * dnf install cups
   * service cups start   * service cups start
   * systemctl enable cups   * systemctl enable cups
Line 555: Line 557:
     * Default printer driver works OK     * Default printer driver works OK
   * Or use web browser:   * Or use web browser:
-  * # yum install httpd+  * # dnf install httpd
   * # /bin/systemctl start httpd.service   * # /bin/systemctl start httpd.service
-  * # 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
centos_8_migration_notes.txt · Last modified: 2022/06/08 16:03 by juckins