centos_7_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_7_migration_notes [2019/04/14 09:37] – juckins | centos_7_migration_notes [2019/10/03 20:20] – juckins | ||
---|---|---|---|
Line 2: | Line 2: | ||
RHEL5/6/7 Cheatsheet: {{: | RHEL5/6/7 Cheatsheet: {{: | ||
- | |||
- | 19 November 2017 (32-bit): | ||
- | * [[https:// | ||
- | * [[http:// | ||
- | * Installed OS as per my usual routine below, including the bash script of packages | ||
- | * Follow instructions to [[http:// | ||
- | * [[https:// | ||
- | |||
- | < | ||
- | # echo -e " | ||
- | # mv / | ||
- | # dracut / | ||
- | </ | ||
- | |||
- | * Reboot | ||
- | * NVIDIA driver available from [[https:// | ||
- | * You will have to run the script below after each kernel upgrade | ||
- | |||
- | < | ||
- | # sh NVIDIA-Linux-x86-304.137.run (choose yes to configure X file) | ||
- | # systemctl isolate graphical.target | ||
- | # systemctl set-default graphical.target | ||
- | </ | ||
- | |||
- | * < | ||
- | * GNOME does not work well with graphics card; X keeps restarting | ||
- | |||
- | < | ||
- | # yum -y groups install "KDE Plasma Workspaces" | ||
- | </ | ||
- | |||
- | * < | ||
- | * < | ||
Other fixes: | Other fixes: | ||
- | * # yum -y install gstreamer* | + | * Disable WiFi LAN connection with '' |
- | * # rpm -ivh gstreamer1-libav-1.0.6-1.fc19.i686.rpm | + | |
- | * From [[https:// | + | |
- | * # nmcli radio wifi off | + | |
* [[https:// | * [[https:// | ||
- | * KDE won't start as of 18 Dec 2017 - " | ||
- | |||
13 December 2016: | 13 December 2016: | ||
Line 94: | Line 56: | ||
Restarting Services: http:// | Restarting Services: http:// | ||
- | For migrating a system, take note of this info first: | + | For migrating a system |
* Make a test user on CentOS6 and one on CentOS7 | * Make a test user on CentOS6 and one on CentOS7 | ||
* Compare hidden files to see if anything changed between OSs | * Compare hidden files to see if anything changed between OSs | ||
Line 102: | Line 64: | ||
* 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 | * users | ||
- | * <color #ed1c24>database | + | * <color #ed1c24>MySQL / MariaDB Database and users</ |
+ | * [[https:// | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
* Don't forget to add semicolons with this: # sed -i ‘/[^;] *$/ | * Don't forget to add semicolons with this: # sed -i ‘/[^;] *$/ | ||
Line 112: | Line 76: | ||
* Copy the following to accessible location for restore after upgrade | * Copy the following to accessible location for restore after upgrade | ||
* users' $HOME | * users' $HOME | ||
- | * crons | + | * crons should be in each user's $HOME/ |
* various processing log files from /var/tmp/ | * various processing log files from /var/tmp/ | ||
* / | * / | ||
* /etc/hosts | * /etc/hosts | ||
- | * / | + | * /etc/httpd/conf/ |
- | * / | + | |
- | * Samba users, passwords, shares | + | |
+ | * / | ||
+ | * / | ||
+ | * Make sure service is running and will start at boot. | ||
+ | * Check output with: testparm -v | ||
* nxclient-3.5.0-7.x86_64.rpm | * nxclient-3.5.0-7.x86_64.rpm | ||
* nxnode-3.5.0-9.x86_64.rpm | * nxnode-3.5.0-9.x86_64.rpm | ||
* nxserver-3.5.0-11.x86_64.rpm | * nxserver-3.5.0-11.x86_64.rpm | ||
- | * skype-4.3.0.37-fedora.i586.rpm | + | * <del>skype-4.3.0.37-fedora.i586.rpm</ |
* verify services that should be installed/ | * verify services that should be installed/ | ||
* Note firewall rules | * Note firewall rules | ||
+ | * [[https:// | ||
Note these installed perl RPMs: | Note these installed perl RPMs: | ||
+ | |||
+ | ''# | ||
+ | |||
< | < | ||
- | ImageMagick-perl-6.7.2.7-2.el6.x86_64 | + | ImageMagick-perl |
- | mod_perl-2.0.4-11.el6_5.x86_64 | + | perl |
- | perl-5.10.1-141.el6_7.1.x86_64 | + | perl-autodie |
- | perl-AppConfig-1.66-6.el6.noarch | + | perl-Array-Diff |
- | perl-Archive-Extract-0.38-141.el6_7.1.x86_64 | + | perl-Array-Unique |
- | perl-Archive-Tar-1.58-141.el6_7.1.x86_64 | + | perl-B-Lint |
- | perl-Array-Utils-0.5-1.el6.noarch | + | perl-Business-ISBN |
- | perl-Authen-SASL-2.13-3.el6.noarch | + | perl-Business-ISBN-Data |
- | perl-BSD-Resource-1.29.03-3.el6.x86_64 | + | perl-Carp |
- | perl-CGI-3.51-141.el6_7.1.x86_64 | + | perl-CGI |
- | perl-Class-Singleton-1.4-6.el6.noarch | + | perl-Class-ISA |
- | perl-common-sense-3.5-1.el6.noarch | + | perl-common-sense |
- | perl-Compress-Raw-Bzip2-2.052-1.el6.rf.x86_64 | + | perl-Compress-Raw-Bzip2 |
- | perl-Compress-Raw-Zlib-2.021-141.el6_7.1.x86_64 | + | perl-Compress-Raw-Zlib |
- | perl-Compress-Zlib-2.021-141.el6_7.1.x86_64 | + | perl-constant |
- | perl-Convert-ASN1-0.22-1.el6.noarch | + | perl-CPAN |
- | perl-Convert-BinHex-1.119-10.1.el6.noarch | + | perl-Data-Dumper |
- | perl-core-5.10.1-141.el6_7.1.x86_64 | + | perl-DBD-MySQL |
- | perl-CPAN-1.9402-141.el6_7.1.x86_64 | + | perl-DBI |
- | perl-CPANPLUS-0.88-141.el6_7.1.x86_64 | + | perl-devel |
- | perl-Crypt-SSLeay-0.57-17.el6.x86_64 | + | perl-Digest |
- | perl-DateTime-0.5300-2.el6.x86_64 | + | perl-Digest-MD5 |
- | perl-DBD-MySQL-4.013-3.el6.x86_64 | + | perl-Digest-SHA |
- | perl-DBD-SQLite-1.27-3.el6.x86_64 | + | perl-Encode |
- | perl-DBI-1.609-4.el6.x86_64 | + | perl-Encode-Locale |
- | perl-DBIx-Simple-1.32-3.el6.noarch | + | perl-Env |
- | perl-devel-5.10.1-141.el6_7.1.x86_64 | + | perl-Exporter |
- | perl-Digest-HMAC-1.01-22.el6.noarch | + | perl-ExtUtils-Install |
- | perl-Digest-SHA1-2.12-2.el6.x86_64 | + | perl-ExtUtils-MakeMaker |
- | perl-Digest-SHA-5.47-141.el6_7.1.x86_64 | + | perl-ExtUtils-Manifest |
- | perl-Email-Abstract-3.002-1.el6.noarch | + | perl-ExtUtils-ParseXS |
- | perl-Email-Address-1.905-1.el6.noarch | + | perl-FCGI |
- | perl-Email-Date-Format-1.002-5.el6.noarch | + | perl-File-BaseDir |
- | perl-Email-MessageID-1.401-4.el6.noarch | + | perl-File-CheckTree |
- | perl-Email-MIME-1.903-2.el6.rf.noarch | + | perl-File-DesktopEntry |
- | perl-Email-MIME-Attachment-Stripper-1.316-2.el6.noarch | + | perl-File-Listing |
- | perl-Email-MIME-ContentType-1.015-2.el6.noarch | + | perl-File-MimeInfo |
- | perl-Email-MIME-Encodings-1.313-2.el6.noarch | + | perl-File-Path |
- | perl-Email-Reply-1.202-4.el6.noarch | + | perl-File-ReadBackwards |
- | perl-Email-Send-2.198-1.el6.rf.noarch | + | perl-File-Slurp |
- | perl-Email-Simple-2.100-2.el6.rf.noarch | + | perl-File-Temp |
- | perl-Error-0.17015-4.el6.noarch | + | perl-Filter |
- | perl-ExtUtils-CBuilder-0.27-141.el6_7.1.x86_64 | + | perl-Font-AFM |
- | perl-ExtUtils-Embed-1.28-141.el6_7.1.x86_64 | + | perl-GD |
- | perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64 | + | perl-Getopt-Long |
- | perl-ExtUtils-ParseXS-2.2003.0-141.el6_7.1.x86_64 | + | perl-HTML-Element-Extended |
- | perl-File-Fetch-0.26-141.el6_7.1.x86_64 | + | perl-HTML-Format |
- | perl-Git-1.7.1-4.el6_7.1.noarch | + | perl-HTML-Parser |
- | perl-GSSAPI-0.26-6.el6.x86_64 | + | perl-HTML-TableExtract |
- | perl-HTML-Parser-3.64-2.el6.x86_64 | + | perl-HTML-Tagset |
- | perl-HTML-TableExtract-2.10-7.el6.noarch | + | perl-HTML-Tree |
- | perl-HTML-Tagset-3.20-4.el6.noarch | + | perl-HTTP-Cookies |
- | perl-HTTP-Server-Simple-0.43-1.el6.rf.noarch | + | perl-HTTP-Daemon |
- | perl-IO-All-0.39-4.el6.noarch | + | perl-HTTP-Date |
- | perl-IO-Compress-Base-2.021-141.el6_7.1.x86_64 | + | perl-HTTP-Message |
- | perl-IO-Compress-Bzip2-2.021-141.el6_7.1.x86_64 | + | perl-HTTP-Negotiate |
- | perl-IO-Compress-Zlib-2.021-141.el6_7.1.x86_64 | + | perl-HTTP-Tiny |
- | perl-IO-Socket-INET6-2.56-4.el6.noarch | + | perl-IO-All |
- | perl-IO-Socket-SSL-1.31-2.el6.noarch | + | perl-IO-Compress |
- | perl-IO-String-1.08-9.el6.noarch | + | perl-IO-HTML |
- | perl-IO-stringy-2.110-10.1.el6.noarch | + | perl-IO-Socket-IP |
- | perl-IO-Tty-1.08-4.el6.x86_64 | + | perl-IO-Socket-SSL |
- | perl-IO-Zlib-1.09-141.el6_7.1.x86_64 | + | perl-IPC-System-Simple |
- | perl-IPC-Cmd-0.56-141.el6_7.1.x86_64 | + | perl-JSON |
- | perl-IPC-Run-0.84-3.el6.noarch | + | perl-JSON-XS |
- | perl-IPC-System-Simple-1.21-5.el6.noarch | + | perl-libs |
- | perl-JSON-2.15-5.el6.noarch | + | perl-libwww-perl |
- | perl-JSON-XS-2.27-2.el6.x86_64 | + | perl-List-Compare |
- | perl-LDAP-0.40-1.el6.noarch | + | perl-List-MoreUtils |
- | perl-libs-5.10.1-141.el6_7.1.x86_64 | + | perl-Locale-Codes |
- | perl-libwww-perl-5.833-2.el6.noarch | + | perl-Locale-Maketext |
- | perl-libxml-perl-0.08-10.el6.noarch | + | perl-local-lib |
- | perl-List-MoreUtils-0.22-10.el6.x86_64 | + | perl-LWP-MediaTypes |
- | perl-Locale-Maketext-Simple-0.18-141.el6_7.1.x86_64 | + | perl-LWP-Protocol-https |
- | perl-Log-Message-0.02-141.el6_7.1.x86_64 | + | perl-macros |
- | perl-Log-Message-Simple-0.04-141.el6_7.1.x86_64 | + | perl-Module-Pluggable |
- | perl-MailTools-2.04-4.el6.noarch | + | perl-Mozilla-CA |
- | perl-MIME-Lite-3.027-2.el6.noarch | + | perl-Net-Daemon |
- | perl-MIME-tools-5.427-4.el6.noarch | + | perl-Net-HTTP |
- | perl-MIME-Types-1.28-2.el6.noarch | + | perl-Net-LibIDN |
- | perl-Module-Build-0.3500-141.el6_7.1.x86_64 | + | perl-Net-SSLeay |
- | perl-Module-CoreList-2.18-141.el6_7.1.x86_64 | + | perl-Newt |
- | perl-Module-Load-0.16-141.el6_7.1.x86_64 | + | perl-parent |
- | perl-Module-Load-Conditional-0.30-141.el6_7.1.x86_64 | + | perl-Parse-Yapp |
- | perl-Module-Loaded-0.02-141.el6_7.1.x86_64 | + | perl-PathTools |
- | perl-Module-Pluggable-3.90-141.el6_7.1.x86_64 | + | perl-PlRPC |
- | perl-Net-DNS-0.65-5.el6.x86_64 | + | perl-Pod-Checker |
- | perl-Net-LibIDN-0.12-3.el6.x86_64 | + | perl-Pod-Escapes |
- | perl-Net-SSLeay-1.35-9.el6.x86_64 | + | perl-Pod-LaTeX |
- | perl-Newt-1.08-26.el6.x86_64 | + | perl-podlators |
- | perl-NTLM-1.09-1.el6.noarch | + | perl-Pod-Parser |
- | perl-Object-Accessor-0.34-141.el6_7.1.x86_64 | + | perl-Pod-Perldoc |
- | perl-Package-Constants-0.02-141.el6_7.1.x86_64 | + | perl-Pod-Plainer |
- | perl-Params-Check-0.26-141.el6_7.1.x86_64 | + | perl-Pod-Simple |
- | perl-Params-Validate-0.92-3.el6.x86_64 | + | perl-Pod-Usage |
- | perl-parent-0.221-141.el6_7.1.x86_64 | + | perl-Scalar-List-Utils |
- | perl-Parse-CPAN-Meta-1.40-141.el6_7.1.x86_64 | + | perl-Socket |
- | perl-Pod-Escapes-1.04-141.el6_7.1.x86_64 | + | perl-Storable |
- | perl-Pod-POM-0.25-2.el6.noarch | + | perl-String-CRC32 |
- | perl-Pod-Simple-3.13-141.el6_7.1.x86_64 | + | perl-Sys-Syslog |
- | perl-Return-Value-1.666001-1.el6.noarch | + | perl-Test-Harness |
- | perl-SGMLSpm-1.03ii-21.el6.noarch | + | perl-Test-Simple |
- | perl-SOAP-Lite-0.710.10-3.el6.noarch | + | perl-Text-ParseWords |
- | perl-Socket6-0.23-4.el6.x86_64 | + | perl-Text-Soundex |
- | perl-Spiffy-0.30-12.el6.noarch | + | perl-Text-Unidecode |
- | perl-String-CRC32-1.4-9.el6.x86_64 | + | perl-Thread-Queue |
- | perl-Sub-Uplevel-0.2002-4.el6.noarch | + | perl-threads |
- | perl-Template-Toolkit-2.22-5.el6.x86_64 | + | perl-threads-shared |
- | perl-Term-UI-0.20-141.el6_7.1.x86_64 | + | perl-TimeDate |
- | perl-Test-Harness-3.17-141.el6_7.1.x86_64 | + | perl-Time-HiRes |
- | perl-Test-Simple-0.92-141.el6_7.1.x86_64 | + | perl-Time-Local |
- | perl-Test-Warn-0.21-2.el6.noarch | + | perl-Types-Serialiser |
- | perl-Text-Iconv-1.7-6.el6.x86_64 | + | perl-URI |
- | perl-TimeDate-1.16-13.el6.noarch | + | perl-WWW-RobotRules |
- | perl-Time-HiRes-1.9721-141.el6_7.1.x86_64 | + | perl-XML-LibXML |
- | perl-Time-Piece-1.15-141.el6_7.1.x86_64 | + | perl-XML-NamespaceSupport |
- | perl-Tree-DAG_Node-1.06-6.1.el6.noarch | + | perl-XML-SAX |
- | perl-URI-1.40-2.el6.noarch | + | perl-XML-SAX-Base |
- | perl-version-0.77-141.el6_7.1.x86_64 | + | |
- | perl-WWW-Mechanize-1.72-1.el6.rf.noarch | + | |
- | perl-WWW-Mechanize-GZip-0.12-13.el6.noarch | + | |
- | perl-XML-Dumper-0.81-8.el6.noarch | + | |
- | perl-XML-Filter-BufferText-1.01-8.el6.noarch | + | |
- | perl-XML-Grove-0.46alpha-40.el6.noarch | + | |
- | perl-XML-LibXML-1.70-5.el6.x86_64 | + | |
- | perl-XML-NamespaceSupport-1.10-3.el6.noarch | + | |
- | perl-XML-Parser-2.36-7.el6.x86_64 | + | |
- | perl-XML-SAX-0.96-7.el6.noarch | + | |
- | perl-XML-SAX-Writer-0.50-8.el6.noarch | + | |
- | perl-XML-Twig-3.34-1.el6.noarch | + | |
</ | </ | ||
Line 265: | Line 225: | ||
* edit / | * edit / | ||
* Check logs: # cat / | * Check logs: # cat / | ||
- | | + | |
+ | * ''# | ||
+ | * ''# | ||
+ | * [[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: 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:// | + | * <del>Skype</ |
- | * Skype | + | |
* Virtual Box | * Virtual Box | ||
* Working crontabs for each user | * Working crontabs for each user | ||
+ | * [[python_notes|Install Python 3]] | ||
Contents of / | Contents of / | ||
Line 337: | Line 301: | ||
* 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 | ||
* < | * < | ||
- | * * <del><fc #ff0000>Make sure /boot is 750MB or 1GB large</fc></ | + | * * < |
* Let system create mount points automatically | * Let system create mount points automatically | ||
* After they are suggested, change from LVM to Standard Mount | * After they are suggested, change from LVM to Standard Mount | ||
Line 378: | Line 342: | ||
[[install_configure_cpan|CPAN packages]] to install: | [[install_configure_cpan|CPAN packages]] to install: | ||
- | * <fc #ff0000> | + | * <color #ed1c24> |
* [[http:// | * [[http:// | ||
* Array:: | * 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) | * Start up cpan as root (initial time) | ||
* Run through the manual configuration process, accept the defaults | * Run through the manual configuration process, accept the defaults | ||
Line 387: | Line 352: | ||
* cpan Array:: | * cpan Array:: | ||
* Time:: | * Time:: | ||
- | * //Note, this module | + | * //Note, this module |
* As root, had to: | * As root, had to: | ||
* cd / | * cd / | ||
Line 400: | Line 365: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | [[centos_php7.2_upgrade|Upgrade PHP to version 7.2]] | ||
Migrate / | Migrate / | ||
Line 438: | Line 405: | ||
* 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 of MySQL 5.5 | + | * Default database engine is InnoDB as<color # |
* [[https:// | * [[https:// | ||
* The exact number of rows of InnoDB tables cannot be shown | * The exact number of rows of InnoDB tables cannot be shown | ||
- | * Need to monitor / | + | * Need to monitor /var</fc>/lib/mysql for growing logs |
- | * <fc #ff0000> | + | * <color #ed1c24> |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 457: | Line 424: | ||
* With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported | * With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported | ||
* Copy config from previous machine | * Copy config from previous machine | ||
+ | |||
+ | Setup ddclient: | ||
+ | * https:// | ||
+ | * yum -y install ddclient | ||
+ | * Use / | ||
+ | |||
+ | Setup duckdns: | ||
+ | * crontab is < | ||
+ | |||
+ | Setup ydns: | ||
+ | * crontab is < | ||
Firewall notes: | Firewall notes: | ||
Line 471: | Line 449: | ||
Restore /etc/hosts from previous machine as needed | Restore /etc/hosts from previous machine as needed | ||
- | |||
- | [[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]] | ||
Disable virbro0 network connection if needed: http:// | Disable virbro0 network connection if needed: http:// | ||
Line 553: | Line 529: | ||
Test ASMAD for processing end-to-end | Test ASMAD for processing end-to-end | ||
- | Install Skype rpm (skype-4.3.0.37-fedora.i586.rpm) following these steps: | + | <del>Install Skype rpm (skype-4.3.0.37-fedora.i586.rpm) following these steps: |
+ | </ | ||
< | < | ||
Line 575: | Line 552: | ||
* 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 | + | Update GRUB and splash screen |
- | * <fc #ff0000>As of CentOS 7.2 cannot get custom splash image to appear at boot (with UEFI)</fc> | + | * My saved splash images with varying resolutions are in / |
+ | * <color #ed1c24>As of CentOS 7.2 cannot get custom splash image to appear at boot (with UEFI)</color> | ||
* cd / | * cd / | ||
- | * make a backup copy of grub | + | * cp grub grub.YYYYMMDD |
* 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:// |
centos_7_migration_notes.txt · Last modified: 2023/12/14 10:10 by juckins